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 | THREAD_C_PIECES = thread threadchangepriority threadclearstate threadclose \ |
---|
26 | threadcreateidle threaddelayended threaddispatch threadevaluatemode \ |
---|
27 | threadget threadhandler threadidlebody threadinitialize threadloadenv \ |
---|
28 | threadready threadresettimeslice threadrestart threadsetpriority \ |
---|
29 | threadsetstate threadsettransient threadstackallocate threadstackfree \ |
---|
30 | threadstart threadstartmultitasking threadtickletimeslice \ |
---|
31 | threadyieldprocessor |
---|
32 | |
---|
33 | # C and C++ source names, if any, go here -- minus the .c or .cc |
---|
34 | C_PIECES = apiext chain coremsg coremutex coresem coretod heap interr isr \ |
---|
35 | object $(THREAD_C_PIECES) threadq userext watchdog wkspace \ |
---|
36 | $(MP_C_PIECES) |
---|
37 | C_FILES = $(C_PIECES:%=%.c) |
---|
38 | C_O_FILES = $(C_PIECES:%=${ARCH}/%.o) |
---|
39 | |
---|
40 | SRCS = $(C_FILES) |
---|
41 | OBJS = $(C_O_FILES) |
---|
42 | |
---|
43 | # |
---|
44 | # Add local stuff here using += |
---|
45 | # |
---|
46 | |
---|
47 | DEFINES += -D__RTEMS_INSIDE__ |
---|
48 | CPPFLAGS += |
---|
49 | CFLAGS += $(CFLAGS_OS_V) |
---|
50 | |
---|
51 | # |
---|
52 | # Add your list of files to delete here. The config files |
---|
53 | # already know how to delete some stuff, so you may want |
---|
54 | # to just run 'make clean' first to see what gets missed. |
---|
55 | # 'make clobber' already includes 'make clean' |
---|
56 | # |
---|
57 | |
---|
58 | CLEAN_ADDITIONS += |
---|
59 | CLOBBER_ADDITIONS += |
---|
60 | |
---|
61 | all: ${ARCH} $(SRCS) ${OBJS} |
---|
62 | |
---|
63 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
---|
64 | cd $(top_builddir) \ |
---|
65 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
---|