Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:24:27

0001 #
0002 #       Template library Makefile
0003 #
0004 
0005 LIBNAME=libfoo.a        # xxx- your library names goes here
0006 LIB=${ARCH}/${LIBNAME}
0007 
0008 # C and C++ source names, if any, go here -- minus the .c or .cc
0009 C_PIECES=xxxd xxxe xxxf
0010 C_FILES=$(C_PIECES:%=%.c)
0011 C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
0012 
0013 CC_PIECES=xxxa xxxb xxxc
0014 CC_FILES=$(CC_PIECES:%=%.cc)
0015 CC_O_FILES=$(CC_PIECES:%=${ARCH}/%.o)
0016 
0017 H_FILES=
0018 
0019 # Assembly source names, if any, go here -- minus the .S
0020 S_PIECES=
0021 S_FILES=$(S_PIECES:%=%.S)
0022 S_O_FILES=$(S_FILES:%.S=${ARCH}/%.o)
0023 
0024 SRCS=$(C_FILES) $(CC_FILES) $(H_FILES) $(S_FILES)
0025 OBJS=$(C_O_FILES) $(CC_O_FILES) $(S_O_FILES)
0026 
0027 include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
0028 
0029 include $(RTEMS_CUSTOM)
0030 include $(RTEMS_ROOT)/make/lib.cfg
0031 
0032 #
0033 # Add local stuff here using +=
0034 #
0035 
0036 DEFINES  +=
0037 CPPFLAGS +=
0038 CFLAGS   +=
0039 
0040 #
0041 # Add your list of files to delete here.  The config files
0042 #  already know how to delete some stuff, so you may want
0043 #  to just run 'make clean' first to see what gets missed.
0044 #  'make clobber' already includes 'make clean'
0045 #
0046 
0047 CLEAN_ADDITIONS += xxx-your-debris-goes-here
0048 CLOBBER_ADDITIONS +=
0049 
0050 all:    ${ARCH} $(SRCS) $(LIB)
0051 
0052 $(LIB): ${OBJS}
0053         $(make-library)
0054 
0055 # Install the library, appending _g or _p as appropriate.
0056 # for include files, just use $(INSTALL_CHANGE)
0057 install:  all
0058         $(INSTALL_VARIANT) -m 644 ${LIB} ${PROJECT_RELEASE}/lib