source: rtems/cpukit/score/Makefile.am @ 8a9568d

4.11
Last change on this file since 8a9568d was 8a9568d, checked in by Sebastian Huber <sebastian.huber@…>, on Feb 14, 2014 at 10:18:13 AM

Require presence of <stdatomic.h> for SMP support

  • Property mode set to 100644
File size: 13.7 KB
Line 
1include $(top_srcdir)/automake/multilib.am
2include $(top_srcdir)/automake/compile.am
3
4SUBDIRS = cpu
5
6## include
7
8include_rtemsdir = $(includedir)/rtems
9
10include_rtems_HEADERS = include/rtems/debug.h
11include_rtems_HEADERS += include/rtems/system.h
12include_rtems_HEADERS += include/rtems/seterr.h
13include_rtems_HEADERS += include/rtems/bspsmp.h
14
15include_rtems_scoredir = $(includedir)/rtems/score
16
17include_rtems_score_HEADERS = include/rtems/score/address.h
18include_rtems_score_HEADERS += include/rtems/score/apiext.h
19include_rtems_score_HEADERS += include/rtems/score/apimutex.h
20include_rtems_score_HEADERS += include/rtems/score/assert.h
21include_rtems_score_HEADERS += include/rtems/score/chain.h
22include_rtems_score_HEADERS += include/rtems/score/chainimpl.h
23include_rtems_score_HEADERS += include/rtems/score/context.h
24include_rtems_score_HEADERS += include/rtems/score/copyrt.h
25include_rtems_score_HEADERS += include/rtems/score/corebarrier.h
26include_rtems_score_HEADERS += include/rtems/score/corebarrierimpl.h
27include_rtems_score_HEADERS += include/rtems/score/coremsg.h
28include_rtems_score_HEADERS += include/rtems/score/coremsgimpl.h
29include_rtems_score_HEADERS += include/rtems/score/coremutex.h
30include_rtems_score_HEADERS += include/rtems/score/coremuteximpl.h
31include_rtems_score_HEADERS += include/rtems/score/coresem.h
32include_rtems_score_HEADERS += include/rtems/score/coresemimpl.h
33include_rtems_score_HEADERS += include/rtems/score/heap.h
34include_rtems_score_HEADERS += include/rtems/score/heapimpl.h
35include_rtems_score_HEADERS += include/rtems/score/protectedheap.h
36include_rtems_score_HEADERS += include/rtems/score/interr.h
37include_rtems_score_HEADERS += include/rtems/score/isr.h
38include_rtems_score_HEADERS += include/rtems/score/isrlevel.h
39include_rtems_score_HEADERS += include/rtems/score/isrlock.h
40include_rtems_score_HEADERS += include/rtems/score/freechain.h
41include_rtems_score_HEADERS += include/rtems/score/object.h
42include_rtems_score_HEADERS += include/rtems/score/objectimpl.h
43include_rtems_score_HEADERS += include/rtems/score/percpu.h
44include_rtems_score_HEADERS += include/rtems/score/priority.h
45include_rtems_score_HEADERS += include/rtems/score/prioritybitmap.h
46include_rtems_score_HEADERS += include/rtems/score/prioritybitmapimpl.h
47include_rtems_score_HEADERS += include/rtems/score/rbtree.h
48include_rtems_score_HEADERS += include/rtems/score/rbtreeimpl.h
49include_rtems_score_HEADERS += include/rtems/score/scheduler.h
50include_rtems_score_HEADERS += include/rtems/score/schedulerimpl.h
51include_rtems_score_HEADERS += include/rtems/score/schedulercbs.h
52include_rtems_score_HEADERS += include/rtems/score/scheduleredf.h
53include_rtems_score_HEADERS += include/rtems/score/scheduleredfimpl.h
54include_rtems_score_HEADERS += include/rtems/score/schedulerpriority.h
55include_rtems_score_HEADERS += include/rtems/score/schedulerpriorityimpl.h
56include_rtems_score_HEADERS += include/rtems/score/schedulerprioritysmp.h
57include_rtems_score_HEADERS += include/rtems/score/schedulersimple.h
58include_rtems_score_HEADERS += include/rtems/score/schedulersimpleimpl.h
59include_rtems_score_HEADERS += include/rtems/score/schedulersmp.h
60include_rtems_score_HEADERS += include/rtems/score/schedulersmpimpl.h
61include_rtems_score_HEADERS += include/rtems/score/smp.h
62include_rtems_score_HEADERS += include/rtems/score/smplock.h
63include_rtems_score_HEADERS += include/rtems/score/stack.h
64include_rtems_score_HEADERS += include/rtems/score/stackimpl.h
65include_rtems_score_HEADERS += include/rtems/score/states.h
66include_rtems_score_HEADERS += include/rtems/score/statesimpl.h
67include_rtems_score_HEADERS += include/rtems/score/sysstate.h
68include_rtems_score_HEADERS += include/rtems/score/thread.h
69include_rtems_score_HEADERS += include/rtems/score/threadimpl.h
70include_rtems_score_HEADERS += include/rtems/score/threaddispatch.h
71include_rtems_score_HEADERS += include/rtems/score/threadq.h
72include_rtems_score_HEADERS += include/rtems/score/threadqimpl.h
73include_rtems_score_HEADERS += include/rtems/score/threadsync.h
74include_rtems_score_HEADERS += include/rtems/score/timespec.h
75include_rtems_score_HEADERS += include/rtems/score/timestamp.h
76include_rtems_score_HEADERS += include/rtems/score/timestamp64.h
77include_rtems_score_HEADERS += include/rtems/score/tls.h
78include_rtems_score_HEADERS += include/rtems/score/tod.h
79include_rtems_score_HEADERS += include/rtems/score/todimpl.h
80include_rtems_score_HEADERS += include/rtems/score/userext.h
81include_rtems_score_HEADERS += include/rtems/score/userextimpl.h
82include_rtems_score_HEADERS += include/rtems/score/watchdog.h
83include_rtems_score_HEADERS += include/rtems/score/watchdogimpl.h
84include_rtems_score_HEADERS += include/rtems/score/wkspace.h
85include_rtems_score_HEADERS += include/rtems/score/cpuopts.h
86include_rtems_score_HEADERS += include/rtems/score/basedefs.h
87
88if HAS_PTHREADS
89include_rtems_score_HEADERS += include/rtems/score/corespinlock.h
90include_rtems_score_HEADERS += include/rtems/score/corespinlockimpl.h
91include_rtems_score_HEADERS += include/rtems/score/corerwlock.h
92include_rtems_score_HEADERS += include/rtems/score/corerwlockimpl.h
93endif
94
95if HAS_MP
96# We only build multiprocessing related files if HAS_MP was defined
97include_rtems_score_HEADERS += include/rtems/score/mpci.h
98include_rtems_score_HEADERS += include/rtems/score/mpciimpl.h
99include_rtems_score_HEADERS += include/rtems/score/mppkt.h
100include_rtems_score_HEADERS += include/rtems/score/objectmp.h
101include_rtems_score_HEADERS += include/rtems/score/threadmp.h
102endif
103
104if HAS_SMP
105include_rtems_score_HEADERS += include/rtems/score/atomic.h
106include_rtems_score_HEADERS += include/rtems/score/cpustdatomic.h
107include_rtems_score_HEADERS += include/rtems/score/schedulersimplesmp.h
108endif
109
110## src
111
112noinst_LIBRARIES = libscore.a
113libscore_a_SOURCES =
114libscore_a_CPPFLAGS = $(AM_CPPFLAGS)
115
116# We only build multiprocessing related files if HAS_MP was defined
117if HAS_MP
118libscore_a_SOURCES += src/mpci.c src/objectmp.c src/threadmp.c
119endif
120
121if HAS_SMP
122libscore_a_SOURCES += src/schedulerprioritysmp.c
123libscore_a_SOURCES += src/schedulersimplesmp.c
124libscore_a_SOURCES += src/schedulersmpstartidle.c
125libscore_a_SOURCES += src/smp.c
126endif
127
128## CORE_APIMUTEX_C_FILES
129libscore_a_SOURCES += src/apimutex.c \
130    src/apimutexlock.c src/apimutexunlock.c
131
132## CORE_BARRIER_C_FILES
133libscore_a_SOURCES += src/corebarrier.c src/corebarrierrelease.c \
134    src/corebarrierwait.c
135
136## CORE_MESSAGE_QUEUE_C_FILES
137libscore_a_SOURCES += src/coremsg.c src/coremsgbroadcast.c \
138    src/coremsgclose.c src/coremsgflush.c src/coremsgflushwait.c \
139    src/coremsginsert.c src/coremsgflushsupp.c src/coremsgseize.c \
140    src/coremsgsubmit.c
141
142## CORE_MUTEX_C_FILES
143libscore_a_SOURCES += src/coremutex.c src/coremutexflush.c \
144    src/coremutexseize.c src/coremutexsurrender.c \
145    src/coremutexseizeintr.c
146
147## CORE_PERCPU_C_FILES
148libscore_a_SOURCES += src/percpu.c
149libscore_a_SOURCES += src/percpuasm.c
150
151## CORE_RWLOCK_C_FILES
152if HAS_PTHREADS
153libscore_a_SOURCES += src/corerwlock.c src/corerwlockobtainread.c \
154    src/corerwlockobtainwrite.c src/corerwlockrelease.c src/corerwlocktimeout.c
155endif
156
157## CORE_SEMAPHORE_C_FILES
158libscore_a_SOURCES += src/coresem.c src/coresemflush.c src/coresemseize.c \
159    src/coresemsurrender.c
160
161## CORE_SPINLOCK_C_FILES
162if HAS_PTHREADS
163libscore_a_SOURCES += src/corespinlock.c src/corespinlockrelease.c \
164    src/corespinlockwait.c
165endif
166
167## HEAP_C_FILES
168libscore_a_SOURCES += src/heap.c src/heapallocate.c src/heapextend.c \
169    src/heapfree.c src/heapsizeofuserarea.c src/heapwalk.c src/heapgetinfo.c \
170    src/heapgetfreeinfo.c src/heapresizeblock.c src/heapiterate.c \
171    src/heapgreedy.c src/heapnoextend.c
172
173## OBJECT_C_FILES
174libscore_a_SOURCES += src/objectallocate.c src/objectclose.c \
175    src/objectextendinformation.c src/objectfree.c src/objectget.c \
176    src/objectgetisr.c src/objectgetnext.c src/objectinitializeinformation.c \
177    src/objectnametoid.c src/objectnametoidstring.c \
178    src/objectshrinkinformation.c src/objectgetnoprotection.c \
179    src/objectidtoname.c src/objectgetnameasstring.c src/objectsetname.c \
180    src/objectgetinfo.c src/objectgetinfoid.c src/objectapimaximumclass.c \
181    src/objectnamespaceremove.c \
182    src/objectactivecount.c
183
184## SCHEDULER_C_FILES
185libscore_a_SOURCES += src/prioritybitmap.c
186libscore_a_SOURCES += src/scheduler.c
187libscore_a_SOURCES += src/schedulerdefaultallocatefree.c
188libscore_a_SOURCES += src/schedulerdefaultreleasejob.c
189libscore_a_SOURCES += src/schedulerdefaultstartidle.c
190libscore_a_SOURCES += src/schedulerdefaulttick.c
191libscore_a_SOURCES += src/schedulerdefaultupdate.c
192
193## SCHEDULERPRIORITY_C_FILES
194libscore_a_SOURCES += src/schedulerpriority.c \
195    src/schedulerpriorityallocate.c \
196    src/schedulerpriorityblock.c \
197    src/schedulerpriorityenqueue.c \
198    src/schedulerpriorityenqueuefirst.c \
199    src/schedulerpriorityextract.c \
200    src/schedulerpriorityfree.c \
201    src/schedulerpriorityprioritycompare.c \
202    src/schedulerpriorityschedule.c \
203    src/schedulerpriorityunblock.c \
204    src/schedulerpriorityupdate.c \
205    src/schedulerpriorityyield.c
206
207## SCHEDULERSIMPLE_C_FILES
208libscore_a_SOURCES += src/schedulersimple.c \
209    src/schedulersimpleblock.c \
210    src/schedulersimpleenqueue.c \
211    src/schedulersimpleenqueuefirst.c \
212    src/schedulersimpleextract.c \
213    src/schedulersimplereadyqueueenqueue.c \
214    src/schedulersimplereadyqueueenqueuefirst.c \
215    src/schedulersimpleschedule.c \
216    src/schedulersimpleunblock.c \
217    src/schedulersimpleyield.c
218
219## SCHEDULEREDF_C_FILES
220libscore_a_SOURCES += src/scheduleredf.c \
221    src/scheduleredfallocate.c \
222    src/scheduleredfblock.c \
223    src/scheduleredfenqueue.c \
224    src/scheduleredfenqueuefirst.c \
225    src/scheduleredfextract.c \
226    src/scheduleredffree.c \
227    src/scheduleredfprioritycompare.c \
228    src/scheduleredfreleasejob.c \
229    src/scheduleredfschedule.c \
230    src/scheduleredfunblock.c \
231    src/scheduleredfupdate.c \
232    src/scheduleredfyield.c
233
234## SCHEDULERCBS_C_FILES
235libscore_a_SOURCES += src/schedulercbs.c \
236    src/schedulercbsallocate.c \
237    src/schedulercbsattachthread.c \
238    src/schedulercbscleanup.c \
239    src/schedulercbscreateserver.c \
240    src/schedulercbsdestroyserver.c \
241    src/schedulercbsdetachthread.c \
242    src/schedulercbsgetapprovedbudget.c \
243    src/schedulercbsgetexecutiontime.c \
244    src/schedulercbsgetparameters.c \
245    src/schedulercbsgetremainingbudget.c \
246    src/schedulercbsgetserverid.c \
247    src/schedulercbssetparameters.c \
248    src/schedulercbsreleasejob.c \
249    src/schedulercbsunblock.c
250
251## PROTECTED_HEAP_C_FILES
252libscore_a_SOURCES += src/pheapallocate.c \
253    src/pheapextend.c src/pheapfree.c src/pheapgetsize.c \
254    src/pheapgetblocksize.c src/pheapgetfreeinfo.c src/pheapgetinfo.c \
255    src/pheapinit.c src/pheapresizeblock.c src/pheapwalk.c src/pheapiterate.c
256
257## FREECHAIN_C_FILES
258libscore_a_SOURCES += src/freechain.c
259
260## RBTREE_C_FILES
261libscore_a_SOURCES += src/rbtree.c \
262    src/rbtreeextract.c src/rbtreefind.c \
263    src/rbtreeinsert.c src/rbtreeiterate.c src/rbtreenext.c
264
265## THREAD_C_FILES
266libscore_a_SOURCES += src/thread.c src/threadchangepriority.c \
267    src/threadclearstate.c src/threadclose.c src/threadcreateidle.c \
268    src/threaddelayended.c src/threaddispatch.c \
269    src/threadenabledispatch.c src/threaddisabledispatch.c \
270    src/threadget.c src/threadhandler.c src/threadinitialize.c \
271    src/threadloadenv.c src/threadready.c src/threadreset.c \
272    src/threadrestart.c src/threadsetpriority.c \
273    src/threadsetstate.c src/threadsettransient.c \
274    src/threadstackallocate.c src/threadstackfree.c src/threadstart.c \
275    src/threadstartmultitasking.c src/iterateoverthreads.c \
276    src/threadblockingoperationcancel.c
277
278if HAS_SMP
279libscore_a_SOURCES += src/threaddispatchdisablelevel.c
280endif
281
282## THREADQ_C_FILES
283libscore_a_SOURCES += src/threadq.c src/threadqdequeue.c \
284    src/threadqdequeuefifo.c src/threadqdequeuepriority.c \
285    src/threadqenqueue.c src/threadqenqueuefifo.c \
286    src/threadqenqueuepriority.c src/threadqextract.c \
287    src/threadqextractfifo.c src/threadqextractpriority.c \
288    src/threadqextractwithproxy.c src/threadqfirst.c src/threadqfirstfifo.c \
289    src/threadqfirstpriority.c src/threadqflush.c src/threadqrequeue.c \
290    src/threadqprocesstimeout.c src/threadqtimeout.c
291
292## TIMESPEC_C_FILES
293libscore_a_SOURCES += src/timespecaddto.c src/timespecfromticks.c \
294    src/timespecisvalid.c src/timespeclessthan.c \
295    src/timespecsubtract.c src/timespectoticks.c src/timespecdivide.c \
296    src/timespecdividebyinteger.c src/timespecgetasnanoseconds.c
297
298## TIMESTAMP_INT64_C_FILES
299libscore_a_SOURCES += src/ts64addto.c src/ts64dividebyinteger.c \
300    src/ts64divide.c src/ts64equalto.c \
301    src/ts64getnanoseconds.c src/ts64getseconds.c \
302    src/ts64lessthan.c \
303    src/ts64set.c src/ts64settozero.c src/ts64subtract.c \
304    src/ts64toticks.c src/ts64totimespec.c src/ts64totimeval.c
305
306## TOD_C_FILES
307libscore_a_SOURCES += src/coretod.c src/coretodset.c src/coretodget.c \
308    src/coretodgetuptimetimespec.c src/coretodtickle.c \
309    src/coretodsecondssinceepoch.c \
310    src/coretodtickspersec.c
311
312## WATCHDOG_C_FILES
313libscore_a_SOURCES += src/watchdog.c src/watchdogadjust.c \
314    src/watchdogadjusttochain.c src/watchdoginsert.c src/watchdogremove.c \
315    src/watchdogtickle.c src/watchdogreport.c src/watchdogreportchain.c
316
317## USEREXT_C_FILES
318libscore_a_SOURCES += src/userextaddset.c \
319    src/userext.c src/userextremoveset.c src/userextiterate.c
320
321## STD_C_FILES
322libscore_a_SOURCES += src/apiext.c src/chain.c src/chainappend.c \
323    src/chainextract.c src/chainget.c src/chaininsert.c \
324    src/chainappendempty.c src/chainprependempty.c src/chaingetempty.c \
325    src/chainnodecount.c \
326    src/assertthreaddispatchingrepressed.c \
327    src/interr.c src/isr.c src/wkspace.c src/wkstringduplicate.c
328
329EXTRA_DIST = src/Unlimited.txt
330
331DISTCLEANFILES = include/rtems/score/cpuopts.h
332
333include $(srcdir)/preinstall.am
334include $(top_srcdir)/automake/subdirs.am
335include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.