cleaner make
This commit is contained in:
parent
46d7e78d88
commit
33c2b0d78b
1 changed files with 9 additions and 9 deletions
18
Makefile
Normal file → Executable file
18
Makefile
Normal file → Executable file
|
@ -66,7 +66,7 @@ ladspa: ${LADSPA:=.so}
|
||||||
vst: ${VST:=.so}
|
vst: ${VST:=.so}
|
||||||
|
|
||||||
bench: ${AGAINST} ${BENCH}
|
bench: ${AGAINST} ${BENCH}
|
||||||
@echo CC ${BENCH} -o $@
|
@echo ' CC '$@
|
||||||
@${CC} ${ALL_CFLAGS} ${BENCH} -o $@ ${ALL_LDFLAGS} -rdynamic -ldl
|
@${CC} ${ALL_CFLAGS} ${BENCH} -o $@ ${ALL_LDFLAGS} -rdynamic -ldl
|
||||||
|
|
||||||
.PHONY: benchmark
|
.PHONY: benchmark
|
||||||
|
@ -74,26 +74,26 @@ benchmark: bench
|
||||||
./benchtime ./bench ${AGAINST}
|
./benchtime ./bench ${AGAINST}
|
||||||
|
|
||||||
vstsdk.o: ${VST_SRC}
|
vstsdk.o: ${VST_SRC}
|
||||||
@echo CXX -c $^
|
@echo ' CXX '$@
|
||||||
@${CXX} -c ${ALL_CXXFLAGS} ${CPPFLAGS} $^
|
@${CXX} -c ${ALL_CXXFLAGS} ${CPPFLAGS} $^
|
||||||
@echo LD -r ${VST_OBJ} -o $@
|
@echo ' LD '$@
|
||||||
@${LD} -r ${VST_OBJ} -o $@
|
@${LD} -r ${VST_OBJ} -o $@
|
||||||
rm ${VST_OBJ}
|
rm ${VST_OBJ}
|
||||||
|
|
||||||
%-ladspa.so: %-ladspa.o
|
%-ladspa.so: %-ladspa.o
|
||||||
@echo CC $^ -o $@
|
@echo ' CC '$@
|
||||||
@${CC} ${ALL_CFLAGS} -shared $^ -o $@ ${ALL_LDFLAGS}
|
@${CC} ${ALL_CFLAGS} -shared $^ -o $@ ${ALL_LDFLAGS}
|
||||||
|
|
||||||
%-vst.so: %-vst.o vstsdk.o
|
%-vst.so: %-vst.o vstsdk.o
|
||||||
@echo CXX $^ -o $@
|
@echo ' CXX '$@
|
||||||
@${CXX} ${ALL_CXXFLAGS} -shared $^ -o $@ ${ALL_LDFLAGS}
|
@${CXX} ${ALL_CXXFLAGS} -shared $^ -o $@ ${ALL_LDFLAGS}
|
||||||
|
|
||||||
%-ladspa.o: %-ladspa.c ${HEADERS} ladspa.h
|
%-ladspa.o: %-ladspa.c ${HEADERS} ladspa.h
|
||||||
@echo CC -c $< -o $@
|
@echo ' CC '$@
|
||||||
@${CC} -c ${ALL_CFLAGS} ${CPPFLAGS} $< -o $@
|
@${CC} -c ${ALL_CFLAGS} ${CPPFLAGS} $< -o $@
|
||||||
|
|
||||||
%-vst.o: %-vst.cpp ${HEADERS}
|
%-vst.o: %-vst.cpp ${HEADERS}
|
||||||
@echo CXX -c $< -o $@
|
@echo ' CXX '$@
|
||||||
@${CXX} -c ${ALL_CXXFLAGS} ${CPPFLAGS} $< -o $@
|
@${CXX} -c ${ALL_CXXFLAGS} ${CPPFLAGS} $< -o $@
|
||||||
|
|
||||||
%-ladspa.c: %.h template-ladspa.c generate-ladspa common.sh
|
%-ladspa.c: %.h template-ladspa.c generate-ladspa common.sh
|
||||||
|
@ -105,11 +105,11 @@ vstsdk.o: ${VST_SRC}
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
|
|
||||||
%: %.o
|
%: %.o
|
||||||
@echo CC $< -o $@
|
@echo ' CC '$@
|
||||||
@${CC} ${ALL_CFLAGS} $< -o $@ ${ALL_LDFLAGS}
|
@${CC} ${ALL_CFLAGS} $< -o $@ ${ALL_LDFLAGS}
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
@echo CC -c $< -o $@
|
@echo ' CC '$@
|
||||||
@${CC} -c ${ALL_CFLAGS} ${CPPFLAGS} $< -o $@
|
@${CC} -c ${ALL_CFLAGS} ${CPPFLAGS} $< -o $@
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
|
|
Loading…
Reference in a new issue