annotate Makefile.inc @ 6:e9b629578488

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