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