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