use exported objcopy if available
This commit is contained in:
parent
7545689477
commit
c0ef645404
1 changed files with 4 additions and 2 deletions
6
Makefile
6
Makefile
|
@ -45,6 +45,8 @@ VST_FLAGS += -I $(VST_SDK_DIR) -DBUILDING_DLL=1
|
||||||
|
|
||||||
OPT_FLAGS = -Ofast -march=core2 -mfpmath=sse
|
OPT_FLAGS = -Ofast -march=core2 -mfpmath=sse
|
||||||
|
|
||||||
|
OBJCOPY ?= objcopy
|
||||||
|
|
||||||
# any possibly produced files besides intermediates
|
# any possibly produced files besides intermediates
|
||||||
ALL = $(SHOBJ) $(PROGRAM) $(BIN)/vstsdk.o $(EXE) $(DLL)
|
ALL = $(SHOBJ) $(PROGRAM) $(BIN)/vstsdk.o $(EXE) $(DLL)
|
||||||
|
|
||||||
|
@ -93,11 +95,11 @@ $(UTILS): %: $(BIN)/%
|
||||||
|
|
||||||
$(BIN)/%.exe: $(BIN)/%
|
$(BIN)/%.exe: $(BIN)/%
|
||||||
@echo 'OBJCOPY '$@
|
@echo 'OBJCOPY '$@
|
||||||
@objcopy -S $< $@
|
@$(OBJCOPY) -S $< $@
|
||||||
|
|
||||||
$(BIN)/%.dll: $(BIN)/%.so
|
$(BIN)/%.dll: $(BIN)/%.so
|
||||||
@echo 'OBJCOPY '$@
|
@echo 'OBJCOPY '$@
|
||||||
@objcopy -S $< $@
|
@$(OBJCOPY) -S $< $@
|
||||||
|
|
||||||
$(BIN)/%-ladspa.so: $(BIN)/%-ladspa.o
|
$(BIN)/%-ladspa.so: $(BIN)/%-ladspa.o
|
||||||
@echo ' LD '$@
|
@echo ' LD '$@
|
||||||
|
|
Loading…
Reference in a new issue