projects
/
gph-cmath
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
4c8e22ab97bf73c2ece0f354cbabf3c3485351cc
[gph-cmath]
/
test
/
Makefile
1
obj = test.o
2
dep = $(obj:.o=.d)
3
bin = test
4
5
CXXFLAGS = -pedantic -Wall -g -I../src
6
LDFLAGS = -lgmath -lm
7
8
$(bin): $(obj)
9
$(CXX) -o $@ $(obj) $(LDFLAGS)
10
11
-include $(dep)
12
13
%.d: %.cc
14
@$(CXX) $(CXXFLAGS) $< -MM -MT $(@:.d=.o) >$@
15
16
.PHONY: clean
17
clean:
18
rm -f $(obj) $(bin)
19
20
.PHONY: cleandep
21
cleandep:
22
rm -f $(dep)