source: rtems/make/Templates/Makefile.lib @ 2ce44de

5
Last change on this file since 2ce44de was c1e98cd, checked in by Sebastian Huber <sebastian.huber@…>, on 11/05/15 at 10:51:20

Resurrect make/Templates/Makefile.lib

This file was accidentally removed by
370c09a1f4012139aebabb4f2c9ec081855fc94d.

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