source: rtems/make/Templates/Makefile.leaf @ c1f00ca

4.104.114.84.95
Last change on this file since c1f00ca was 4cc3ff95, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 22, 2002 at 10:56:09 PM

2002-07-22 Joel Sherrill <joel@…>

  • Property mode set to 100644
File size: 2.0 KB
Line 
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
9C_PIECES=xxxd xxxe xxxf
10C_FILES=$(C_PIECES:%=%.c)
11C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
12
13# C++ source names, if any, go here -- minus the .cc
14CC_PIECES=xxxa xxxb xxxc
15CC_FILES=$(CC_PIECES:%=%.cc)
16CC_O_FILES=$(CC_PIECES:%=${ARCH}/%.o)
17
18H_FILES=
19
20# Assembly source names, if any, go here -- minus the .S
21S_PIECES=
22S_FILES=$(S_PIECES:%=%.S)
23S_O_FILES=$(S_FILES:%.S=${ARCH}/%.o)
24
25SRCS=$(C_FILES) $(CC_FILES) $(H_FILES) $(S_FILES)
26OBJS=$(C_O_FILES) $(CC_O_FILES) $(S_O_FILES)
27
28PGMS=${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
36MANAGERS=XXX
37
38include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
39
40include $(RTEMS_CUSTOM)
41include $(RTEMS_ROOT)/make/leaf.cfg
42
43#
44# (OPTIONAL) Add local stuff here using +=
45#
46
47DEFINES  +=
48CPPFLAGS +=
49CFLAGS   +=
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
58LD_PATHS  += xxx-your-EXTRA-library-paths-go-here, if any
59LD_LIBS   += xxx-your-libraries-go-here eg: -lvx
60LDFLAGS   +=
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
69CLEAN_ADDITIONS += xxx-your-debris-goes-here
70CLOBBER_ADDITIONS +=
71
72all:    ${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)
79install:  all
80        $(INSTALL_VARIANT) -m 555 ${PGMS} ${PROJECT_RELEASE}/bin
Note: See TracBrowser for help on using the repository browser.