source: rtems/cpukit/score/Makefile.am @ e6f7f81

4.11
Last change on this file since e6f7f81 was e6f7f81, checked in by Sebastian Huber <sebastian.huber@…>, on Jul 23, 2013 at 2:50:51 PM

score: Create heap implementation header

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

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