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

Last change on this file since dbb30e26 was bd5be58f, checked in by Sebastian Huber <sebastian.huber@…>, on Oct 10, 2017 at 5:18:09 AM

posix: Unconditional thread attribute support

Update #2514.

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