summaryrefslogtreecommitdiff
path: root/2003/i/buzz/src/vision/GNUmakefile
blob: b72985b89d8a690d17e2dfc3b473f68c25d6c0b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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