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 Classic API Managers to be included in the application |
---|
31 | # goes here. Use: |
---|
32 | # MANAGERS=all |
---|
33 | # to include all RTEMS Classic API Managers in the application or |
---|
34 | # something like this to include a specific set of managers. |
---|
35 | # MANAGERS=io event message rate_monotonic semaphore timer |
---|
36 | MANAGERS=XXX |
---|
37 | |
---|
38 | include $(RTEMS_MAKEFILE_PATH)/Makefile.inc |
---|
39 | |
---|
40 | include $(RTEMS_CUSTOM) |
---|
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 | # |
---|
52 | # CFLAGS_DEBUG_V are used when the `make debug' target is built. |
---|
53 | # To link your application with the non-optimized RTEMS routines, |
---|
54 | # uncomment the following line: |
---|
55 | # CFLAGS_DEBUG_V += -qrtems_debug |
---|
56 | # |
---|
57 | |
---|
58 | LD_PATHS += xxx-your-EXTRA-library-paths-go-here, if any |
---|
59 | LD_LIBS += xxx-your-libraries-go-here eg: -lvx |
---|
60 | LDFLAGS += |
---|
61 | |
---|
62 | # |
---|
63 | # Add your list of files to delete here. The config files |
---|
64 | # already know how to delete some stuff, so you may want |
---|
65 | # to just run 'make clean' first to see what gets missed. |
---|
66 | # 'make clobber' already includes 'make clean' |
---|
67 | # |
---|
68 | |
---|
69 | CLEAN_ADDITIONS += xxx-your-debris-goes-here |
---|
70 | CLOBBER_ADDITIONS += |
---|
71 | |
---|
72 | all: ${ARCH} $(SRCS) $(PGMS) |
---|
73 | |
---|
74 | ${ARCH}/xxx-your-program-here: ${OBJS} ${LINK_FILES} |
---|
75 | $(make-exe) |
---|
76 | |
---|
77 | # Install the program(s), appending _g or _p as appropriate. |
---|
78 | # for include files, just use $(INSTALL_CHANGE) |
---|
79 | install: all |
---|
80 | $(INSTALL_VARIANT) -m 555 ${PGMS} ${PROJECT_RELEASE}/bin |
---|