From: Steinar H. Gunderson Date: Sat, 7 Feb 2015 00:36:56 +0000 (+0100) Subject: Add a simple Makefile and .gitignore. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=66d3e5110affbc70766211aeff46c4f41e532ed1;p=greproxy Add a simple Makefile and .gitignore. --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2e1c473 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +tungre +*.d +*.o diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a0a8774 --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +CXXFLAGS=-std=gnu++11 -O2 -g + +TUNGRE_OBJS=greprotocol.o reorderer.o tungre.o tunprotocol.o + +tungre: $(TUNGRE_OBJS) + $(CXX) -o $@ $^ $(LDFLAGS) $(LDLIBS) + +%.o: %.cpp + $(CXX) -MMD -MP $(CPPFLAGS) $(CXXFLAGS) -o $@ -c $< +DEPS=$(TUNGRE_OBJS:.o=.d) +-include $(DEPS) + +clean: + $(RM) $(TUNGRE_OBJS) $(DEPS) gretun