source: rtems/make/Templates/Makefile.lib @ 45789f2

4.104.114.84.95
Last change on this file since 45789f2 was df49c60, checked in by Joel Sherrill <joel.sherrill@…>, on 06/12/00 at 15:00:15

Merged from 4.5.0-beta3a

  • 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_MAKEFILE_PATH)/Makefile.inc
31
32include $(RTEMS_CUSTOM)
33include $(RTEMS_ROOT)/make/lib.cfg
34
35#
36# Add local stuff here using +=
37#
38
39DEFINES  +=
40CPPFLAGS +=
41CFLAGS   +=
42
43#
44# Add your list of files to delete here.  The config files
45#  already know how to delete some stuff, so you may want
46#  to just run 'make clean' first to see what gets missed.
47#  'make clobber' already includes 'make clean'
48#
49
50CLEAN_ADDITIONS += xxx-your-debris-goes-here
51CLOBBER_ADDITIONS +=
52
53all:    ${ARCH} $(SRCS) $(LIB)
54
55$(LIB): ${OBJS}
56        $(make-library)
57
58# Install the library, appending _g or _p as appropriate.
59# for include files, just use $(INSTALL_CHANGE)
60install:  all
61        $(INSTALL_VARIANT) -m 644 ${LIB} ${PROJECT_RELEASE}/lib
Note: See TracBrowser for help on using the repository browser.