source: rtems/cpukit/posix/Makefile.am @ 33046a5

4.104.11
Last change on this file since 33046a5 was 33046a5, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 13, 2009 at 8:42:10 PM

2009-09-13 Joel Sherrill <joel.sherrill@…>

  • posix/Makefile.am, posix/src/clockgetres.c: Add clockgetres.c to set of clock and delayt methods built when POSIX threads are disabled. Ensure it builds when POSIX is disabled.
  • Property mode set to 100644
File size: 7.5 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
14noinst_LIBRARIES = libposix.a
15libposix_a_CPPFLAGS = $(AM_CPPFLAGS)
16libposix_a_SOURCES =
17
18# Some POSIX functions that are nice to always have
19## 20 Nov 2008: Now using these from newlib's posix directory
20libposix_a_SOURCES += src/sleep.c src/usleep.c
21libposix_a_SOURCES += src/nanosleep.c src/clockgettime.c src/clocksettime.c \
22    src/clockgetres.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/canceleval.c src/cancelrun.c \
73    src/cleanuppop.c src/cleanuppush.c src/setcancelstate.c \
74    src/setcanceltype.c 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/mutexattrdestroy.c src/mutexattrgetprioceiling.c \
101    src/mutexattrgetprotocol.c src/mutexattrgetpshared.c \
102    src/mutexattrgettype.c src/mutexattrinit.c src/mutexattrsetprioceiling.c \
103    src/mutexattrsetprotocol.c src/mutexattrsetpshared.c \
104    src/mutexattrsettype.c src/mutex.c src/mutexdestroy.c src/mutexget.c \
105    src/mutexgetprioceiling.c src/mutexinit.c src/mutexlock.c \
106    src/mutexlocksupp.c src/mutexsetprioceiling.c src/mutextimedlock.c \
107    src/mutextranslatereturncode.c src/mutextrylock.c src/mutexunlock.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 src/psxtransschedparam.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/clocksetenableattr.c
159
160## TIMER_C_FILES
161libposix_a_SOURCES += src/ptimer.c src/timercreate.c src/timerdelete.c \
162    src/timergetoverrun.c src/timergettime.c src/timersettime.c \
163    src/timertsr.c src/timerinserthelper.c
164
165## ITIMER_C_FILES
166libposix_a_SOURCES += src/getitimer.c src/setitimer.c
167
168## SUPPORT_C_FILES
169libposix_a_SOURCES += src/psxpriorityisvalid.c
170
171EXTRA_DIST += src/README.mqueue
172
173libposix_a_SOURCES += src/sched_getparam.c src/sched_getprioritymax.c \
174    src/sched_getprioritymin.c src/sched_getscheduler.c \
175    src/sched_rr_get_interval.c src/sched_setparam.c \
176    src/sched_setscheduler.c src/sched_yield.c src/sysconf.c
177endif
178endif
179
180include $(srcdir)/preinstall.am
181include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.