1 | # |
---|
2 | # $Id$ |
---|
3 | # |
---|
4 | |
---|
5 | @SET_MAKE@ |
---|
6 | srcdir = @srcdir@ |
---|
7 | top_srcdir = @top_srcdir@ |
---|
8 | top_builddir = .. |
---|
9 | subdir = src |
---|
10 | |
---|
11 | RTEMS_ROOT = @RTEMS_ROOT@ |
---|
12 | PROJECT_ROOT = @PROJECT_ROOT@ |
---|
13 | |
---|
14 | VPATH = @srcdir@ |
---|
15 | |
---|
16 | # following are semi-implemented and untested |
---|
17 | # C_PIECES=aio cancel devctl intr utsname |
---|
18 | |
---|
19 | # These are really in the stand but not really functional |
---|
20 | BUILD_FOR_NOW_C_PIECES = aio cancel utsname |
---|
21 | |
---|
22 | ENOSYS_C_PIECES = execl execle execlp execv execve execvp fork pthreadatfork \ |
---|
23 | wait waitpid |
---|
24 | |
---|
25 | MESSAGE_QUEUE_PIECES= mqueue mqueueclose mqueuecreatesupp mqueuedeletesupp \ |
---|
26 | mqueuegetattr mqueuenametoid mqueuenotify mqueueopen mqueuereceive \ |
---|
27 | mqueuerecvsupp mqueuesend mqueuesendsupp mqueuesetattr \ |
---|
28 | mqueuetimedreceive mqueuetimedsend mqueueunlink \ |
---|
29 | |
---|
30 | MUTEX_C_PIECES= mutex mutexattrdestroy mutexattrgetprioceiling \ |
---|
31 | mutexattrgetprotocol mutexattrgetpshared mutexattrinit \ |
---|
32 | mutexattrsetprioceiling mutexattrsetprotocol mutexattrsetpshared \ |
---|
33 | mutexdefaultattributes mutexdestroy mutexfromcorestatus \ |
---|
34 | mutexgetprioceiling mutexinit mutexlock mutexlocksupp mutexmp \ |
---|
35 | mutexsetprioceiling mutextimedlock mutextrylock mutexunlock |
---|
36 | |
---|
37 | PTHREAD_C_PIECES = pthread pthreadsetcputime pthreadgetcputime \ |
---|
38 | pthreadgetcpuclockid pthreadonce pthreadequal pthreadself pthreadexit \ |
---|
39 | pthreaddetach pthreadjoin pthreadcreate pthreadattrsetdetachstate \ |
---|
40 | pthreadattrgetdetachstate pthreadattrgetstackaddr \ |
---|
41 | pthreadattrsetstackaddr pthreadattrgetstacksize pthreadattrsetstacksize \ |
---|
42 | pthreadattrinit pthreadattrdestroy pthreadsetschedparam \ |
---|
43 | pthreadgetschedparam pthreadattrsetschedparam pthreadattrgetschedparam \ |
---|
44 | pthreadattrgetschedpolicy pthreadattrsetschedpolicy \ |
---|
45 | pthreadattrgetinheritsched pthreadattrsetinheritsched \ |
---|
46 | pthreadattrgetscope pthreadattrsetscope |
---|
47 | |
---|
48 | PSIGNAL_C_PIECES = psignal alarm kill killinfo pause \ |
---|
49 | psignalclearprocesssignals psignalsetprocesssignals \ |
---|
50 | psignalchecksignal psignalclearsignals \ |
---|
51 | psignalunblockthread pthreadkill \ |
---|
52 | pthreadsigmask sigaction sigaddset sigdelset sigemptyset sigfillset \ |
---|
53 | sigismember sigpending sigprocmask sigqueue sigsuspend sigtimedwait \ |
---|
54 | sigwait sigwaitinfo signal_2 |
---|
55 | |
---|
56 | SEMAPHORE_C_PIECES= semaphore semaphorecreatesupp semaphoredeletesupp \ |
---|
57 | semaphoremp semaphorenametoid semaphorewaitsupp semdestroy \ |
---|
58 | semgetvalue seminit semopen sempost semtimedwait semtrywait \ |
---|
59 | semunlink semwait |
---|
60 | |
---|
61 | C_PIECES = adasupp cond getpid key $(MESSAGE_QUEUE_PIECES) \ |
---|
62 | $(MUTEX_C_PIECES) $(PTHREAD_C_PIECES) \ |
---|
63 | $(PSIGNAL_C_PIECES) ptimer sched $(SEMAPHORE_C_PIECES) \ |
---|
64 | time types unistd $(ENOSYS_C_PIECES) \ |
---|
65 | $(BUILD_FOR_NOW_C_PIECES) |
---|
66 | |
---|
67 | C_FILES = $(C_PIECES:%=%.c) |
---|
68 | C_O_FILES = $(C_PIECES:%=${ARCH}/%.o) |
---|
69 | |
---|
70 | SRCS = $(C_FILES) $(CC_FILES) |
---|
71 | OBJS = $(C_O_FILES) $(CC_O_FILES) |
---|
72 | |
---|
73 | include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg |
---|
74 | include $(RTEMS_ROOT)/make/lib.cfg |
---|
75 | |
---|
76 | INSTALL_CHANGE = @INSTALL_CHANGE@ |
---|
77 | |
---|
78 | # |
---|
79 | # Add local stuff here using += |
---|
80 | # |
---|
81 | |
---|
82 | DEFINES += -D__RTEMS_INSIDE__ |
---|
83 | CPPFLAGS += |
---|
84 | CFLAGS += $(CFLAGS_OS_V) |
---|
85 | |
---|
86 | # |
---|
87 | # Add your list of files to delete here. The config files |
---|
88 | # already know how to delete some stuff, so you may want |
---|
89 | # to just run 'make clean' first to see what gets missed. |
---|
90 | # 'make clobber' already includes 'make clean' |
---|
91 | # |
---|
92 | |
---|
93 | CLEAN_ADDITIONS += |
---|
94 | CLOBBER_ADDITIONS += |
---|
95 | |
---|
96 | all: ${ARCH} $(SRCS) ${OBJS} |
---|
97 | |
---|
98 | # temporary so we can see how many things are left to implement |
---|
99 | not: |
---|
100 | grep -i NOT_IMPL $(C_FILES) | grep -v MP_NOT_IMPL |
---|
101 | @echo |
---|
102 | @echo |
---|
103 | @echo |
---|
104 | @echo `grep -i NOT_IMPL $(C_FILES) | grep -v MP_NOT_IMPL | wc -l ` places marked not implemented |
---|
105 | @echo `wc -l $(C_FILES) | grep total` lines of C code to test |
---|
106 | |
---|
107 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
---|
108 | cd $(top_builddir) \ |
---|
109 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
---|