forked from Imagelibrary/rtems
> 5) rtems-rc-19990202-1.diff/reorg-install.sh > > reorg-install.sh fixes a Makefile variable name clash of RTEMS > configuration files and automake/autoconf standards. > Until now, RTEMS used $(INSTALL) for install-if-change. Automake and > autoconf use $(INSTALL) for a bsd-compatible install. As > install-if-change and bsd-install are not compatible, I renamed all > references to install-if-changed to $(INSTALL_CHANGED) and used > $(INSTALL) for bsd-install (==automake/autoconf standard). When > automake will be introduced install-if-change will probably be replaced > by $(INSTALL) and therefore will slowly vanish. For the moment, this > patch fixes a very nasty problem which prevents adding any automake file > until now (There are still more).
60 lines
1.3 KiB
Makefile
60 lines
1.3 KiB
Makefile
#
|
|
# $Id$
|
|
#
|
|
# Templates/Makefile.lib
|
|
# Template library Makefile
|
|
#
|
|
|
|
LIBNAME=libfoo.a # xxx- your library names goes here
|
|
LIB=${ARCH}/${LIBNAME}
|
|
|
|
# C and C++ source names, if any, go here -- minus the .c or .cc
|
|
C_PIECES=xxxd xxxe xxxf
|
|
C_FILES=$(C_PIECES:%=%.c)
|
|
C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
|
|
|
|
CC_PIECES=xxxa xxxb xxxc
|
|
CC_FILES=$(CC_PIECES:%=%.cc)
|
|
CC_O_FILES=$(CC_PIECES:%=${ARCH}/%.o)
|
|
|
|
H_FILES=
|
|
|
|
# Assembly source names, if any, go here -- minus the .S
|
|
S_PIECES=
|
|
S_FILES=$(S_PIECES:%=%.S)
|
|
S_O_FILES=$(S_FILES:%.S=${ARCH}/%.o)
|
|
|
|
SRCS=$(C_FILES) $(CC_FILES) $(H_FILES) $(S_FILES)
|
|
OBJS=$(C_O_FILES) $(CC_O_FILES) $(S_O_FILES)
|
|
|
|
include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
|
|
include $(RTEMS_ROOT)/make/lib.cfg
|
|
|
|
#
|
|
# Add local stuff here using +=
|
|
#
|
|
|
|
DEFINES +=
|
|
CPPFLAGS +=
|
|
CFLAGS +=
|
|
|
|
#
|
|
# Add your list of files to delete here. The config files
|
|
# already know how to delete some stuff, so you may want
|
|
# to just run 'make clean' first to see what gets missed.
|
|
# 'make clobber' already includes 'make clean'
|
|
#
|
|
|
|
CLEAN_ADDITIONS += xxx-your-debris-goes-here
|
|
CLOBBER_ADDITIONS +=
|
|
|
|
all: ${ARCH} $(SRCS) $(LIB)
|
|
|
|
$(LIB): ${OBJS}
|
|
$(make-library)
|
|
|
|
# Install the library, appending _g or _p as appropriate.
|
|
# for include files, just use $(INSTALL_CHANGE)
|
|
install: all
|
|
$(INSTALL_VARIANT) -m 644 ${LIB} ${PROJECT_RELEASE}/lib
|