source: rtems/make/Templates/Makefile.leaf @ 0ab65474

4.104.114.84.95
Last change on this file since 0ab65474 was 8548fe0, checked in by Joel Sherrill <joel.sherrill@…>, on 02/18/99 at 18:36:05

Part of the automake VI patch from Ralf Corsepius <corsepiu@…>:

5) rtems-rc-19990202-1.diff/reorg-install.sh

reorg-install.sh fixes a Makefile variable name clash of RTEMS
configuration files and automake/autoconf standards.
Until now, RTEMS used $(INSTALL) for install-if-change. Automake and
autoconf use $(INSTALL) for a bsd-compatible install. As
install-if-change and bsd-install are not compatible, I renamed all
references to install-if-changed to $(INSTALL_CHANGED) and used
$(INSTALL) for bsd-install (==automake/autoconf standard). When
automake will be introduced install-if-change will probably be replaced
by $(INSTALL) and therefore will slowly vanish. For the moment, this
patch fixes a very nasty problem which prevents adding any automake file
until now (There are still more).

  • Property mode set to 100644
File size: 1.9 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 managers to be included in the application goes here.
31# Use:
32#     MANAGERS=all
33# to include all RTEMS managers in the application.
34MANAGERS=io event message rate_monotonic semaphore timer, etc.
35
36
37include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
38include $(RTEMS_ROOT)/make/leaf.cfg
39
40#
41# (OPTIONAL) Add local stuff here using +=
42#
43
44DEFINES  +=
45CPPFLAGS +=
46CFLAGS   +=
47
48#
49# CFLAGS_DEBUG_V are used when the `make debug' target is built.
50# To link your application with the non-optimized RTEMS routines,
51# uncomment the following line:
52# CFLAGS_DEBUG_V += -qrtems_debug
53#
54
55LD_PATHS  += xxx-your-EXTRA-library-paths-go-here, if any
56LD_LIBS   += xxx-your-libraries-go-here eg: -lvx
57LDFLAGS   +=
58
59#
60# Add your list of files to delete here.  The config files
61#  already know how to delete some stuff, so you may want
62#  to just run 'make clean' first to see what gets missed.
63#  'make clobber' already includes 'make clean'
64#
65
66CLEAN_ADDITIONS += xxx-your-debris-goes-here
67CLOBBER_ADDITIONS +=
68
69all:    ${ARCH} $(SRCS) $(PGMS)
70
71${ARCH}/xxx-your-program-here: ${OBJS} ${LINK_FILES}
72        $(make-exe)
73
74# Install the program(s), appending _g or _p as appropriate.
75# for include files, just use $(INSTALL_CHANGE)
76install:  all
77        $(INSTALL_VARIANT) -m 555 ${PGMS} ${PROJECT_RELEASE}/bin
Note: See TracBrowser for help on using the repository browser.