Forgot to save this one; more build system tweaks.

This commit is contained in:
px4dev 2013-01-01 20:35:07 -08:00
parent eaf1d8063c
commit b3f037e876
1 changed files with 1 additions and 29 deletions

View File

@ -169,39 +169,11 @@ OBJEXT = .o
LIBEXT = .a
EXEEXT =
#define PREPROCESS
# @echo "CPP: $1->$2"
# @$(CPP) $(CPPFLAGS) $(abspath $1) -o $2
#endef
#
#define COMPILE
# @echo "CC: $1"
# $(Q)$(CC) -c $(CFLAGS) $(abspath $1) -o $2
#endef
#
#define COMPILEXX
# @echo "CXX: $1"
# $(Q)$(CXX) -c $(CXXFLAGS) $(abspath $1) -o $2
#endef
#
#define ASSEMBLE
# @echo "AS: $1"
# $(Q)$(CC) -c $(AFLAGS) $(abspath $1) -o $2
#endef
#
#define ARCHIVE
# echo "AR: $2"; \
# $(AR) $1 $2 || { echo "$(AR) $1 $2 FAILED!" ; exit 1 ; }
#endef
#
#define CLEAN
# @rm -f *.o *.a
#endef
# produce partially-linked $1 from files in $2
define PRELINK
@echo "PRELINK: $1"
@$(LD) -Ur -o $1 $2 && $(OBJCOPY) --localize-hidden $1
$(Q) $(LD) -Ur -o $1 $2 && $(OBJCOPY) --localize-hidden $1
endef
HOSTCC = gcc