source: rtems/make/Templates/Makefile.lib @ 4f021c0

4.104.114.84.95
Last change on this file since 4f021c0 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.3 KB
Line 
1#
2#  $Id$
3#
4# Templates/Makefile.lib
5#       Template library Makefile
6#
7
8LIBNAME=libfoo.a        # xxx- your library names goes here
9LIB=${ARCH}/${LIBNAME}
10
11# C and C++ source names, if any, go here -- minus the .c or .cc
12C_PIECES=xxxd xxxe xxxf
13C_FILES=$(C_PIECES:%=%.c)
14C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
15
16CC_PIECES=xxxa xxxb xxxc
17CC_FILES=$(CC_PIECES:%=%.cc)
18CC_O_FILES=$(CC_PIECES:%=${ARCH}/%.o)
19
20H_FILES=
21
22# Assembly source names, if any, go here -- minus the .S
23S_PIECES=
24S_FILES=$(S_PIECES:%=%.S)
25S_O_FILES=$(S_FILES:%.S=${ARCH}/%.o)
26
27SRCS=$(C_FILES) $(CC_FILES) $(H_FILES) $(S_FILES)
28OBJS=$(C_O_FILES) $(CC_O_FILES) $(S_O_FILES)
29
30include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
31include $(RTEMS_ROOT)/make/lib.cfg
32
33#
34# Add local stuff here using +=
35#
36
37DEFINES  +=
38CPPFLAGS +=
39CFLAGS   +=
40
41#
42# Add your list of files to delete here.  The config files
43#  already know how to delete some stuff, so you may want
44#  to just run 'make clean' first to see what gets missed.
45#  'make clobber' already includes 'make clean'
46#
47
48CLEAN_ADDITIONS += xxx-your-debris-goes-here
49CLOBBER_ADDITIONS +=
50
51all:    ${ARCH} $(SRCS) $(LIB)
52
53$(LIB): ${OBJS}
54        $(make-library)
55
56# Install the library, appending _g or _p as appropriate.
57# for include files, just use $(INSTALL_CHANGE)
58install:  all
59        $(INSTALL_VARIANT) -m 644 ${LIB} ${PROJECT_RELEASE}/lib
Note: See TracBrowser for help on using the repository browser.