source: rtems/make/Templates/Makefile.leaf

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

make: Remove -qrtems_debug flag usage

  • Property mode set to 100644
File size: 1.8 KB
RevLine 
[bffb938]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
[0162910]17# Assembly source names, if any, go here -- minus the .S
[bffb938]18S_PIECES=
[0162910]19S_FILES=$(S_PIECES:%=%.S)
20S_O_FILES=$(S_FILES:%.S=${ARCH}/%.o)
[bffb938]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
[df49c60]27include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
28include $(RTEMS_CUSTOM)
[bffb938]29include $(RTEMS_ROOT)/make/leaf.cfg
30
31#
32# (OPTIONAL) Add local stuff here using +=
33#
34
35DEFINES  +=
36CPPFLAGS +=
37CFLAGS   +=
38
[a858910]39#
40# CFLAGS_DEBUG_V are used when the `make debug' target is built.
41#
42
[bffb938]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
[2b2cfb7]59# The following links using C rules.
[bffb938]60${ARCH}/xxx-your-program-here: ${OBJS} ${LINK_FILES}
61        $(make-exe)
62
[2b2cfb7]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
[bffb938]68# Install the program(s), appending _g or _p as appropriate.
[8548fe0]69# for include files, just use $(INSTALL_CHANGE)
[bffb938]70install:  all
71        $(INSTALL_VARIANT) -m 555 ${PGMS} ${PROJECT_RELEASE}/bin
Note: See TracBrowser for help on using the repository browser.