[254b4450] | 1 | # |
---|
| 2 | # $Id$ |
---|
| 3 | # |
---|
| 4 | |
---|
| 5 | @SET_MAKE@ |
---|
| 6 | srcdir = @srcdir@ |
---|
[d8ff793] | 7 | top_srcdir = @top_srcdir@ |
---|
[e1d8abb] | 8 | top_builddir = .. |
---|
| 9 | subdir = src |
---|
[254b4450] | 10 | |
---|
[6693a68] | 11 | RTEMS_ROOT = @RTEMS_ROOT@ |
---|
[d8ff793] | 12 | PROJECT_ROOT = @PROJECT_ROOT@ |
---|
| 13 | |
---|
| 14 | VPATH = @srcdir@ |
---|
| 15 | |
---|
[a2fa8c25] | 16 | # following are semi-implemented and untested |
---|
[799c767] | 17 | # C_PIECES=aio cancel devctl intr utsname |
---|
[3090760] | 18 | |
---|
| 19 | # These are really in the stand but not really functional |
---|
[799c767] | 20 | BUILD_FOR_NOW_C_PIECES = aio cancel utsname |
---|
[6693a68] | 21 | |
---|
| 22 | ENOSYS_C_PIECES = execl execle execlp execv execve execvp fork pthreadatfork \ |
---|
| 23 | wait waitpid |
---|
| 24 | |
---|
[98dca75] | 25 | CONDITION_VARIABLE_C_PIECES= cond condattrdestroy condattrgetpshared \ |
---|
| 26 | condattrinit condattrsetpshared condbroadcast conddefaultattributes \ |
---|
| 27 | condmp condsignal condsignalsupp condtimedwait condwait condwaitsupp |
---|
| 28 | |
---|
| 29 | MESSAGE_QUEUE_C_PIECES= mqueue mqueueclose mqueuecreatesupp mqueuedeletesupp \ |
---|
[4dc89814] | 30 | mqueuegetattr mqueuenametoid mqueuenotify mqueueopen mqueuereceive \ |
---|
| 31 | mqueuerecvsupp mqueuesend mqueuesendsupp mqueuesetattr \ |
---|
| 32 | mqueuetimedreceive mqueuetimedsend mqueueunlink \ |
---|
| 33 | |
---|
[96c041c] | 34 | MUTEX_C_PIECES= mutex mutexattrdestroy mutexattrgetprioceiling \ |
---|
| 35 | mutexattrgetprotocol mutexattrgetpshared mutexattrinit \ |
---|
| 36 | mutexattrsetprioceiling mutexattrsetprotocol mutexattrsetpshared \ |
---|
| 37 | mutexdefaultattributes mutexdestroy mutexfromcorestatus \ |
---|
| 38 | mutexgetprioceiling mutexinit mutexlock mutexlocksupp mutexmp \ |
---|
| 39 | mutexsetprioceiling mutextimedlock mutextrylock mutexunlock |
---|
| 40 | |
---|
[6693a68] | 41 | PTHREAD_C_PIECES = pthread pthreadsetcputime pthreadgetcputime \ |
---|
| 42 | pthreadgetcpuclockid pthreadonce pthreadequal pthreadself pthreadexit \ |
---|
| 43 | pthreaddetach pthreadjoin pthreadcreate pthreadattrsetdetachstate \ |
---|
| 44 | pthreadattrgetdetachstate pthreadattrgetstackaddr \ |
---|
| 45 | pthreadattrsetstackaddr pthreadattrgetstacksize pthreadattrsetstacksize \ |
---|
| 46 | pthreadattrinit pthreadattrdestroy pthreadsetschedparam \ |
---|
| 47 | pthreadgetschedparam pthreadattrsetschedparam pthreadattrgetschedparam \ |
---|
| 48 | pthreadattrgetschedpolicy pthreadattrsetschedpolicy \ |
---|
| 49 | pthreadattrgetinheritsched pthreadattrsetinheritsched \ |
---|
| 50 | pthreadattrgetscope pthreadattrsetscope |
---|
| 51 | |
---|
[ee979cd] | 52 | PSIGNAL_C_PIECES = psignal alarm kill killinfo pause \ |
---|
| 53 | psignalclearprocesssignals psignalsetprocesssignals \ |
---|
| 54 | psignalchecksignal psignalclearsignals \ |
---|
| 55 | psignalunblockthread pthreadkill \ |
---|
[6693a68] | 56 | pthreadsigmask sigaction sigaddset sigdelset sigemptyset sigfillset \ |
---|
| 57 | sigismember sigpending sigprocmask sigqueue sigsuspend sigtimedwait \ |
---|
| 58 | sigwait sigwaitinfo signal_2 |
---|
| 59 | |
---|
[799c767] | 60 | SEMAPHORE_C_PIECES= semaphore semaphorecreatesupp semaphoredeletesupp \ |
---|
| 61 | semaphoremp semaphorenametoid semaphorewaitsupp semdestroy \ |
---|
| 62 | semgetvalue seminit semopen sempost semtimedwait semtrywait \ |
---|
| 63 | semunlink semwait |
---|
| 64 | |
---|
[9f95a19] | 65 | TIME_C_PIECES= time posixtimespecsubtract posixtimespectointerval \ |
---|
| 66 | posixintervaltotimespec clockgetcpuclockid clockgetenableattr \ |
---|
| 67 | clockgetres clockgettime clocksetenableattr clocksettime nanosleep |
---|
| 68 | |
---|
[98dca75] | 69 | C_PIECES = adasupp $(CONDITION_VARIABLE_C_PIECES) \ |
---|
| 70 | getpid key $(MESSAGE_QUEUE_C_PIECES) \ |
---|
[96c041c] | 71 | $(MUTEX_C_PIECES) $(PTHREAD_C_PIECES) \ |
---|
[799c767] | 72 | $(PSIGNAL_C_PIECES) ptimer sched $(SEMAPHORE_C_PIECES) \ |
---|
[9f95a19] | 73 | $(TIME_C_PIECES) types unistd $(ENOSYS_C_PIECES) \ |
---|
[6693a68] | 74 | $(BUILD_FOR_NOW_C_PIECES) |
---|
| 75 | |
---|
| 76 | C_FILES = $(C_PIECES:%=%.c) |
---|
| 77 | C_O_FILES = $(C_PIECES:%=${ARCH}/%.o) |
---|
| 78 | |
---|
| 79 | SRCS = $(C_FILES) $(CC_FILES) |
---|
| 80 | OBJS = $(C_O_FILES) $(CC_O_FILES) |
---|
| 81 | |
---|
| 82 | include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg |
---|
[cb5bfe4] | 83 | include $(RTEMS_ROOT)/make/lib.cfg |
---|
[254b4450] | 84 | |
---|
[6693a68] | 85 | INSTALL_CHANGE = @INSTALL_CHANGE@ |
---|
| 86 | |
---|
[254b4450] | 87 | # |
---|
| 88 | # Add local stuff here using += |
---|
| 89 | # |
---|
| 90 | |
---|
[6693a68] | 91 | DEFINES += -D__RTEMS_INSIDE__ |
---|
[254b4450] | 92 | CPPFLAGS += |
---|
[6693a68] | 93 | CFLAGS += $(CFLAGS_OS_V) |
---|
[254b4450] | 94 | |
---|
| 95 | # |
---|
| 96 | # Add your list of files to delete here. The config files |
---|
| 97 | # already know how to delete some stuff, so you may want |
---|
| 98 | # to just run 'make clean' first to see what gets missed. |
---|
| 99 | # 'make clobber' already includes 'make clean' |
---|
| 100 | # |
---|
| 101 | |
---|
[6693a68] | 102 | CLEAN_ADDITIONS += |
---|
[254b4450] | 103 | CLOBBER_ADDITIONS += |
---|
| 104 | |
---|
[6693a68] | 105 | all: ${ARCH} $(SRCS) ${OBJS} |
---|
[254b4450] | 106 | |
---|
| 107 | # temporary so we can see how many things are left to implement |
---|
[6693a68] | 108 | not: |
---|
[254b4450] | 109 | grep -i NOT_IMPL $(C_FILES) | grep -v MP_NOT_IMPL |
---|
| 110 | @echo |
---|
| 111 | @echo |
---|
| 112 | @echo |
---|
| 113 | @echo `grep -i NOT_IMPL $(C_FILES) | grep -v MP_NOT_IMPL | wc -l ` places marked not implemented |
---|
| 114 | @echo `wc -l $(C_FILES) | grep total` lines of C code to test |
---|
[d8ff793] | 115 | |
---|
[08b5f55] | 116 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
---|
[d8ff793] | 117 | cd $(top_builddir) \ |
---|
| 118 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
---|