projects
/
gph-cmath
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
README, Makefile, and license headers
[gph-cmath]
/
test
/
Makefile
diff --git
a/test/Makefile
b/test/Makefile
index
c23e3f1
..
4c8e22a
100644
(file)
--- a/
test/Makefile
+++ b/
test/Makefile
@@
-1,4
+1,5
@@
obj = test.o
obj = test.o
+dep = $(obj:.o=.d)
bin = test
CXXFLAGS = -pedantic -Wall -g -I../src
bin = test
CXXFLAGS = -pedantic -Wall -g -I../src
@@
-7,6
+8,15
@@
LDFLAGS = -lgmath -lm
$(bin): $(obj)
$(CXX) -o $@ $(obj) $(LDFLAGS)
$(bin): $(obj)
$(CXX) -o $@ $(obj) $(LDFLAGS)
+-include $(dep)
+
+%.d: %.cc
+ @$(CXX) $(CXXFLAGS) $< -MM -MT $(@:.d=.o) >$@
+
.PHONY: clean
clean:
rm -f $(obj) $(bin)
.PHONY: clean
clean:
rm -f $(obj) $(bin)
+
+.PHONY: cleandep
+cleandep:
+ rm -f $(dep)