Mercurial > hg > chp
comparison Makefile.inc @ 0:f559ab000b67
Initial skeleton
author | Chris Cannam |
---|---|
date | Fri, 07 Mar 2014 14:34:50 +0000 |
parents | |
children | ab0b04e1c56b |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f559ab000b67 |
---|---|
1 | |
2 PLUGIN_EXT ?= .so | |
3 | |
4 CXX ?= g++ | |
5 CC ?= gcc | |
6 | |
7 CFLAGS := $(CFLAGS) | |
8 CXXFLAGS := -I. $(CXXFLAGS) | |
9 | |
10 PLUGIN := chp(PLUGIN_EXT) | |
11 | |
12 SOURCES := ConstrainedHarmonicPeak.cpp | |
13 | |
14 PLUGIN_MAIN := plugins.cpp | |
15 | |
16 TESTS := | |
17 | |
18 OBJECTS := $(SOURCES:.cpp=.o) | |
19 OBJECTS := $(OBJECTS:.c=.o) | |
20 | |
21 PLUGIN_OBJECTS := $(OBJECTS) $(PLUGIN_MAIN:.cpp=.o) | |
22 | |
23 all: $(PLUGIN) $(TESTS) | |
24 for t in $(TESTS); do echo "Running $$t"; ./"$$t" || exit 1; done | |
25 | |
26 plugin: $(PLUGIN) | |
27 | |
28 $(PLUGIN): $(PLUGIN_OBJECTS) | |
29 $(CXX) -o $@ $^ $(PLUGIN_LDFLAGS) | |
30 | |
31 clean: | |
32 rm -f $(PLUGIN_OBJECTS) test/*.o | |
33 | |
34 distclean: clean | |
35 rm -f $(PLUGIN) $(TESTS) | |
36 | |
37 depend: | |
38 makedepend -Y -fMakefile.inc *.cpp test/*.cpp *.h test/*.h | |
39 | |
40 # DO NOT DELETE | |
41 | |
42 ConstrainedHarmonicPeak.o: ConstrainedHarmonicPeak.h | |
43 plugins.o: ConstrainedHarmonicPeak.h |