source: rtems/make/Templates/Makefile.lib @ 0162910

4.104.114.84.95
Last change on this file since 0162910 was 0162910, checked in by Joel Sherrill <joel.sherrill@…>, on 12/14/98 at 23:15:38

Patch from Ralf Corsepius <corsepiu@…> to rename all
.s files to .S in conformance with GNU conventions. This is a
minor step along the way to supporting automake.

  • 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)
58install:  all
59        $(INSTALL_VARIANT) -m 644 ${LIB} ${PROJECT_RELEASE}/lib
Note: See TracBrowser for help on using the repository browser.