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