summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2007-05-04 22:04:13 +0000
committerChristian Pointner <equinox@anytun.org>2007-05-04 22:04:13 +0000
commitaf413b6b7bbf79291bebd8c5e6ba1b0e7fe10d21 (patch)
tree38dfbb6f897cf0a3d08ef0fa557b48a6d35e7a54 /Makefile
parenti (diff)
added Makefile
imported some header from openvpn
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 22 insertions, 0 deletions
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