Mercurial > hg > vampy-host
annotate Makefile.inc @ 70:ffdeb8808fc1
Let's favour consistent shape in output, and return the output identifier always
author | Chris Cannam |
---|---|
date | Wed, 14 Jan 2015 17:19:04 +0000 |
parents | 61701d895082 |
children | 141d3bfe1503 |
rev | line source |
---|---|
Chris@38 | 1 |
Chris@38 | 2 LIBRARY_EXT ?= .so |
Chris@38 | 3 LIBRARY ?= vampyhost$(LIBRARY_EXT) |
Chris@38 | 4 CXX ?= g++ |
Chris@38 | 5 CC ?= gcc |
Chris@38 | 6 |
Chris@52 | 7 SRC_DIR := native |
Chris@52 | 8 |
Chris@52 | 9 HEADERS := $(SRC_DIR)/PyPluginObject.h $(SRC_DIR)/PyRealTime.h $(SRC_DIR)/FloatConversion.h $(SRC_DIR)/VectorConversion.h |
Chris@52 | 10 SOURCES := $(SRC_DIR)/PyPluginObject.cpp $(SRC_DIR)/PyRealTime.cpp $(SRC_DIR)/VectorConversion.cpp $(SRC_DIR)/vampyhost.cpp |
Chris@70 | 11 |
Chris@70 | 12 PY := $(wildcard vamp/*.py) |
Chris@62 | 13 TESTS := $(wildcard test/test_*.py) |
Chris@38 | 14 |
Chris@38 | 15 OBJECTS := $(SOURCES:.cpp=.o) |
Chris@38 | 16 OBJECTS := $(OBJECTS:.c=.o) |
Chris@38 | 17 |
Chris@62 | 18 all: $(LIBRARY) .tests |
Chris@62 | 19 |
Chris@38 | 20 $(LIBRARY): $(OBJECTS) |
Chris@38 | 21 $(CXX) -o $@ $^ $(LDFLAGS) |
Chris@62 | 22 |
Chris@70 | 23 .tests: $(LIBRARY) $(PY) $(TESTS) |
Chris@54 | 24 $(NOSE) |
Chris@62 | 25 @touch $@ |
Chris@38 | 26 |
Chris@38 | 27 clean: |
Chris@38 | 28 rm -f $(OBJECTS) |
Chris@38 | 29 |
Chris@38 | 30 distclean: clean |
Chris@38 | 31 rm -f $(LIBRARY) |
Chris@38 | 32 |
Chris@38 | 33 depend: |
Chris@38 | 34 makedepend -Y -fMakefile.inc $(SOURCES) $(HEADERS) |
Chris@38 | 35 |
Chris@38 | 36 # DO NOT DELETE |
Chris@38 | 37 |
Chris@52 | 38 native/PyPluginObject.o: native/PyPluginObject.h native/FloatConversion.h |
Chris@52 | 39 native/PyPluginObject.o: native/VectorConversion.h native/PyRealTime.h |
Chris@52 | 40 native/PyRealTime.o: native/PyRealTime.h |
Chris@52 | 41 native/VectorConversion.o: native/FloatConversion.h native/VectorConversion.h |
Chris@52 | 42 native/vampyhost.o: native/PyRealTime.h native/PyPluginObject.h |
Chris@52 | 43 native/vampyhost.o: native/VectorConversion.h |