source: rtems/cpukit/score/Makefile.am @ 5618c37a

4.11
Last change on this file since 5618c37a was 5618c37a, checked in by Sebastian Huber <sebastian.huber@…>, on Jul 24, 2013 at 1:14:48 PM

score: Create thread implementation header

Move implementation specific parts of thread.h and thread.inl into new
header file threadimpl.h. The thread.h contains now only the
application visible API.

Remove superfluous header file includes from various files.

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