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