1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | NODE = 1 |
---|
6 | TEST = mp13-node$(NODE) |
---|
7 | PGM = $(ARCH)/$(TEST).exe |
---|
8 | |
---|
9 | MANAGERS = io mp message semaphore |
---|
10 | |
---|
11 | noinst_LIBRARIES = lib.a |
---|
12 | lib_a_SOURCES = ../init.c ../task1.c ../task2.c ../system.h |
---|
13 | |
---|
14 | DOCS = $(TEST).doc $(TEST).scn |
---|
15 | |
---|
16 | OBJS = $(lib_a_OBJECTS) |
---|
17 | |
---|
18 | |
---|
19 | include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg |
---|
20 | include $(top_srcdir)/../automake/compile.am |
---|
21 | include $(top_srcdir)/../automake/leaf.am |
---|
22 | |
---|
23 | project_bspdir=$(PROJECT_ROOT) |
---|
24 | |
---|
25 | $(project_bspdir)/tests/$(dirstamp): |
---|
26 | @$(mkdir_p) $(project_bspdir)/tests |
---|
27 | @: > $(project_bspdir)/tests/$(dirstamp) |
---|
28 | |
---|
29 | $(project_bspdir)/tests/$(TEST)-node$(NODE).exe: $(PGM) $(project_bspdir)/tests/$(dirstamp) |
---|
30 | $(INSTALL_PROGRAM) $< $@ |
---|
31 | |
---|
32 | $(project_bspdir)/tests/screens/mptests/node$(NODE)/$(dirstamp): |
---|
33 | @$(mkdir_p) $(project_bspdir)/tests/screens/mptests/node$(NODE) |
---|
34 | @: > $(project_bspdir)/tests/screens/mptests/node$(NODE)/$(dirstamp) |
---|
35 | |
---|
36 | $(project_bspdir)/tests/screens/mptests/node$(NODE)/$(TEST).scn: $(TEST).scn $(project_bspdir)/tests/screens/mptests/node$(NODE)/$(dirstamp) |
---|
37 | $(INSTALL_DATA) $< $@ |
---|
38 | |
---|
39 | TMPINSTALL_FILES = \ |
---|
40 | $(project_bspdir)/tests/$(TEST)-node$(NODE).exe \ |
---|
41 | $(project_bspdir)/tests/screens/mptests/node$(NODE)/$(TEST).scn |
---|
42 | |
---|
43 | $(PGM): ${ARCH}/$(dirstamp) |
---|
44 | |
---|
45 | AM_CPPFLAGS += -DNODE_NUMBER=$(NODE) -I$(srcdir)/.. |
---|
46 | |
---|
47 | if HAS_MP |
---|
48 | |
---|
49 | # |
---|
50 | # (OPTIONAL) Add local stuff here using += |
---|
51 | # |
---|
52 | |
---|
53 | AM_CPPFLAGS += -I$(top_srcdir)/../support/include |
---|
54 | |
---|
55 | ${PGM}: $(OBJS) $(LINK_FILES) |
---|
56 | $(make-exe) |
---|
57 | |
---|
58 | all-local: $(TMPINSTALL_FILES) |
---|
59 | else |
---|
60 | all-local: |
---|
61 | endif |
---|
62 | |
---|
63 | EXTRA_DIST = $(DOCS) |
---|
64 | |
---|
65 | CLEANFILES = $(TMPINSTALL_FILES) |
---|
66 | |
---|
67 | include $(top_srcdir)/../automake/local.am |
---|