Back to home page

LXR

 
 

    


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

0001 #
0002 #       Template leaf node Makefile
0003 #
0004 
0005 # C source names, if any, go here -- minus the .c
0006 C_PIECES=xxxd xxxe xxxf
0007 C_FILES=$(C_PIECES:%=%.c)
0008 C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
0009 
0010 # C++ source names, if any, go here -- minus the .cc
0011 CC_PIECES=xxxa xxxb xxxc
0012 CC_FILES=$(CC_PIECES:%=%.cc)
0013 CC_O_FILES=$(CC_PIECES:%=${ARCH}/%.o)
0014 
0015 H_FILES=
0016 
0017 # Assembly source names, if any, go here -- minus the .S
0018 S_PIECES=
0019 S_FILES=$(S_PIECES:%=%.S)
0020 S_O_FILES=$(S_FILES:%.S=${ARCH}/%.o)
0021 
0022 SRCS=$(C_FILES) $(CC_FILES) $(H_FILES) $(S_FILES)
0023 OBJS=$(C_O_FILES) $(CC_O_FILES) $(S_O_FILES)
0024 
0025 PGMS=${ARCH}/xxx-your-program-here ${ARCH}/xxx-another-one
0026 
0027 include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
0028 include $(RTEMS_CUSTOM)
0029 include $(RTEMS_ROOT)/make/leaf.cfg
0030 
0031 #
0032 # (OPTIONAL) Add local stuff here using +=
0033 #
0034 
0035 DEFINES  +=
0036 CPPFLAGS +=
0037 CFLAGS   +=
0038 
0039 #
0040 # CFLAGS_DEBUG_V are used when the `make debug' target is built.
0041 #
0042 
0043 LD_PATHS  += xxx-your-EXTRA-library-paths-go-here, if any
0044 LD_LIBS   += xxx-your-libraries-go-here eg: -lvx
0045 LDFLAGS   +=
0046 
0047 #
0048 # Add your list of files to delete here.  The config files
0049 #  already know how to delete some stuff, so you may want
0050 #  to just run 'make clean' first to see what gets missed.
0051 #  'make clobber' already includes 'make clean'
0052 #
0053 
0054 CLEAN_ADDITIONS += xxx-your-debris-goes-here
0055 CLOBBER_ADDITIONS +=
0056 
0057 all:    ${ARCH} $(SRCS) $(PGMS)
0058 
0059 # The following links using C rules.
0060 ${ARCH}/xxx-your-program-here: ${OBJS} ${LINK_FILES}
0061         $(make-exe)
0062 
0063 # The following links using C++ rules to get the C++ libraries.
0064 # Be sure you BSP has a make-cxx-exe rule if you use this.
0065 # ${ARCH}/xxx-your-program-here: ${OBJS} ${LINK_FILES}
0066 #       $(make-cxx-exe)
0067 
0068 # Install the program(s), appending _g or _p as appropriate.
0069 # for include files, just use $(INSTALL_CHANGE)
0070 install:  all
0071         $(INSTALL_VARIANT) -m 555 ${PGMS} ${PROJECT_RELEASE}/bin