source: rtems/make/Templates/Makefile.leaf

Last change on this file was baa60b5e, checked in by Sebastian Huber <sebastian.huber@…>, on Feb 12, 2013 at 10:25:25 AM

make: Remove -qrtems_debug flag usage

  • Property mode set to 100644
File size: 1.8 KB
Line 
1#
2#       Template leaf node Makefile
3#
4
5# C source names, if any, go here -- minus the .c
6C_PIECES=xxxd xxxe xxxf
7C_FILES=$(C_PIECES:%=%.c)
8C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
9
10# C++ source names, if any, go here -- minus the .cc
11CC_PIECES=xxxa xxxb xxxc
12CC_FILES=$(CC_PIECES:%=%.cc)
13CC_O_FILES=$(CC_PIECES:%=${ARCH}/%.o)
14
15H_FILES=
16
17# Assembly source names, if any, go here -- minus the .S
18S_PIECES=
19S_FILES=$(S_PIECES:%=%.S)
20S_O_FILES=$(S_FILES:%.S=${ARCH}/%.o)
21
22SRCS=$(C_FILES) $(CC_FILES) $(H_FILES) $(S_FILES)
23OBJS=$(C_O_FILES) $(CC_O_FILES) $(S_O_FILES)
24
25PGMS=${ARCH}/xxx-your-program-here ${ARCH}/xxx-another-one
26
27include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
28include $(RTEMS_CUSTOM)
29include $(RTEMS_ROOT)/make/leaf.cfg
30
31#
32# (OPTIONAL) Add local stuff here using +=
33#
34
35DEFINES  +=
36CPPFLAGS +=
37CFLAGS   +=
38
39#
40# CFLAGS_DEBUG_V are used when the `make debug' target is built.
41#
42
43LD_PATHS  += xxx-your-EXTRA-library-paths-go-here, if any
44LD_LIBS   += xxx-your-libraries-go-here eg: -lvx
45LDFLAGS   +=
46
47#
48# Add your list of files to delete here.  The config files
49#  already know how to delete some stuff, so you may want
50#  to just run 'make clean' first to see what gets missed.
51#  'make clobber' already includes 'make clean'
52#
53
54CLEAN_ADDITIONS += xxx-your-debris-goes-here
55CLOBBER_ADDITIONS +=
56
57all:    ${ARCH} $(SRCS) $(PGMS)
58
59# The following links using C rules.
60${ARCH}/xxx-your-program-here: ${OBJS} ${LINK_FILES}
61        $(make-exe)
62
63# The following links using C++ rules to get the C++ libraries.
64# Be sure you BSP has a make-cxx-exe rule if you use this.
65# ${ARCH}/xxx-your-program-here: ${OBJS} ${LINK_FILES}
66#       $(make-cxx-exe)
67
68# Install the program(s), appending _g or _p as appropriate.
69# for include files, just use $(INSTALL_CHANGE)
70install:  all
71        $(INSTALL_VARIANT) -m 555 ${PGMS} ${PROJECT_RELEASE}/bin
Note: See TracBrowser for help on using the repository browser.