[fba12eb6] | 1 | ## |
---|
| 2 | ## $Id$ |
---|
| 3 | ## |
---|
| 4 | |
---|
| 5 | AUTOMAKE_OPTIONS = foreign 1.4 |
---|
| 6 | |
---|
| 7 | include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg |
---|
[cc480f9c] | 8 | include $(top_srcdir)/../../../automake/compile.am |
---|
[fba12eb6] | 9 | include $(top_srcdir)/../../../automake/lib.am |
---|
| 10 | |
---|
| 11 | # We only build multiprocessing related files if HAS_MP was defined |
---|
| 12 | MP_C_FILES = mpci.c objectmp.c threadmp.c |
---|
| 13 | |
---|
| 14 | CORE_MESSAGE_QUEUE_C_FILES = coremsg.c coremsgbroadcast.c coremsgclose.c \ |
---|
[d65c3768] | 15 | coremsgflush.c coremsgflushwait.c coremsginsert.c coremsgflushsupp.c \ |
---|
| 16 | coremsgseize.c coremsgsubmit.c |
---|
[fba12eb6] | 17 | |
---|
| 18 | CORE_MUTEX_C_FILES = coremutex.c coremutexflush.c coremutexseize.c \ |
---|
| 19 | coremutexsurrender.c |
---|
| 20 | |
---|
| 21 | CORE_SEMAPHORE_C_FILES = coresem.c coresemflush.c coresemseize.c \ |
---|
| 22 | coresemsurrender.c |
---|
| 23 | |
---|
| 24 | HEAP_C_FILES = heap.c heapallocate.c heapextend.c heapfree.c \ |
---|
| 25 | heapsizeofuserarea.c heapwalk.c |
---|
| 26 | |
---|
| 27 | OBJECT_C_FILES = object.c objectallocate.c objectallocatebyindex.c \ |
---|
| 28 | objectclearname.c objectcomparenameraw.c objectcomparenamestring.c \ |
---|
| 29 | objectcopynameraw.c objectcopynamestring.c objectextendinformation.c \ |
---|
[8a3278fc] | 30 | objectfree.c objectget.c objectgetisr.c objectgetbyindex.c \ |
---|
| 31 | objectgetnext.c objectinitializeinformation.c objectnametoid.c \ |
---|
| 32 | objectshrinkinformation.c |
---|
[fba12eb6] | 33 | |
---|
| 34 | THREAD_C_FILES = thread.c threadchangepriority.c threadclearstate.c \ |
---|
| 35 | threadclose.c threadcreateidle.c threaddelayended.c threaddispatch.c \ |
---|
| 36 | threadevaluatemode.c threadget.c threadhandler.c threadidlebody.c \ |
---|
[fdcb2b52] | 37 | threadinitialize.c threadloadenv.c threadready.c threadresettimeslice.c \ |
---|
| 38 | threadreset.c threadrestart.c threadresume.c threadrotatequeue.c \ |
---|
| 39 | threadsetpriority.c threadsetstate.c threadsettransient.c \ |
---|
| 40 | threadstackallocate.c threadstackfree.c threadstart.c \ |
---|
| 41 | threadstartmultitasking.c threadsuspend.c threadtickletimeslice.c \ |
---|
| 42 | threadyieldprocessor.c |
---|
[fba12eb6] | 43 | |
---|
| 44 | THREADQ_C_FILES = threadq.c threadqdequeue.c threadqdequeuefifo.c \ |
---|
| 45 | threadqdequeuepriority.c threadqenqueue.c threadqenqueuefifo.c \ |
---|
| 46 | threadqenqueuepriority.c threadqextract.c threadqextractfifo.c \ |
---|
| 47 | threadqextractpriority.c threadqextractwithproxy.c threadqfirst.c \ |
---|
| 48 | threadqfirstfifo.c threadqfirstpriority.c threadqflush.c \ |
---|
| 49 | threadqtimeout.c |
---|
| 50 | |
---|
| 51 | TOD_C_FILES = coretod.c coretodset.c coretodtickle.c coretodtoseconds.c \ |
---|
| 52 | coretodvalidate.c |
---|
| 53 | |
---|
| 54 | WATCHDOG_C_FILES = watchdog.c watchdogadjust.c watchdoginsert.c \ |
---|
| 55 | watchdogremove.c watchdogtickle.c |
---|
| 56 | |
---|
| 57 | STD_C_FILES = apiext.c chain.c $(CORE_MESSAGE_QUEUE_C_FILES) \ |
---|
[fdcb2b52] | 58 | $(CORE_MUTEX_C_FILES) $(CORE_SEMAPHORE_C_FILES) $(HEAP_C_FILES) interr.c \ |
---|
| 59 | isr.c $(OBJECT_C_FILES) $(THREAD_C_FILES) $(THREADQ_C_FILES) \ |
---|
[fba12eb6] | 60 | $(TOD_C_FILES) userext.c $(WATCHDOG_C_FILES) wkspace.c |
---|
| 61 | |
---|
| 62 | if HAS_MP |
---|
| 63 | C_FILES = $(STD_C_FILES) $(MP_C_FILES) |
---|
| 64 | else |
---|
| 65 | C_FILES = $(STD_C_FILES) |
---|
| 66 | endif |
---|
| 67 | C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o) |
---|
| 68 | |
---|
| 69 | OBJS = $(C_O_FILES) |
---|
| 70 | |
---|
| 71 | # |
---|
| 72 | # Add local stuff here using += |
---|
| 73 | # |
---|
| 74 | |
---|
| 75 | AM_CPPFLAGS += -D__RTEMS_INSIDE__ |
---|
| 76 | |
---|
[df49c60] | 77 | all-local: ${ARCH} ${OBJS} |
---|
[fba12eb6] | 78 | |
---|
| 79 | EXTRA_DIST = $(STD_C_FILES) $(MP_C_FILES) Unlimited.txt |
---|
| 80 | |
---|
| 81 | include $(top_srcdir)/../../../automake/local.am |
---|