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 02/08/05 at 15:02:25

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

  • Property mode set to 100644
File size: 6.9 KB
RevLine 
[811804fe]1##
2## $Id$
3##
[e1d8abb]4
[13482e5d]5include $(top_srcdir)/automake/multilib.am
[53fa63e]6include $(top_srcdir)/automake/compile.am
[2aab7ae9]7
8EXTRA_DIST =
[8a2c1796]9CLEANFILES =
[6265b83]10DISTCLEANFILES =
[2aab7ae9]11
[13482e5d]12if HAS_POSIX
13
[2aab7ae9]14# include
15
16noinst_HEADERS = include/devctl.h include/intr.h
17
[32195d5d]18include_HEADERS = include/sched.h include/aio.h include/mqueue.h \
19    include/semaphore.h
[2aab7ae9]20
21# include/rtems/posix
22
23include_rtems_posixdir = $(includedir)/rtems/posix
24
[32195d5d]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
[2aab7ae9]33
34if HAS_MP
[32195d5d]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
[2aab7ae9]38endif
39
[32195d5d]40noinst_HEADERS += include/rtems/posix/intr.h \
41    include/rtems/posix/threadsup.h
[2aab7ae9]42
43if INLINE
[32195d5d]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
[8a61c2a]50else
[32195d5d]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
[2aab7ae9]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
[32195d5d]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
[2aab7ae9]70
[32195d5d]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
[2aab7ae9]74
[32195d5d]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
[2aab7ae9]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
[32195d5d]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 \
[2aab7ae9]108    src/pthreadattrsetdetachstate.c src/pthreadattrgetdetachstate.c \
109    src/pthreadattrgetstackaddr.c src/pthreadattrsetstackaddr.c \
[32195d5d]110    src/pthreadattrgetstacksize.c src/pthreadattrsetstacksize.c \
111    src/pthreadattrinit.c src/pthreadattrdestroy.c \
112    src/pthreadsetschedparam.c src/pthreadgetschedparam.c \
[2aab7ae9]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
[32195d5d]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
[2aab7ae9]132
133TIME_C_FILES = src/adjtime.c src/time.c src/posixtimespecsubtract.c \
[32195d5d]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
[2aab7ae9]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) \
[de85d7b]146    $(KEY_C_FILES) $(MEMORY_C_FILES) $(MESSAGE_QUEUE_C_FILES) \
[2aab7ae9]147    $(MUTEX_C_FILES) $(PTHREAD_C_FILES) $(PSIGNAL_C_FILES) src/sched.c \
[32195d5d]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)
[2aab7ae9]150
[738a9ae]151AM_CPPFLAGS += -D__RTEMS_INSIDE__
[2aab7ae9]152
[846a4af]153noinst_LIBRARIES = libposix.a
[466b7a05]154libposix_a_SOURCES = $(C_FILES)
[a369ade]155libposix_a_CPPFLAGS = $(AM_CPPFLAGS)
[13482e5d]156endif
[2aab7ae9]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)
[e1d8abb]168
[6265b83]169all-local: $(PREINSTALL_FILES)
[32195d5d]170
[6265b83]171include $(srcdir)/preinstall.am
[8a2c1796]172
[13482e5d]173include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.