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

4.104.11
Last change on this file since d2ccb32 was d2ccb32, checked in by Joel Sherrill <joel.sherrill@…>, on Nov 20, 2008 at 4:56:53 PM

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

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