[254b4450] | 1 | # |
---|
| 2 | # $Id$ |
---|
| 3 | # |
---|
| 4 | |
---|
| 5 | @SET_MAKE@ |
---|
| 6 | srcdir = @srcdir@ |
---|
[674c900] | 7 | VPATH = @srcdir@ |
---|
[5c3511e] | 8 | RTEMS_ROOT = @top_srcdir@ |
---|
[674c900] | 9 | PROJECT_ROOT = @PROJECT_ROOT@ |
---|
[254b4450] | 10 | |
---|
[a2fa8c25] | 11 | # following are semi-implemented and untested |
---|
| 12 | # C_PIECES=aio cancel devctl intr mqueue ptimer semaphore time utsname |
---|
| 13 | |
---|
[b965227f] | 14 | ENOSYS_C_PIECES=\ |
---|
| 15 | execl execle execlp execv execve execvp fork \ |
---|
[cb646cb9] | 16 | pthreadatfork wait waitpid |
---|
[b965227f] | 17 | |
---|
[03598b1] | 18 | PTHREAD_PIECES=\ |
---|
| 19 | pthread pthreadsetcputime pthreadgetcputime pthreadgetcpuclockid \ |
---|
| 20 | pthreadonce pthreadequal pthreadself pthreadexit pthreaddetach \ |
---|
| 21 | pthreadjoin pthreadcreate \ |
---|
| 22 | pthreadattrsetdetachstate pthreadattrgetdetachstate \ |
---|
| 23 | pthreadattrgetstackaddr pthreadattrsetstackaddr \ |
---|
| 24 | pthreadattrgetstacksize pthreadattrsetstacksize \ |
---|
| 25 | pthreadattrinit pthreadattrdestroy \ |
---|
| 26 | pthreadsetschedparam pthreadgetschedparam \ |
---|
| 27 | pthreadattrsetschedparam pthreadattrgetschedparam \ |
---|
| 28 | pthreadattrgetschedpolicy pthreadattrsetschedpolicy \ |
---|
| 29 | pthreadattrgetinheritsched pthreadattrsetinheritsched \ |
---|
| 30 | pthreadattrgetscope pthreadattrsetscope |
---|
| 31 | |
---|
[07d880f4] | 32 | PSIGNAL_PIECES=\ |
---|
| 33 | psignal alarm kill killinfo pause pthreadkill pthreadsigmask \ |
---|
| 34 | sigaction sigaddset sigdelset sigemptyset sigfillset sigismember \ |
---|
| 35 | sigpending sigprocmask sigqueue sigsuspend sigtimedwait sigwait \ |
---|
| 36 | sigwaitinfo |
---|
| 37 | |
---|
| 38 | C_PIECES= adasupp cond getpid key mutex $(PTHREAD_PIECES) \ |
---|
| 39 | $(PSIGNAL_PIECES) sched time \ |
---|
[b965227f] | 40 | types unistd $(ENOSYS_C_PIECES) |
---|
[07d880f4] | 41 | |
---|
[254b4450] | 42 | C_FILES=$(C_PIECES:%=%.c) |
---|
| 43 | C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) |
---|
| 44 | |
---|
| 45 | SRCS=$(C_FILES) $(CC_FILES) |
---|
| 46 | OBJS=$(C_O_FILES) $(CC_O_FILES) |
---|
| 47 | |
---|
[5c3511e] | 48 | include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg |
---|
[cb5bfe4] | 49 | include $(RTEMS_ROOT)/make/lib.cfg |
---|
[254b4450] | 50 | |
---|
| 51 | # |
---|
| 52 | # Add local stuff here using += |
---|
| 53 | # |
---|
| 54 | |
---|
[ff0b008] | 55 | DEFINES += -D__RTEMS_INSIDE__ |
---|
[254b4450] | 56 | CPPFLAGS += |
---|
| 57 | CFLAGS += $(CFLAGS_OS_V) |
---|
| 58 | |
---|
| 59 | # |
---|
| 60 | # Add your list of files to delete here. The config files |
---|
| 61 | # already know how to delete some stuff, so you may want |
---|
| 62 | # to just run 'make clean' first to see what gets missed. |
---|
| 63 | # 'make clobber' already includes 'make clean' |
---|
| 64 | # |
---|
| 65 | |
---|
| 66 | CLEAN_ADDITIONS += |
---|
| 67 | CLOBBER_ADDITIONS += |
---|
| 68 | |
---|
| 69 | all: ${ARCH} $(SRCS) ${OBJS} |
---|
| 70 | |
---|
| 71 | # temporary so we can see how many things are left to implement |
---|
| 72 | not: |
---|
| 73 | grep -i NOT_IMPL $(C_FILES) | grep -v MP_NOT_IMPL |
---|
| 74 | @echo |
---|
| 75 | @echo |
---|
| 76 | @echo |
---|
| 77 | @echo `grep -i NOT_IMPL $(C_FILES) | grep -v MP_NOT_IMPL | wc -l ` places marked not implemented |
---|
| 78 | @echo `wc -l $(C_FILES) | grep total` lines of C code to test |
---|