]> git.sesse.net Git - greproxy/blobdiff - Makefile
Port greproxy to all the new classes and stuff.
[greproxy] / Makefile
index a0a877434dbb87dc13f851b8c28ec8aa8262041f..aeb7ba9d4f3a80d07ccaa5be0178e03204b0a62f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,18 @@
 CXXFLAGS=-std=gnu++11 -O2 -g
 
-TUNGRE_OBJS=greprotocol.o reorderer.o tungre.o tunprotocol.o
+TUNGRE_OBJS=tungre.o greprotocol.o reorderer.o tunprotocol.o
+GREPROXY_OBJS=greproxy.o greprotocol.o reorderer.o tunprotocol.o
 
+all: tungre greproxy
 tungre: $(TUNGRE_OBJS)
        $(CXX) -o $@ $^ $(LDFLAGS) $(LDLIBS)
+greproxy: $(GREPROXY_OBJS)
+       $(CXX) -o $@ $^ $(LDFLAGS) $(LDLIBS)
 
 %.o: %.cpp
        $(CXX) -MMD -MP $(CPPFLAGS) $(CXXFLAGS) -o $@ -c $<
-DEPS=$(TUNGRE_OBJS:.o=.d)
+DEPS=$(TUNGRE_OBJS:.o=.d) $(GREPROXY_OBJS:.o=.d)
 -include $(DEPS)
 
 clean:
-       $(RM) $(TUNGRE_OBJS) $(DEPS) gretun
+       $(RM) $(TUNGRE_OBJS) $(GREPROXY_OBJS) $(DEPS) gretun greproxy