1 | # |
---|
2 | # $Id$ |
---|
3 | # |
---|
4 | # Templates/Makefile.leaf |
---|
5 | # Template leaf node Makefile |
---|
6 | # |
---|
7 | |
---|
8 | # C source names, if any, go here -- minus the .c |
---|
9 | C_PIECES=xxxd xxxe xxxf |
---|
10 | C_FILES=$(C_PIECES:%=%.c) |
---|
11 | C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) |
---|
12 | |
---|
13 | # C++ source names, if any, go here -- minus the .cc |
---|
14 | CC_PIECES=xxxa xxxb xxxc |
---|
15 | CC_FILES=$(CC_PIECES:%=%.cc) |
---|
16 | CC_O_FILES=$(CC_PIECES:%=${ARCH}/%.o) |
---|
17 | |
---|
18 | H_FILES= |
---|
19 | |
---|
20 | # Assembly source names, if any, go here -- minus the .s |
---|
21 | S_PIECES= |
---|
22 | S_FILES=$(S_PIECES:%=%.s) |
---|
23 | S_O_FILES=$(S_FILES:%.s=${ARCH}/%.o) |
---|
24 | |
---|
25 | SRCS=$(C_FILES) $(CC_FILES) $(H_FILES) $(S_FILES) |
---|
26 | OBJS=$(C_O_FILES) $(CC_O_FILES) $(S_O_FILES) |
---|
27 | |
---|
28 | PGMS=${ARCH}/xxx-your-program-here ${ARCH}/xxx-another-one |
---|
29 | |
---|
30 | # List of RTEMS managers to be included in the application goes here. |
---|
31 | # Use: |
---|
32 | # MANAGERS=all |
---|
33 | # to include all RTEMS managers in the application. |
---|
34 | MANAGERS=io event message rate_monotonic semaphore timer, etc. |
---|
35 | |
---|
36 | |
---|
37 | include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg |
---|
38 | include $(RTEMS_ROOT)/make/leaf.cfg |
---|
39 | |
---|
40 | # |
---|
41 | # (OPTIONAL) Add local stuff here using += |
---|
42 | # |
---|
43 | |
---|
44 | DEFINES += |
---|
45 | CPPFLAGS += |
---|
46 | CFLAGS += |
---|
47 | |
---|
48 | LD_PATHS += xxx-your-EXTRA-library-paths-go-here, if any |
---|
49 | LD_LIBS += xxx-your-libraries-go-here eg: -lvx |
---|
50 | LDFLAGS += |
---|
51 | |
---|
52 | # |
---|
53 | # Add your list of files to delete here. The config files |
---|
54 | # already know how to delete some stuff, so you may want |
---|
55 | # to just run 'make clean' first to see what gets missed. |
---|
56 | # 'make clobber' already includes 'make clean' |
---|
57 | # |
---|
58 | |
---|
59 | CLEAN_ADDITIONS += xxx-your-debris-goes-here |
---|
60 | CLOBBER_ADDITIONS += |
---|
61 | |
---|
62 | all: ${ARCH} $(SRCS) $(PGMS) |
---|
63 | |
---|
64 | ${ARCH}/xxx-your-program-here: ${OBJS} ${LINK_FILES} |
---|
65 | $(make-exe) |
---|
66 | |
---|
67 | # Install the program(s), appending _g or _p as appropriate. |
---|
68 | # for include files, just use $(INSTALL) |
---|
69 | install: all |
---|
70 | $(INSTALL_VARIANT) -m 555 ${PGMS} ${PROJECT_RELEASE}/bin |
---|