1 | # |
---|
2 | # $Id$ |
---|
3 | # |
---|
4 | |
---|
5 | @SET_MAKE@ |
---|
6 | srcdir = @srcdir@ |
---|
7 | top_srcdir = @top_srcdir@ |
---|
8 | top_builddir = ../.. |
---|
9 | subdir = score/src |
---|
10 | |
---|
11 | RTEMS_ROOT = @RTEMS_ROOT@ |
---|
12 | PROJECT_ROOT = @PROJECT_ROOT@ |
---|
13 | |
---|
14 | VPATH = @srcdir@ |
---|
15 | |
---|
16 | include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg |
---|
17 | include $(RTEMS_ROOT)/make/lib.cfg |
---|
18 | |
---|
19 | INSTALL_CHANGE = @INSTALL_CHANGE@ |
---|
20 | |
---|
21 | # We only build multiprocessing related files if HAS_MP was defined |
---|
22 | MP_C_PIECES_yes_V = mpci objectmp threadmp |
---|
23 | MP_C_PIECES = $(MP_C_PIECES_$(HAS_MP)_V) |
---|
24 | |
---|
25 | CORE_MESSAGE_QUEUE_C_PIECES= coremsg coremsgbroadcast coremsgclose \ |
---|
26 | coremsgflush coremsgflushsupp coremsgseize coremsgsubmit |
---|
27 | |
---|
28 | CORE_MUTEX_C_PIECES= coremutex coremutexflush coremutexseize \ |
---|
29 | coremutexsurrender |
---|
30 | |
---|
31 | CORE_SEMAPHORE_C_PIECES= coresem coresemflush coresemseize coresemsurrender |
---|
32 | |
---|
33 | HEAP_C_PIECES = heap heapallocate heapextend heapfree \ |
---|
34 | heapsizeofuserarea heapwalk |
---|
35 | |
---|
36 | OBJECT_C_PIECES = object objectallocate objectallocatebyindex \ |
---|
37 | objectclearname objectcomparenameraw objectcomparenamestring \ |
---|
38 | objectcopynameraw objectcopynamestring objectextendinformation \ |
---|
39 | objectfree objectget objectgetbyindex objectgetnext \ |
---|
40 | objectinitializeinformation objectnametoid objectshrinkinformation |
---|
41 | |
---|
42 | THREAD_C_PIECES = thread threadchangepriority threadclearstate threadclose \ |
---|
43 | threadcreateidle threaddelayended threaddispatch threadevaluatemode \ |
---|
44 | threadget threadhandler threadidlebody threadinitialize threadloadenv \ |
---|
45 | threadready threadresettimeslice threadrestart threadsetpriority \ |
---|
46 | threadsetstate threadsettransient threadstackallocate threadstackfree \ |
---|
47 | threadstart threadstartmultitasking threadtickletimeslice \ |
---|
48 | threadyieldprocessor |
---|
49 | |
---|
50 | THREADQ_C_PIECES= threadq threadqdequeue threadqdequeuefifo \ |
---|
51 | threadqdequeuepriority threadqenqueue threadqenqueuefifo \ |
---|
52 | threadqenqueuepriority threadqextract threadqextractfifo \ |
---|
53 | threadqextractpriority threadqextractwithproxy threadqfirst \ |
---|
54 | threadqfirstfifo threadqfirstpriority threadqflush threadqtimeout |
---|
55 | |
---|
56 | TOD_C_PIECES= coretod coretodset coretodtickle coretodtoseconds \ |
---|
57 | coretodvalidate |
---|
58 | |
---|
59 | WATCHDOG_C_PIECES= watchdog watchdogadjust watchdoginsert watchdogremove \ |
---|
60 | watchdogtickle |
---|
61 | |
---|
62 | # C and C++ source names, if any, go here -- minus the .c or .cc |
---|
63 | C_PIECES = apiext chain $(CORE_MESSAGE_QUEUE_C_PIECES) $(CORE_MUTEX_C_PIECES) \ |
---|
64 | $(CORE_SEMAPHORE_C_PIECES) $(HEAP_C_PIECES) interr isr \ |
---|
65 | $(OBJECT_C_PIECES) $(THREAD_C_PIECES) $(THREADQ_C_PIECES) \ |
---|
66 | $(TOD_C_PIECES) userext \ |
---|
67 | $(WATCHDOG_C_PIECES) wkspace $(MP_C_PIECES) |
---|
68 | C_FILES = $(C_PIECES:%=%.c) |
---|
69 | C_O_FILES = $(C_PIECES:%=${ARCH}/%.o) |
---|
70 | |
---|
71 | SRCS = $(C_FILES) |
---|
72 | OBJS = $(C_O_FILES) |
---|
73 | |
---|
74 | # |
---|
75 | # Add local stuff here using += |
---|
76 | # |
---|
77 | |
---|
78 | DEFINES += -D__RTEMS_INSIDE__ |
---|
79 | CPPFLAGS += |
---|
80 | CFLAGS += $(CFLAGS_OS_V) |
---|
81 | |
---|
82 | # |
---|
83 | # Add your list of files to delete here. The config files |
---|
84 | # already know how to delete some stuff, so you may want |
---|
85 | # to just run 'make clean' first to see what gets missed. |
---|
86 | # 'make clobber' already includes 'make clean' |
---|
87 | # |
---|
88 | |
---|
89 | CLEAN_ADDITIONS += |
---|
90 | CLOBBER_ADDITIONS += |
---|
91 | |
---|
92 | all: ${ARCH} $(SRCS) ${OBJS} |
---|
93 | |
---|
94 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
---|
95 | cd $(top_builddir) \ |
---|
96 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
---|