source: examples-v2/cxx/libcpp/Makefile @ 58c7cee

4.11
Last change on this file since 58c7cee was 58c7cee, checked in by Joel Sherrill <joel.sherrill@…>, on Apr 1, 2011 at 6:11:30 PM

2011-04-01 Joel Sherrill <joel.sherrill@…>

  • Makefile, libcpp/Makefile: Update to account for movement of .cfg files.
  • Property mode set to 100644
File size: 1.3 KB
Line 
1#
2#  $Id$
3#
4# Templates/Makefile.lib
5#       adapted for an external library
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_FILES=
13C_O_FILES=$(C_FILES:%.c=${ARCH}/%.o)
14
15CC_FILES=foo.cc
16CC_O_FILES=$(CC_FILES:%.cc=${ARCH}/%.o)
17
18CPP_FILES=foo1.cpp
19CPP_O_FILES=$(CPP_FILES:%.cpp=${ARCH}/%.o)
20
21H_FILES=foo.h
22
23SRCS=$(C_FILES) $(CC_FILES) $(CPP_FILES) $(H_FILES)
24OBJS=$(C_O_FILES) $(CC_O_FILES) $(CPP_O_FILES)
25
26include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
27include $(RTEMS_CUSTOM)
28include $(RTEMS_SHARE)/make/lib.cfg
29
30#
31# Extra rules for other variations on C++ file name extensions
32#
33
34COMPILE.cpp=$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c
35
36${ARCH}/%.o: %.cpp
37        ${COMPILE.cc} -o $@ $<
38
39#
40# Add local stuff here using +=
41#
42
43DEFINES  +=
44CPPFLAGS +=
45CFLAGS   +=
46
47#
48# Add your list of files to delete here.  The config files
49#  already know how to delete some stuff, so you may want
50#  to just run 'make clean' first to see what gets missed.
51#  'make clobber' already includes 'make clean'
52#
53CLEAN_ADDITIONS +=
54CLOBBER_ADDITIONS +=
55
56all:    ${ARCH} $(SRCS) $(LIB)
57
58$(LIB): ${OBJS}
59        $(make-library)
60
61# Install the library, appending _g or _p as appropriate.
62# for include files, just use $(INSTALL)
63install:  all
64        # $(INSTALL_VARIANT) -m 644 ${LIB} ${PROJECT_RELEASE}/lib
Note: See TracBrowser for help on using the repository browser.