1 | # |
---|
2 | # $Id$ |
---|
3 | # |
---|
4 | |
---|
5 | @SET_MAKE@ |
---|
6 | srcdir = @srcdir@ |
---|
7 | top_srcdir = @top_srcdir@ |
---|
8 | top_builddir = ../../../../.. |
---|
9 | subdir = c/src/exec/rtems/src |
---|
10 | |
---|
11 | INSTALL = @INSTALL@ |
---|
12 | |
---|
13 | RTEMS_ROOT = $(top_srcdir)/@RTEMS_TOPdir@ |
---|
14 | PROJECT_ROOT = @PROJECT_ROOT@ |
---|
15 | |
---|
16 | VPATH = @srcdir@ |
---|
17 | |
---|
18 | # We only build multiprocessing related files if HAS_MP was defined |
---|
19 | MP_PIECES_yes_V = eventmp mp msgmp partmp regionmp semmp signalmp taskmp |
---|
20 | MP_PIECES = $(MP_PIECES_$(HAS_MP)_V) |
---|
21 | |
---|
22 | TASK_PIECES=\ |
---|
23 | tasks taskcreate taskdelete taskgetnote taskident taskinitusers \ |
---|
24 | taskmode taskrestart taskresume tasksetnote tasksetpriority \ |
---|
25 | taskstart tasksuspend taskwakeafter taskwakewhen |
---|
26 | |
---|
27 | C_PIECES=attr clock dpmem event intr intrbody msg \ |
---|
28 | part ratemon region sem signal \ |
---|
29 | $(TASK_PIECES) timer $(MP_PIECES) |
---|
30 | C_FILES=$(C_PIECES:%=%.c) |
---|
31 | C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) |
---|
32 | |
---|
33 | SRCS=$(C_FILES) |
---|
34 | OBJS=$(C_O_FILES) |
---|
35 | |
---|
36 | include $(RTEMS_ROOT)/make/custom/${RTEMS_BSP}.cfg |
---|
37 | include $(RTEMS_ROOT)/make/lib.cfg |
---|
38 | |
---|
39 | # |
---|
40 | # Add local stuff here using += |
---|
41 | # |
---|
42 | |
---|
43 | DEFINES += -D__RTEMS_INSIDE__ |
---|
44 | CPPFLAGS += |
---|
45 | CFLAGS += $(CFLAGS_OS_V) |
---|
46 | |
---|
47 | # |
---|
48 | # Add your list of files to delete here. The config files |
---|
49 | # already know how to delete some stuff, so you may want |
---|
50 | # to just run 'make clean' first to see what gets missed. |
---|
51 | # 'make clobber' already includes 'make clean' |
---|
52 | # |
---|
53 | |
---|
54 | CLEAN_ADDITIONS += |
---|
55 | CLOBBER_ADDITIONS += |
---|
56 | |
---|
57 | all: ${ARCH} $(SRCS) ${OBJS} |
---|
58 | |
---|
59 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
---|
60 | cd $(top_builddir) \ |
---|
61 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
---|