]> git.sesse.net Git - greproxy/blob - Makefile
Port greproxy to all the new classes and stuff.
[greproxy] / Makefile
1 CXXFLAGS=-std=gnu++11 -O2 -g
2
3 TUNGRE_OBJS=tungre.o greprotocol.o reorderer.o tunprotocol.o
4 GREPROXY_OBJS=greproxy.o greprotocol.o reorderer.o tunprotocol.o
5
6 all: tungre greproxy
7 tungre: $(TUNGRE_OBJS)
8         $(CXX) -o $@ $^ $(LDFLAGS) $(LDLIBS)
9 greproxy: $(GREPROXY_OBJS)
10         $(CXX) -o $@ $^ $(LDFLAGS) $(LDLIBS)
11
12 %.o: %.cpp
13         $(CXX) -MMD -MP $(CPPFLAGS) $(CXXFLAGS) -o $@ -c $<
14 DEPS=$(TUNGRE_OBJS:.o=.d) $(GREPROXY_OBJS:.o=.d)
15 -include $(DEPS)
16
17 clean:
18         $(RM) $(TUNGRE_OBJS) $(GREPROXY_OBJS) $(DEPS) gretun greproxy