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 time utsname |
---|
20 | |
---|
21 | ENOSYS_C_PIECES=\ |
---|
22 | execl execle execlp execv execve execvp fork \ |
---|
23 | pthreadatfork wait waitpid |
---|
24 | |
---|
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 | |
---|
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) \ |
---|
46 | $(PSIGNAL_PIECES) ptimer sched time \ |
---|
47 | types unistd $(ENOSYS_C_PIECES) |
---|
48 | |
---|
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 | |
---|
55 | include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg |
---|
56 | include $(RTEMS_ROOT)/make/lib.cfg |
---|
57 | |
---|
58 | # |
---|
59 | # Add local stuff here using += |
---|
60 | # |
---|
61 | |
---|
62 | DEFINES += -D__RTEMS_INSIDE__ |
---|
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 |
---|
86 | |
---|
87 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
---|
88 | cd $(top_builddir) \ |
---|
89 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
---|