source: rtems/cpukit/posix/Makefile.am @ ceadb90

4.104.11
Last change on this file since ceadb90 was ceadb90, checked in by Joel Sherrill <joel.sherrill@…>, on Nov 20, 2008 at 9:50:11 PM

2008-11-20 Joel Sherrill <joel.sherrill@…>

  • libcsupport/Makefile.am, posix/Makefile.am: Comment out including files which contain routines which are now provided by the newlib posix subdirectory. Document a few which come from the unix directory.
  • Property mode set to 100644
File size: 7.4 KB
Line 
1##
2## $Id$
3##
4
5include $(top_srcdir)/automake/multilib.am
6include $(top_srcdir)/automake/compile.am
7
8EXTRA_DIST =
9
10if LIBPOSIX
11
12AM_CPPFLAGS += -D__RTEMS_INSIDE__
13
14project_lib_LIBRARIES = libposix.a
15noinst_LIBRARIES = libposix.a
16libposix_a_CPPFLAGS = $(AM_CPPFLAGS)
17libposix_a_SOURCES =
18
19# Some POSIX functions that are nice to always have
20## 20 Nov 2008: Now using these from newlib's posix directory
21## libposix_a_SOURCES += src/sleep.c src/usleep.c
22libposix_a_SOURCES += src/nanosleep.c src/clockgettime.c src/clocksettime.c
23
24if HAS_PTHREADS
25# include
26
27include_HEADERS = include/sched.h include/aio.h include/mqueue.h \
28    include/semaphore.h include/devctl.h
29
30# include/rtems/posix
31
32include_rtems_posixdir = $(includedir)/rtems/posix
33
34include_rtems_posix_HEADERS = include/rtems/posix/cancel.h \
35    include/rtems/posix/cond.h include/rtems/posix/config.h \
36    include/rtems/posix/key.h include/rtems/posix/mqueue.h \
37    include/rtems/posix/mutex.h include/rtems/posix/posixapi.h \
38    include/rtems/posix/priority.h include/rtems/posix/psignal.h \
39    include/rtems/posix/pthread.h include/rtems/posix/ptimer.h \
40    include/rtems/posix/semaphore.h include/rtems/posix/threadsup.h \
41    include/rtems/posix/time.h include/rtems/posix/timer.h \
42    include/rtems/posix/barrier.h include/rtems/posix/rwlock.h \
43    include/rtems/posix/spinlock.h
44
45include_rtems_posix_HEADERS += inline/rtems/posix/cond.inl \
46    inline/rtems/posix/key.inl inline/rtems/posix/mqueue.inl \
47    inline/rtems/posix/mutex.inl inline/rtems/posix/pthread.inl \
48    inline/rtems/posix/priority.inl inline/rtems/posix/semaphore.inl \
49    inline/rtems/posix/timer.inl inline/rtems/posix/barrier.inl \
50    inline/rtems/posix/rwlock.inl inline/rtems/posix/spinlock.inl
51
52## src
53
54# These are really in the stand but not really functional
55## BUILD_FOR_NOW_C_FILES
56libposix_a_SOURCES += src/aio_cancel.c src/aio_error.c src/aio_fsync.c \
57    src/aio_read.c src/aio_return.c src/aio_suspend.c src/aio_write.c \
58    src/lio_listio.c src/devctl.c
59
60## ENOSYS_C_FILES
61libposix_a_SOURCES += src/_execve.c src/execl.c src/execle.c src/execlp.c \
62    src/execv.c src/execve.c src/execvp.c src/fork.c src/pthreadatfork.c \
63    src/wait.c src/waitpid.c src/vfork.c
64
65## BARRIER_C_FILES
66libposix_a_SOURCES += src/barrierattrdestroy.c src/barrierattrgetpshared.c \
67    src/barrierattrinit.c src/barrierattrsetpshared.c src/pbarrier.c \
68    src/pbarrierdestroy.c src/pbarrierinit.c \
69    src/pbarriertranslatereturncode.c src/pbarrierwait.c
70
71## CANCEL_C_FILES
72libposix_a_SOURCES += src/cancel.c src/cancelrun.c src/cleanuppop.c \
73    src/cleanuppush.c src/setcancelstate.c src/setcanceltype.c \
74    src/testcancel.c
75
76## CONDITION_VARIABLE_C_FILES
77libposix_a_SOURCES += src/cond.c src/condattrdestroy.c \
78    src/condattrgetpshared.c src/condattrinit.c src/condattrsetpshared.c \
79    src/condbroadcast.c src/conddefaultattributes.c src/conddestroy.c \
80    src/condinit.c src/condsignal.c src/condsignalsupp.c \
81    src/condtimedwait.c src/condwait.c src/condwaitsupp.c src/condget.c
82
83## KEY_C_FILES
84libposix_a_SOURCES += src/key.c src/keycreate.c src/keydelete.c \
85    src/keygetspecific.c src/keyrundestructors.c src/keysetspecific.c
86
87## MEMORY_C_FILES
88libposix_a_SOURCES += src/mprotect.c
89
90## MESSAGE_QUEUE_C_FILES
91libposix_a_SOURCES += src/mqueue.c src/mqueueclose.c \
92    src/mqueuecreatesupp.c src/mqueuedeletesupp.c src/mqueuegetattr.c \
93    src/mqueuenametoid.c src/mqueuenotify.c src/mqueueopen.c \
94    src/mqueuereceive.c src/mqueuerecvsupp.c src/mqueuesend.c \
95    src/mqueuesendsupp.c src/mqueuesetattr.c src/mqueuetimedreceive.c \
96    src/mqueuetimedsend.c src/mqueuetranslatereturncode.c \
97    src/mqueueunlink.c
98
99## MUTEX_C_FILES
100libposix_a_SOURCES += src/mutex.c src/mutexattrdestroy.c \
101    src/mutexattrgetprioceiling.c src/mutexattrgetprotocol.c \
102    src/mutexattrgetpshared.c src/mutexattrinit.c \
103    src/mutexattrsetprioceiling.c src/mutexattrsetprotocol.c \
104    src/mutexattrsetpshared.c src/mutexdefaultattributes.c \
105    src/mutexdestroy.c src/mutexgetprioceiling.c src/mutexinit.c \
106    src/mutexlock.c src/mutexlocksupp.c src/mutexsetprioceiling.c \
107    src/mutextimedlock.c src/mutextranslatereturncode.c src/mutextrylock.c \
108    src/mutexunlock.c src/mutexget.c
109
110## PTHREAD_C_FILES
111libposix_a_SOURCES += src/pthread.c src/pthreadsetcputime.c \
112    src/pthreadgetcputime.c src/pthreadgetcpuclockid.c src/pthreadonce.c \
113    src/pthreadequal.c src/pthreadself.c src/pthreadexit.c \
114    src/pthreaddetach.c src/pthreadjoin.c src/pthreadcreate.c \
115    src/pthreadattrsetdetachstate.c src/pthreadattrgetdetachstate.c \
116    src/pthreadattrgetstackaddr.c src/pthreadattrsetstackaddr.c \
117    src/pthreadattrgetstacksize.c src/pthreadattrsetstacksize.c \
118    src/pthreadattrinit.c src/pthreadattrdestroy.c \
119    src/pthreadsetschedparam.c src/pthreadgetschedparam.c \
120    src/pthreadattrsetschedparam.c src/pthreadattrgetschedparam.c \
121    src/pthreadattrgetschedpolicy.c src/pthreadattrsetschedpolicy.c \
122    src/pthreadattrgetinheritsched.c src/pthreadattrsetinheritsched.c \
123    src/pthreadattrgetscope.c src/pthreadattrsetscope.c \
124    src/pthreadinitthreads.c
125
126## PSIGNAL_C_FILES
127libposix_a_SOURCES += src/psignal.c src/alarm.c src/kill.c src/killinfo.c \
128    src/kill_r.c src/pause.c src/psignalclearprocesssignals.c \
129    src/psignalsetprocesssignals.c src/psignalchecksignal.c \
130    src/psignalclearsignals.c src/psignalunblockthread.c src/pthreadkill.c \
131    src/pthreadsigmask.c src/sigaction.c src/sigaddset.c src/sigdelset.c \
132    src/sigemptyset.c src/sigfillset.c src/sigismember.c src/sigpending.c \
133    src/sigprocmask.c src/sigqueue.c src/sigsuspend.c src/sigtimedwait.c \
134    src/sigwait.c src/sigwaitinfo.c src/signal_2.c src/ualarm.c
135
136## RWLOCK_C_FILES
137libposix_a_SOURCES += src/prwlock.c src/prwlockdestroy.c src/prwlockinit.c \
138    src/prwlockrdlock.c src/prwlocktimedrdlock.c src/prwlocktimedwrlock.c \
139    src/prwlocktryrdlock.c src/prwlocktrywrlock.c src/prwlockunlock.c \
140    src/prwlockwrlock.c src/rwlockattrdestroy.c src/rwlockattrgetpshared.c \
141    src/rwlockattrinit.c src/rwlockattrsetpshared.c \
142    src/prwlocktranslatereturncode.c
143
144## SEMAPHORE_C_FILES
145libposix_a_SOURCES += src/semaphore.c src/semaphorecreatesupp.c \
146    src/semaphoredeletesupp.c src/semaphorenametoid.c \
147    src/semaphoretranslatereturncode.c src/semaphorewaitsupp.c \
148    src/semclose.c src/semdestroy.c src/semgetvalue.c src/seminit.c \
149    src/semopen.c src/sempost.c src/semtimedwait.c src/semtrywait.c \
150    src/semunlink.c src/semwait.c
151
152## SPINLOCK_C_FILES
153libposix_a_SOURCES += src/pspin.c src/pspindestroy.c src/pspininit.c \
154    src/pspinlock.c src/pspinlocktranslatereturncode.c src/pspintrylock.c \
155    src/pspinunlock.c
156
157## TIME_C_FILES
158libposix_a_SOURCES += src/adjtime.c src/posixtimespecabsolutetimeout.c \
159    src/clockgetcpuclockid.c src/clockgetenableattr.c src/clockgetres.c \
160    src/clocksetenableattr.c
161
162# the timer manager needs to be split further but only after its
163# dependence on the Classic API Timer Manager is removed.
164## TIMER_C_FILES
165libposix_a_SOURCES += src/ptimer.c src/timercreate.c src/timerdelete.c \
166    src/timergetoverrun.c src/timergettime.c src/timersettime.c \
167    src/timertsr.c src/timerinserthelper.c
168
169EXTRA_DIST += src/README.mqueue
170
171libposix_a_SOURCES += src/sched_getparam.c src/sched_getprioritymax.c \
172    src/sched_getprioritymin.c src/sched_getscheduler.c \
173    src/sched_rr_get_interval.c src/sched_setparam.c \
174    src/sched_setscheduler.c src/sched_yield.c src/sysconf.c
175endif
176endif
177
178include $(srcdir)/preinstall.am
179include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.