refine make output (like linux and automake)
This commit is contained in:
parent
5bf857dee4
commit
eb2eec3709
1 changed files with 12 additions and 14 deletions
14
Makefile
14
Makefile
|
@ -45,8 +45,6 @@ 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)
|
||||||
|
|
||||||
|
@ -107,11 +105,11 @@ $(BIN)/%.dll: $(BIN)/%.so
|
||||||
@$(OBJCOPY) -S $< $@
|
@$(OBJCOPY) -S $< $@
|
||||||
|
|
||||||
$(BIN)/%-ladspa.so: $(BIN)/%-ladspa.o
|
$(BIN)/%-ladspa.so: $(BIN)/%-ladspa.o
|
||||||
@echo ' LD '$@
|
@echo ' CCLD '$@
|
||||||
@$(CC) $(ALL_CFLAGS) $(LADSPA_FLAGS) -shared $^ -o $@ $(ALL_LDFLAGS)
|
@$(CC) $(ALL_CFLAGS) $(LADSPA_FLAGS) -shared $^ -o $@ $(ALL_LDFLAGS)
|
||||||
|
|
||||||
$(BIN)/%-vst.so: $(BIN)/%-vst.o $(BIN)/vstsdk.o
|
$(BIN)/%-vst.so: $(BIN)/%-vst.o $(BIN)/vstsdk.o
|
||||||
@echo ' LD '$@
|
@echo ' CXXLD '$@
|
||||||
@$(CXX) $(ALL_CXXFLAGS) $(VST_FLAGS) -shared $^ -o $@ $(ALL_LDFLAGS)
|
@$(CXX) $(ALL_CXXFLAGS) $(VST_FLAGS) -shared $^ -o $@ $(ALL_LDFLAGS)
|
||||||
|
|
||||||
$(BIN)/$(DISTNAME)_%-ladspa.o: crap/%-ladspa.c $(HEADERS) include/ladspa.h
|
$(BIN)/$(DISTNAME)_%-ladspa.o: crap/%-ladspa.c $(HEADERS) include/ladspa.h
|
||||||
|
@ -123,11 +121,11 @@ $(BIN)/$(DISTNAME)_%-vst.o: crap/%-vst.cpp $(HEADERS)
|
||||||
@$(CXX) -c $(ALL_CXXFLAGS) $(VST_FLAGS) $(CPPFLAGS) $< -o $@
|
@$(CXX) -c $(ALL_CXXFLAGS) $(VST_FLAGS) $(CPPFLAGS) $< -o $@
|
||||||
|
|
||||||
crap/%-ladspa.c: crap/%.h template/ladspa.c util/generate
|
crap/%-ladspa.c: crap/%.h template/ladspa.c util/generate
|
||||||
@echo ' gen '$@
|
@echo ' GEN '$@
|
||||||
@util/generate $(notdir $<) $@ template/ladspa.c
|
@util/generate $(notdir $<) $@ template/ladspa.c
|
||||||
|
|
||||||
crap/%-vst.cpp: crap/%.h template/vst.cpp util/generate
|
crap/%-vst.cpp: crap/%.h template/vst.cpp util/generate
|
||||||
@echo ' gen '$@
|
@echo ' GEN '$@
|
||||||
@util/generate $(notdir $<) $@ template/vst.cpp
|
@util/generate $(notdir $<) $@ template/vst.cpp
|
||||||
|
|
||||||
$(BIN)/vstsdk.o: $(VST_OBJ)
|
$(BIN)/vstsdk.o: $(VST_OBJ)
|
||||||
|
@ -140,11 +138,11 @@ $(VST_OBJ): $(BIN)/%.o: $(VST_CPP_DIR)/%.cpp
|
||||||
@$(CXX) -c $(ALL_CXXFLAGS) $(VST_FLAGS) $(CPPFLAGS) $< -o $@
|
@$(CXX) -c $(ALL_CXXFLAGS) $(VST_FLAGS) $(CPPFLAGS) $< -o $@
|
||||||
|
|
||||||
$(BIN)/bench: util/bench.c
|
$(BIN)/bench: util/bench.c
|
||||||
@echo ' CC '$@
|
@echo ' CCLD '$@
|
||||||
@$(CC) $(ALL_CFLAGS) $(LADSPA_FLAGS) $< -o $@ $(ALL_LDFLAGS) -rdynamic -ldl
|
@$(CC) $(ALL_CFLAGS) $(LADSPA_FLAGS) $< -o $@ $(ALL_LDFLAGS) -rdynamic -ldl
|
||||||
|
|
||||||
$(BIN)/design: util/design.c
|
$(BIN)/design: util/design.c
|
||||||
@echo ' CC '$@
|
@echo ' CCLD '$@
|
||||||
@$(CC) $(ALL_CFLAGS) $< -o $@ $(ALL_LDFLAGS)
|
@$(CC) $(ALL_CFLAGS) $< -o $@ $(ALL_LDFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|
Loading…
Reference in a new issue