summaryrefslogtreecommitdiff
path: root/2003/i/buzz/src/vision/GNUmakefile
diff options
context:
space:
mode:
Diffstat (limited to '2003/i/buzz/src/vision/GNUmakefile')
-rw-r--r--2003/i/buzz/src/vision/GNUmakefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/2003/i/buzz/src/vision/GNUmakefile b/2003/i/buzz/src/vision/GNUmakefile
new file mode 100644
index 0000000..b72985b
--- /dev/null
+++ b/2003/i/buzz/src/vision/GNUmakefile
@@ -0,0 +1,26 @@
+SRCDIR = ..
+CXXFLAGS = -Wall -g
+CPPFLAGS = -I$(SRCDIR)
+
+LDADD = -lppm
+test_image_SOURCES = test_image.cc image.cc thresholds.cc size_thresholds.cc
+
+TARGETS = test_image
+
+all: $(TARGETS)
+
+test_image: $(test_image_SOURCES:%.cc=%.o)
+ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $^ $(LDADD)
+
+.dep/%.d: %.cc .dep
+ @set -e; $(CC) -M $(CPPFLAGS) $< \
+ | sed 's/\($*\)\.o[ :]*/\1.o .dep\/$*.d : /g' > $@; \
+ [ -s $@ ] || rm -f $@
+
+include $(test_image_SOURCES:%.cc=.dep/%.d)
+
+.dep:
+ @mkdir .dep
+
+clean:
+ rm -f $(TARGETS) *.o