diff options
author | Christian Pointner <equinox@anytun.org> | 2007-05-04 22:04:13 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2007-05-04 22:04:13 +0000 |
commit | af413b6b7bbf79291bebd8c5e6ba1b0e7fe10d21 (patch) | |
tree | 38dfbb6f897cf0a3d08ef0fa557b48a6d35e7a54 /Makefile | |
parent | i (diff) |
added Makefile
imported some header from openvpn
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 22 |
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 |