diff --git a/Makefile b/Makefile index 9477d49..30d3663 100644 --- a/Makefile +++ b/Makefile @@ -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 '$@