blob: a238691f136e76e12479fa61847348ea05cc5b73 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
POKE=poke.cc snap.cc snap_packet.cc
ALLCXX=$(POKE)
poke: $(POKE:.cc=.o)
g++ -g -o poke $(POKE:.cc=.o)
clean:
rm -f poke $(ALLCXX:.cc=.o) *~ $(ALLCXX:.cc=.dep)
%.dep: %.cc
$(SHELL) -ec 'g++ -pthread -MM -MG $< \
| sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \
[ -s $@ ] || rm -f $@'
include $(ALLCXX:.cc=.dep)
|