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 | CONDITION_VARIABLE_C_PIECES= cond condattrdestroy condattrgetpshared \ |
---|
26 | condattrinit condattrsetpshared condbroadcast conddefaultattributes \ |
---|
27 | condmp condsignal condsignalsupp condtimedwait condwait condwaitsupp |
---|
28 | |
---|
29 | MESSAGE_QUEUE_C_PIECES= mqueue mqueueclose mqueuecreatesupp mqueuedeletesupp \ |
---|
30 | mqueuegetattr mqueuenametoid mqueuenotify mqueueopen mqueuereceive \ |
---|
31 | mqueuerecvsupp mqueuesend mqueuesendsupp mqueuesetattr \ |
---|
32 | mqueuetimedreceive mqueuetimedsend mqueueunlink \ |
---|
33 | |
---|
34 | MUTEX_C_PIECES= mutex mutexattrdestroy mutexattrgetprioceiling \ |
---|
35 | mutexattrgetprotocol mutexattrgetpshared mutexattrinit \ |
---|
36 | mutexattrsetprioceiling mutexattrsetprotocol mutexattrsetpshared \ |
---|
37 | mutexdefaultattributes mutexdestroy mutexfromcorestatus \ |
---|
38 | mutexgetprioceiling mutexinit mutexlock mutexlocksupp mutexmp \ |
---|
39 | mutexsetprioceiling mutextimedlock mutextrylock mutexunlock |
---|
40 | |
---|
41 | PTHREAD_C_PIECES = pthread pthreadsetcputime pthreadgetcputime \ |
---|
42 | pthreadgetcpuclockid pthreadonce pthreadequal pthreadself pthreadexit \ |
---|
43 | pthreaddetach pthreadjoin pthreadcreate pthreadattrsetdetachstate \ |
---|
44 | pthreadattrgetdetachstate pthreadattrgetstackaddr \ |
---|
45 | pthreadattrsetstackaddr pthreadattrgetstacksize pthreadattrsetstacksize \ |
---|
46 | pthreadattrinit pthreadattrdestroy pthreadsetschedparam \ |
---|
47 | pthreadgetschedparam pthreadattrsetschedparam pthreadattrgetschedparam \ |
---|
48 | pthreadattrgetschedpolicy pthreadattrsetschedpolicy \ |
---|
49 | pthreadattrgetinheritsched pthreadattrsetinheritsched \ |
---|
50 | pthreadattrgetscope pthreadattrsetscope |
---|
51 | |
---|
52 | PSIGNAL_C_PIECES = psignal alarm kill killinfo pause \ |
---|
53 | psignalclearprocesssignals psignalsetprocesssignals \ |
---|
54 | psignalchecksignal psignalclearsignals \ |
---|
55 | psignalunblockthread pthreadkill \ |
---|
56 | pthreadsigmask sigaction sigaddset sigdelset sigemptyset sigfillset \ |
---|
57 | sigismember sigpending sigprocmask sigqueue sigsuspend sigtimedwait \ |
---|
58 | sigwait sigwaitinfo signal_2 |
---|
59 | |
---|
60 | SEMAPHORE_C_PIECES= semaphore semaphorecreatesupp semaphoredeletesupp \ |
---|
61 | semaphoremp semaphorenametoid semaphorewaitsupp semdestroy \ |
---|
62 | semgetvalue seminit semopen sempost semtimedwait semtrywait \ |
---|
63 | semunlink semwait |
---|
64 | |
---|
65 | C_PIECES = adasupp $(CONDITION_VARIABLE_C_PIECES) \ |
---|
66 | getpid key $(MESSAGE_QUEUE_C_PIECES) \ |
---|
67 | $(MUTEX_C_PIECES) $(PTHREAD_C_PIECES) \ |
---|
68 | $(PSIGNAL_C_PIECES) ptimer sched $(SEMAPHORE_C_PIECES) \ |
---|
69 | time types unistd $(ENOSYS_C_PIECES) \ |
---|
70 | $(BUILD_FOR_NOW_C_PIECES) |
---|
71 | |
---|
72 | C_FILES = $(C_PIECES:%=%.c) |
---|
73 | C_O_FILES = $(C_PIECES:%=${ARCH}/%.o) |
---|
74 | |
---|
75 | SRCS = $(C_FILES) $(CC_FILES) |
---|
76 | OBJS = $(C_O_FILES) $(CC_O_FILES) |
---|
77 | |
---|
78 | include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg |
---|
79 | include $(RTEMS_ROOT)/make/lib.cfg |
---|
80 | |
---|
81 | INSTALL_CHANGE = @INSTALL_CHANGE@ |
---|
82 | |
---|
83 | # |
---|
84 | # Add local stuff here using += |
---|
85 | # |
---|
86 | |
---|
87 | DEFINES += -D__RTEMS_INSIDE__ |
---|
88 | CPPFLAGS += |
---|
89 | CFLAGS += $(CFLAGS_OS_V) |
---|
90 | |
---|
91 | # |
---|
92 | # Add your list of files to delete here. The config files |
---|
93 | # already know how to delete some stuff, so you may want |
---|
94 | # to just run 'make clean' first to see what gets missed. |
---|
95 | # 'make clobber' already includes 'make clean' |
---|
96 | # |
---|
97 | |
---|
98 | CLEAN_ADDITIONS += |
---|
99 | CLOBBER_ADDITIONS += |
---|
100 | |
---|
101 | all: ${ARCH} $(SRCS) ${OBJS} |
---|
102 | |
---|
103 | # temporary so we can see how many things are left to implement |
---|
104 | not: |
---|
105 | grep -i NOT_IMPL $(C_FILES) | grep -v MP_NOT_IMPL |
---|
106 | @echo |
---|
107 | @echo |
---|
108 | @echo |
---|
109 | @echo `grep -i NOT_IMPL $(C_FILES) | grep -v MP_NOT_IMPL | wc -l ` places marked not implemented |
---|
110 | @echo `wc -l $(C_FILES) | grep total` lines of C code to test |
---|
111 | |
---|
112 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
---|
113 | cd $(top_builddir) \ |
---|
114 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
---|