source: rtems/cpukit/posix/Makefile.am @ 68e1ccc

5
Last change on this file since 68e1ccc was 68e1ccc, checked in by Sebastian Huber <sebastian.huber@…>, on Sep 11, 2018 at 4:30:20 AM

build: Remove specialized CPPFLAGS

  • Property mode set to 100644
File size: 7.0 KB
Line 
1include $(top_srcdir)/automake/multilib.am
2include $(top_srcdir)/automake/compile.am
3
4
5noinst_LIBRARIES = libposix.a
6libposix_a_SOURCES =
7
8# Some POSIX functions that are nice to always have
9libposix_a_SOURCES += src/nanosleep.c src/clockgettime.c src/clocksettime.c \
10    src/clockgetres.c src/sysconf.c
11
12## Some POSIX threads features are needed all the time
13if HAS_PTHREADS
14# include
15# include/rtems/posix
16## src
17libposix_a_SOURCES += src/aio_cancel.c src/aio_error.c src/aio_fsync.c \
18    src/aio_read.c src/aio_return.c src/aio_suspend.c src/aio_write.c \
19    src/lio_listio.c src/aio_misc.c
20
21libposix_a_SOURCES += src/_execve.c
22endif
23
24libposix_a_SOURCES += src/fork.c src/vfork.c
25
26libposix_a_SOURCES += src/wait.c src/waitpid.c
27libposix_a_SOURCES += src/pthreadgetnamenp.c
28libposix_a_SOURCES += src/pthreadsetnamenp.c
29
30## BARRIER_C_FILES
31libposix_a_SOURCES += src/barrierattrdestroy.c src/barrierattrgetpshared.c \
32    src/barrierattrinit.c src/barrierattrsetpshared.c \
33    src/pbarrierdestroy.c src/pbarrierinit.c \
34    src/pbarrierwait.c
35
36## CONDITION_VARIABLE_C_FILES
37libposix_a_SOURCES += src/condattrdestroy.c \
38    src/condattrinit.c  \
39    src/condattrgetpshared.c src/condattrsetpshared.c \
40    src/condattrgetclock.c src/condattrsetclock.c \
41    src/condbroadcast.c src/conddefaultattributes.c src/conddestroy.c \
42    src/condinit.c src/condsignal.c src/condsignalsupp.c \
43    src/condtimedwait.c src/condwait.c src/condwaitsupp.c
44
45## MUTEX_C_FILES
46libposix_a_SOURCES += src/mutexattrdestroy.c src/mutexattrgetprioceiling.c \
47    src/mutexattrgetprotocol.c src/mutexattrgetpshared.c \
48    src/mutexattrgettype.c src/mutexattrinit.c src/mutexattrsetprioceiling.c \
49    src/mutexattrsetprotocol.c src/mutexattrsetpshared.c \
50    src/mutexattrsettype.c src/mutexdestroy.c \
51    src/mutexgetprioceiling.c src/mutexinit.c src/mutexlock.c \
52    src/mutexlocksupp.c src/mutexsetprioceiling.c src/mutextimedlock.c \
53    src/mutextrylock.c src/mutexunlock.c
54
55## PTHREAD_C_FILES
56libposix_a_SOURCES += src/psxpriorityisvalid.c
57
58## PTHREAD_ATTR_C_FILES
59libposix_a_SOURCES += src/pthreadattrdefault.c src/pthreadattrdestroy.c \
60   src/pthreadattrgetdetachstate.c src/pthreadattrgetguardsize.c \
61   src/pthreadattrgetinheritsched.c src/pthreadattrgetschedparam.c \
62   src/pthreadattrgetschedpolicy.c src/pthreadattrgetscope.c \
63   src/pthreadattrgetstackaddr.c src/pthreadattrgetstack.c \
64   src/pthreadattrgetstacksize.c src/pthreadattrinit.c \
65   src/pthreadattrsetdetachstate.c src/pthreadattrsetguardsize.c \
66   src/pthreadattrsetinheritsched.c src/pthreadattrsetschedparam.c \
67   src/pthreadattrsetschedpolicy.c src/pthreadattrsetscope.c \
68   src/pthreadattrsetstackaddr.c src/pthreadattrsetstack.c \
69   src/pthreadattrsetstacksize.c
70
71## PTHREAD_AFFINITY_C_FILES
72libposix_a_SOURCES += src/pthreadattrsetaffinitynp.c \
73    src/pthreadattrgetaffinitynp.c  src/pthreadgetaffinitynp.c   \
74    src/pthreadsetaffinitynp.c
75
76if HAS_PTHREADS
77## CANCEL_C_FILES
78libposix_a_SOURCES += src/cancel.c \
79    src/cleanuppush.c src/setcancelstate.c \
80    src/setcanceltype.c src/testcancel.c
81
82## MEMORY_C_FILES
83libposix_a_SOURCES += src/mlockall.c
84libposix_a_SOURCES += src/mlock.c
85libposix_a_SOURCES += src/mmap.c
86libposix_a_SOURCES += src/mprotect.c
87libposix_a_SOURCES += src/msync.c
88libposix_a_SOURCES += src/munlockall.c
89libposix_a_SOURCES += src/munlock.c
90libposix_a_SOURCES += src/munmap.c
91libposix_a_SOURCES += src/posix_madvise.c
92libposix_a_SOURCES += src/shm.c
93libposix_a_SOURCES += src/shmheap.c
94libposix_a_SOURCES += src/shmopen.c
95libposix_a_SOURCES += src/shmunlink.c
96libposix_a_SOURCES += src/shmwkspace.c
97
98## MESSAGE_QUEUE_C_FILES
99libposix_a_SOURCES += src/mqueue.c src/mqueueclose.c \
100    src/mqueuedeletesupp.c src/mqueuegetattr.c \
101    src/mqueuenotify.c src/mqueueopen.c \
102    src/mqueuereceive.c src/mqueuerecvsupp.c src/mqueuesend.c \
103    src/mqueuesendsupp.c src/mqueuesetattr.c src/mqueuetimedreceive.c \
104    src/mqueuetimedsend.c \
105    src/mqueueunlink.c
106
107## PTHREAD_C_FILES
108libposix_a_SOURCES += src/pthreadatfork.c \
109    src/pthreadgetattrnp.c \
110    src/pthread.c \
111    src/pthreadconcurrency.c \
112    src/pthreadcreate.c src/pthreaddetach.c src/pthreadequal.c \
113    src/pthreadexit.c src/pthreadgetcpuclockid.c \
114    src/pthreadgetschedparam.c \
115    src/pthreadinitthreads.c src/pthreadjoin.c src/pthreadkill.c \
116    src/pthreadself.c \
117    src/pthreadsetschedparam.c src/pthreadsigmask.c \
118    src/psxtransschedparam.c
119libposix_a_SOURCES += src/pthreadsetschedprio.c
120
121## PSIGNAL_C_FILES
122libposix_a_SOURCES += src/psignal.c src/alarm.c src/kill.c src/killinfo.c \
123    src/kill_r.c src/pause.c src/psignalclearprocesssignals.c \
124    src/psignalsetprocesssignals.c \
125    src/psignalclearsignals.c src/psignalunblockthread.c src/pthreadkill.c \
126    src/pthreadsigmask.c src/sigaction.c
127endif
128
129## KEY_C_FILES
130libposix_a_SOURCES += src/key.c src/keycreate.c src/keydelete.c \
131    src/keygetspecific.c \
132    src/keysetspecific.c
133
134## ONCE_C_FILES
135libposix_a_SOURCES += src/pthreadonce.c
136
137libposix_a_SOURCES += src/sigaddset.c src/sigdelset.c src/sigfillset.c \
138   src/sigemptyset.c src/sigismember.c
139
140libposix_a_SOURCES += src/sigprocmask.c
141
142## SPINLOCK_C_FILES
143libposix_a_SOURCES += src/pspindestroy.c
144libposix_a_SOURCES += src/pspininit.c
145libposix_a_SOURCES += src/pspinlock.c
146libposix_a_SOURCES += src/pspinunlock.c
147
148## SEMAPHORE_C_FILES
149libposix_a_SOURCES += src/semdestroy.c
150libposix_a_SOURCES += src/semgetvalue.c
151libposix_a_SOURCES += src/seminit.c
152libposix_a_SOURCES += src/sempost.c
153libposix_a_SOURCES += src/semtimedwait.c
154libposix_a_SOURCES += src/semtrywait.c
155libposix_a_SOURCES += src/semwait.c
156
157## RWLOCK_C_FILES
158libposix_a_SOURCES += src/prwlockdestroy.c src/prwlockinit.c \
159    src/prwlockrdlock.c src/prwlocktimedrdlock.c src/prwlocktimedwrlock.c \
160    src/prwlocktryrdlock.c src/prwlocktrywrlock.c src/prwlockunlock.c \
161    src/prwlockwrlock.c src/rwlockattrdestroy.c src/rwlockattrgetpshared.c \
162    src/rwlockattrinit.c src/rwlockattrsetpshared.c
163
164if HAS_PTHREADS
165libposix_a_SOURCES += src/sigpending.c \
166    src/sigqueue.c src/sigsuspend.c src/sigtimedwait.c \
167    src/sigwait.c src/sigwaitinfo.c src/signal_2.c src/ualarm.c
168
169## SEMAPHORE_C_FILES
170libposix_a_SOURCES += src/psxsemaphore.c
171libposix_a_SOURCES += src/semaphoredeletesupp.c
172libposix_a_SOURCES += src/semclose.c
173libposix_a_SOURCES += src/semopen.c
174libposix_a_SOURCES += src/semunlink.c
175
176## TIME_C_FILES
177libposix_a_SOURCES += src/adjtime.c src/clockgetcpuclockid.c
178
179## TIMER_C_FILES
180libposix_a_SOURCES += src/ptimer.c src/psxtimercreate.c src/psxtimerdelete.c \
181    src/timergetoverrun.c src/timergettime.c src/timersettime.c
182
183## ITIMER_C_FILES
184libposix_a_SOURCES += src/getitimer.c src/setitimer.c
185
186## SUPPORT_C_FILES
187libposix_a_SOURCES += src/psxpriorityisvalid.c
188libposix_a_SOURCES += src/psxnametoid.c
189
190
191libposix_a_SOURCES += src/sched_getparam.c \
192    src/sched_getscheduler.c \
193    src/sched_rr_get_interval.c src/sched_setparam.c \
194    src/sched_setscheduler.c src/sched_yield.c
195endif
196
197libposix_a_SOURCES += src/sched_getprioritymin.c
198libposix_a_SOURCES += src/sched_getprioritymax.c
199
200include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.