From af413b6b7bbf79291bebd8c5e6ba1b0e7fe10d21 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Fri, 4 May 2007 22:04:13 +0000 Subject: added Makefile imported some header from openvpn --- Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..35e62b2 --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +C = gcc +C++ = g++ +CCFLAGS = -Wall +LDFLAGS = #-lpthread #-static + +OBJS = tunDevice.o tun.c +EXECUTABLE = anytun + +all: $(EXECUTABLE) + +anytun: $(OBJS) + $(C++) $(OBJS) -o $@ $(LDFLAGS) + +tunDevice.o: tunDevice.cpp tunDevice.h openvpn/tun.h + $(C++) $(CCFLAGS) $< -c + +tun.o: openvpn/tun.c openvpn/tun.h + $(C) $(CCFLAGS) $< -c + +clean: + rm -f *.o + rm -f $(EXECUTABLE) \ No newline at end of file -- cgit v1.2.3