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