summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 3f5b583..f631f98 100644
--- a/Makefile
+++ b/Makefile
@@ -44,8 +44,7 @@ SOCKETDEPS = Sockets/libSockets.a
# Sockets/SSLInitializer.o
-OBJS = anytun.o \
- tunDevice.o \
+OBJS = tunDevice.o \
packetSource.o \
buffer.o \
syncBuffer.o \
@@ -81,12 +80,15 @@ OBJS = anytun.o \
$(OPENVPNDEPS) \
$(SOCKETDEPS)
-EXECUTABLE = anytun
+EXECUTABLE = anytun anyctr
all: $(EXECUTABLE) libAnysync.a
-anytun: $(OBJS)
- $(LD) $(OBJS) -o $@ $(LDFLAGS)
+anytun: $(OBJS) anytun.o
+ $(LD) $(OBJS) anytun.o -o $@ $(LDFLAGS)
+
+anyctr: $(OBJS) anyctr.o
+ $(LD) $(OBJS) anyctr.o -o $@ $(LDFLAGS)
tunDevice.o: tunDevice.cpp tunDevice.h
$(C++) $(CCFLAGS) $< -c
@@ -190,6 +192,9 @@ router.o: router.cpp router.h
anytun.o: anytun.cpp
$(C++) $(CCFLAGS) $< -c
+anyctr.o: anyctr.cpp
+ $(C++) $(CCFLAGS) $< -c
+
cConnectionParam.o: cConnectionParam.cpp
$(C++) $(CCFLAGS) $< -c