From 66d3e5110affbc70766211aeff46c4f41e532ed1 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 7 Feb 2015 01:36:56 +0100 Subject: [PATCH] Add a simple Makefile and .gitignore. --- .gitignore | 3 +++ Makefile | 14 ++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile 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 -- 2.39.2