1 | # |
---|
2 | # $Id$ |
---|
3 | # |
---|
4 | |
---|
5 | @SET_MAKE@ |
---|
6 | srcdir = @srcdir@ |
---|
7 | top_srcdir = @top_srcdir@ |
---|
8 | top_builddir = ../.. |
---|
9 | subdir = mp11/node2 |
---|
10 | |
---|
11 | RTEMS_ROOT = @RTEMS_ROOT@ |
---|
12 | PROJECT_ROOT = @PROJECT_ROOT@ |
---|
13 | |
---|
14 | VPATH = @srcdir@:@srcdir@/.. |
---|
15 | |
---|
16 | NODE = 2 |
---|
17 | TEST = mp11 |
---|
18 | PGM = ${ARCH}/$(TEST)-node$(NODE).exe |
---|
19 | |
---|
20 | MANAGERS = io mp message partition semaphore |
---|
21 | |
---|
22 | # C source names, if any, go here -- minus the .c |
---|
23 | C_PIECES = init |
---|
24 | C_FILES = $(C_PIECES:%=%.c) |
---|
25 | C_O_FILES = $(C_PIECES:%=${ARCH}/%.o) |
---|
26 | |
---|
27 | H_FILES = system.h |
---|
28 | |
---|
29 | DOCTYPES = doc scn |
---|
30 | DOCS = $(DOCTYPES:%=$(TEST).%) |
---|
31 | |
---|
32 | SRCS = $(DOCS) $(C_FILES) $(H_FILES) |
---|
33 | OBJS = $(C_O_FILES) |
---|
34 | |
---|
35 | PRINT_SRCS = $(DOCS) |
---|
36 | |
---|
37 | include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg |
---|
38 | include $(RTEMS_ROOT)/make/leaf.cfg |
---|
39 | |
---|
40 | INSTALL_CHANGE = @INSTALL_CHANGE@ |
---|
41 | PACKHEX = @PACKHEX@ |
---|
42 | mkinstalldirs = $(SHELL) $(top_srcdir)/@RTEMS_TOPdir@/mkinstalldirs |
---|
43 | |
---|
44 | INSTALLDIRS = $(PROJECT_RELEASE)/tests/screens/mptests/node$(NODE) |
---|
45 | |
---|
46 | $(INSTALLDIRS): |
---|
47 | @$(mkinstalldirs) $(INSTALLDIRS) |
---|
48 | |
---|
49 | # |
---|
50 | # (OPTIONAL) Add local stuff here using += |
---|
51 | # |
---|
52 | |
---|
53 | DEFINES += -DNODE_NUMBER=$(NODE) |
---|
54 | CPPFLAGS += -I. |
---|
55 | CFLAGS += |
---|
56 | |
---|
57 | LD_PATHS += |
---|
58 | LD_LIBS += |
---|
59 | LDFLAGS += |
---|
60 | |
---|
61 | # |
---|
62 | # Add your list of files to delete here. The config files |
---|
63 | # already know how to delete some stuff, so you may want |
---|
64 | # to just run 'make clean' first to see what gets missed. |
---|
65 | # 'make clobber' already includes 'make clean' |
---|
66 | # |
---|
67 | |
---|
68 | CLEAN_ADDITIONS += |
---|
69 | CLOBBER_ADDITIONS += |
---|
70 | |
---|
71 | all: ${ARCH} $(SRCS) $(PGM) |
---|
72 | $(INSTALL_VARIANT) -m 755 ${PGM} $(PROJECT_RELEASE)/tests |
---|
73 | $(INSTALL_CHANGE) $(srcdir)/$(TEST).scn \ |
---|
74 | $(PROJECT_RELEASE)/tests/screens/mptests/node$(NODE)/$(TEST).scn |
---|
75 | |
---|
76 | ${PGM}: $(OBJS) $(LINK_FILES) |
---|
77 | $(make-exe) |
---|
78 | |
---|
79 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
---|
80 | cd $(top_builddir) \ |
---|
81 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
---|