summaryrefslogtreecommitdiff
path: root/2003
diff options
context:
space:
mode:
Diffstat (limited to '2003')
-rw-r--r--2003/i/buzz/src/GNUmakefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/2003/i/buzz/src/GNUmakefile b/2003/i/buzz/src/GNUmakefile
index 81442eb..b4f79f2 100644
--- a/2003/i/buzz/src/GNUmakefile
+++ b/2003/i/buzz/src/GNUmakefile
@@ -1,7 +1,8 @@
-SUBDIRS = automate busp camera erreur vision
+SUBDIRS = automate busp camera config erreur motor serial vision
TARGETS =
+LIBS =
CXXFLAGS = -Wall -g
CPPFLAGS = -I. -I$(SRCDIR) -I/usr/pkg/include
LDFLAGS = -L/usr/pkg/lib
@@ -25,11 +26,12 @@ alltargets: $(TARGETS)
flex -o$@ $<
.dep/%.d: %.cc .dep
- set -e; $(CXX) -M $(CPPFLAGS) $< \
+ @echo "Dependency checking for $<..."
+ @set -e; $(CXX) -M $(CPPFLAGS) $< \
| sed 's/\($*\)\.o[ :]*/\1.o .dep\/$*.d : /g' > $@; \
[ -s $@ ] || rm -f $@
--include $(foreach target, $(TARGETS), $($(filter %.cc, $(target)_SOURCES):%.cc=.dep/%.d))
+-include $(foreach target, $(TARGETS) $(LIBS:.=_), $(patsubst %.cc, .dep/%.d, $(filter %.cc, $($(target)_SOURCES))))
.dep:
mkdir .dep
@@ -37,3 +39,5 @@ alltargets: $(TARGETS)
clean:
rm -f $(TARGETS) $(extra_clean) *.o *.a
rm -rf .dep
+
+.PHONY: all clean test alltargets