1 | # |
---|
2 | # $Id$ |
---|
3 | # |
---|
4 | |
---|
5 | @SET_MAKE@ |
---|
6 | srcdir = @srcdir@ |
---|
7 | VPATH = @srcdir@ |
---|
8 | RTEMS_ROOT = @top_srcdir@ |
---|
9 | PROJECT_ROOT = @PROJECT_ROOT@ |
---|
10 | |
---|
11 | # following are semi-implemented and untested |
---|
12 | # C_PIECES=aio cancel devctl intr mqueue semaphore time utsname |
---|
13 | |
---|
14 | ENOSYS_C_PIECES=\ |
---|
15 | execl execle execlp execv execve execvp fork \ |
---|
16 | pthreadatfork wait waitpid |
---|
17 | |
---|
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 | |
---|
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) ptimer sched time \ |
---|
40 | types unistd $(ENOSYS_C_PIECES) |
---|
41 | |
---|
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 | |
---|
48 | include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg |
---|
49 | include $(RTEMS_ROOT)/make/lib.cfg |
---|
50 | |
---|
51 | # |
---|
52 | # Add local stuff here using += |
---|
53 | # |
---|
54 | |
---|
55 | DEFINES += -D__RTEMS_INSIDE__ |
---|
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 |
---|