source: rtems/cpukit/posix/Makefile.am @ 6265b83

4.104.114.84.95
Last change on this file since 6265b83 was 6265b83, checked in by Ralf Corsepius <ralf.corsepius@…>, on Feb 8, 2005 at 3:02:25 PM

Split preinstallation rules in to separate files (preinstall.am).

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