source: rtems/cpukit/posix/Makefile.am @ 4e97166

4.104.114.84.95
Last change on this file since 4e97166 was 4e97166, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 12, 2006 at 9:57:43 AM

Remove all-local.

  • Property mode set to 100644
File size: 6.9 KB
Line 
1##
2## $Id$
3##
4
5include $(top_srcdir)/automake/multilib.am
6include $(top_srcdir)/automake/compile.am
7
8EXTRA_DIST =
9
10if HAS_POSIX
11
12# include
13
14noinst_HEADERS = include/devctl.h include/intr.h
15
16include_HEADERS = include/sched.h include/aio.h include/mqueue.h \
17    include/semaphore.h
18
19# include/rtems/posix
20
21include_rtems_posixdir = $(includedir)/rtems/posix
22
23include_rtems_posix_HEADERS = include/rtems/posix/cancel.h \
24    include/rtems/posix/cond.h include/rtems/posix/config.h \
25    include/rtems/posix/key.h include/rtems/posix/mqueue.h \
26    include/rtems/posix/mutex.h include/rtems/posix/posixapi.h \
27    include/rtems/posix/priority.h include/rtems/posix/psignal.h \
28    include/rtems/posix/pthread.h include/rtems/posix/ptimer.h \
29    include/rtems/posix/semaphore.h include/rtems/posix/threadsup.h \
30    include/rtems/posix/time.h include/rtems/posix/timer.h
31
32if HAS_MP
33include_rtems_posix_HEADERS += include/rtems/posix/condmp.h \
34    include/rtems/posix/mqueuemp.h include/rtems/posix/mutexmp.h \
35    include/rtems/posix/pthreadmp.h include/rtems/posix/semaphoremp.h
36endif
37
38noinst_HEADERS += include/rtems/posix/intr.h \
39    include/rtems/posix/threadsup.h
40
41if INLINE
42include_rtems_posix_HEADERS += inline/rtems/posix/cond.inl \
43    inline/rtems/posix/key.inl inline/rtems/posix/mqueue.inl \
44    inline/rtems/posix/mutex.inl inline/rtems/posix/pthread.inl \
45    inline/rtems/posix/priority.inl inline/rtems/posix/semaphore.inl \
46    inline/rtems/posix/timer.inl
47noinst_HEADERS += inline/rtems/posix/intr.inl
48else
49include_rtems_posix_HEADERS += macros/rtems/posix/cond.inl \
50    macros/rtems/posix/key.inl macros/rtems/posix/mqueue.inl \
51    macros/rtems/posix/mutex.inl macros/rtems/posix/pthread.inl \
52    macros/rtems/posix/priority.inl macros/rtems/posix/semaphore.inl \
53    macros/rtems/posix/timer.inl
54noinst_HEADERS += macros/rtems/posix/intr.inl
55endif
56
57## src
58
59# following are semi-implemented and untested
60UNUSED_C_FILES = src/devctl.c src/intr.c
61
62# These are really in the stand but not really functional
63BUILD_FOR_NOW_C_FILES = src/aio.c
64
65ENOSYS_C_FILES = src/execl.c src/execle.c src/execlp.c src/execv.c \
66    src/execve.c src/execvp.c src/fork.c src/pthreadatfork.c src/wait.c \
67    src/waitpid.c
68
69CANCEL_C_FILES = src/cancel.c src/cancelrun.c src/cleanuppop.c \
70    src/cleanuppush.c src/setcancelstate.c src/setcanceltype.c \
71    src/testcancel.c
72
73CONDITION_VARIABLE_C_FILES = src/cond.c src/condattrdestroy.c \
74    src/condattrgetpshared.c src/condattrinit.c src/condattrsetpshared.c \
75    src/condbroadcast.c src/conddefaultattributes.c src/conddestroy.c \
76    src/condinit.c src/condmp.c src/condsignal.c src/condsignalsupp.c \
77    src/condtimedwait.c src/condwait.c src/condwaitsupp.c
78
79KEY_C_FILES = src/key.c src/keycreate.c src/keydelete.c src/keygetspecific.c \
80    src/keyrundestructors.c src/keysetspecific.c
81
82MEMORY_C_FILES = src/getpagesize.c src/mprotect.c
83
84MESSAGE_QUEUE_C_FILES = src/mqueue.c src/mqueueclose.c \
85    src/mqueuecreatesupp.c src/mqueuedeletesupp.c src/mqueuegetattr.c \
86    src/mqueuenametoid.c src/mqueuenotify.c src/mqueueopen.c \
87    src/mqueuereceive.c src/mqueuerecvsupp.c src/mqueuesend.c \
88    src/mqueuesendsupp.c src/mqueuesetattr.c src/mqueuetimedreceive.c \
89    src/mqueuetimedsend.c src/mqueuetranslatereturncode.c \
90    src/mqueueunlink.c
91
92MUTEX_C_FILES = src/mutex.c src/mutexattrdestroy.c \
93    src/mutexattrgetprioceiling.c src/mutexattrgetprotocol.c \
94    src/mutexattrgetpshared.c src/mutexattrinit.c \
95    src/mutexattrsetprioceiling.c src/mutexattrsetprotocol.c \
96    src/mutexattrsetpshared.c src/mutexdefaultattributes.c \
97    src/mutexdestroy.c src/mutexfromcorestatus.c src/mutexgetprioceiling.c \
98    src/mutexinit.c src/mutexlock.c src/mutexlocksupp.c src/mutexmp.c \
99    src/mutexsetprioceiling.c src/mutextimedlock.c src/mutextrylock.c \
100    src/mutexunlock.c
101
102PTHREAD_C_FILES = src/pthread.c src/pthreadsetcputime.c \
103    src/pthreadgetcputime.c src/pthreadgetcpuclockid.c src/pthreadonce.c \
104    src/pthreadequal.c src/pthreadself.c src/pthreadexit.c \
105    src/pthreaddetach.c src/pthreadjoin.c src/pthreadcreate.c \
106    src/pthreadattrsetdetachstate.c src/pthreadattrgetdetachstate.c \
107    src/pthreadattrgetstackaddr.c src/pthreadattrsetstackaddr.c \
108    src/pthreadattrgetstacksize.c src/pthreadattrsetstacksize.c \
109    src/pthreadattrinit.c src/pthreadattrdestroy.c \
110    src/pthreadsetschedparam.c src/pthreadgetschedparam.c \
111    src/pthreadattrsetschedparam.c src/pthreadattrgetschedparam.c \
112    src/pthreadattrgetschedpolicy.c src/pthreadattrsetschedpolicy.c \
113    src/pthreadattrgetinheritsched.c src/pthreadattrsetinheritsched.c \
114    src/pthreadattrgetscope.c src/pthreadattrsetscope.c
115
116PSIGNAL_C_FILES = src/psignal.c src/alarm.c src/kill.c src/killinfo.c \
117    src/pause.c src/psignalclearprocesssignals.c \
118    src/psignalsetprocesssignals.c src/psignalchecksignal.c \
119    src/psignalclearsignals.c src/psignalunblockthread.c src/pthreadkill.c \
120    src/pthreadsigmask.c src/sigaction.c src/sigaddset.c src/sigdelset.c \
121    src/sigemptyset.c src/sigfillset.c src/sigismember.c src/sigpending.c \
122    src/sigprocmask.c src/sigqueue.c src/sigsuspend.c src/sigtimedwait.c \
123    src/sigwait.c src/sigwaitinfo.c src/signal_2.c src/ualarm.c
124
125SEMAPHORE_C_FILES = src/semaphore.c src/semaphorecreatesupp.c \
126    src/semaphoredeletesupp.c src/semaphoremp.c src/semaphorenametoid.c \
127    src/semaphorewaitsupp.c src/semclose.c src/semdestroy.c \
128    src/semgetvalue.c src/seminit.c src/semopen.c src/sempost.c \
129    src/semtimedwait.c src/semtrywait.c src/semunlink.c src/semwait.c
130
131TIME_C_FILES = src/adjtime.c src/time.c src/posixtimespecsubtract.c \
132    src/posixtimespectointerval.c src/posixintervaltotimespec.c \
133    src/clockgetcpuclockid.c src/clockgetenableattr.c src/clockgetres.c \
134    src/clockgettime.c src/clocksetenableattr.c src/clocksettime.c \
135    src/nanosleep.c src/sleep.c src/usleep.c
136
137# the timer manager needs to be split further but only after its
138# dependence on the Classic API Timer Manager is removed.
139TIMER_C_FILES = src/ptimer.c src/ptimer1.c
140
141EXTRA_DIST += src/README.mqueue
142
143C_FILES = src/adasupp.c $(CANCEL_C_FILES) $(CONDITION_VARIABLE_C_FILES) \
144    $(KEY_C_FILES) $(MEMORY_C_FILES) $(MESSAGE_QUEUE_C_FILES) \
145    $(MUTEX_C_FILES) $(PTHREAD_C_FILES) $(PSIGNAL_C_FILES) src/sched.c \
146    $(SEMAPHORE_C_FILES) src/sysconf.c $(TIME_C_FILES) $(TIMER_C_FILES) \
147    src/types.c $(ENOSYS_C_FILES) $(BUILD_FOR_NOW_C_FILES)
148
149AM_CPPFLAGS += -D__RTEMS_INSIDE__
150
151noinst_LIBRARIES = libposix.a
152libposix_a_SOURCES = $(C_FILES)
153libposix_a_CPPFLAGS = $(AM_CPPFLAGS)
154endif
155
156# temporary so we can see how many things are left to implement
157not:
158        grep -i NOT_IMPL $(C_FILES:%=$(srcdir)/%) | grep -v MP_NOT_IMPL
159        @echo
160        @echo
161        @echo
162        @echo `grep -i NOT_IMPL $(C_FILES:%=$(srcdir)/%) | grep -v MP_NOT_IMPL | wc -l ` places marked not implemented
163        @echo `wc -l $(C_FILES:%=$(srcdir)/%) | grep total` lines of C code to test
164
165EXTRA_DIST += $(C_FILES) $(UNUSED_C_FILES)
166
167include $(srcdir)/preinstall.am
168include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.