use exported objcopy if available

This commit is contained in:
Connor Olding 2014-02-24 11:56:09 -08:00
parent 7545689477
commit c0ef645404

View file

@ -45,6 +45,8 @@ VST_FLAGS += -I $(VST_SDK_DIR) -DBUILDING_DLL=1
OPT_FLAGS = -Ofast -march=core2 -mfpmath=sse
OBJCOPY ?= objcopy
# any possibly produced files besides intermediates
ALL = $(SHOBJ) $(PROGRAM) $(BIN)/vstsdk.o $(EXE) $(DLL)
@ -93,11 +95,11 @@ $(UTILS): %: $(BIN)/%
$(BIN)/%.exe: $(BIN)/%
@echo 'OBJCOPY '$@
@objcopy -S $< $@
@$(OBJCOPY) -S $< $@
$(BIN)/%.dll: $(BIN)/%.so
@echo 'OBJCOPY '$@
@objcopy -S $< $@
@$(OBJCOPY) -S $< $@
$(BIN)/%-ladspa.so: $(BIN)/%-ladspa.o
@echo ' LD '$@