forked from Archive/PX4-Autopilot
Forgot to save this one; more build system tweaks.
This commit is contained in:
parent
eaf1d8063c
commit
b3f037e876
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue