X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=Makefile;h=aeb7ba9d4f3a80d07ccaa5be0178e03204b0a62f;hb=41f85eb875bcdadec4d6766ae93022ca233eaccf;hp=a0a877434dbb87dc13f851b8c28ec8aa8262041f;hpb=66d3e5110affbc70766211aeff46c4f41e532ed1;p=greproxy diff --git a/Makefile b/Makefile index a0a8774..aeb7ba9 100644 --- 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