summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index da7b839..6528650 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -32,7 +32,7 @@ TARGET=$(shell uname -s)
CC = gcc
CCFLAGS = -g
CXX = g++
-CXXFLAGS = -g -Wall
+CXXFLAGS = -g -Wall -O2
LD = g++
LDFLAGS = -g -Wall -O2 -lboost_thread -lgcrypt -lgpg-error -lboost_serialization -lboost_system
@@ -120,6 +120,10 @@ all: $(EXECUTABLE) libAnysync.a #anyrtpproxy
anytun: $(OBJS) $(SYNCOBJS) anytun.o
$(LD) $(OBJS) $(SYNCOBJS) anytun.o -o $@ $(LDFLAGS)
+anytun-static: $(OBJS) $(SYNCOBJS) anytun.o
+ $(LD) $(OBJS) $(SYNCOBJS) anytun.o -o $@ $(LDFLAGS) -lpthread -static
+ strip -s anytun-static
+
anytun-nosync: $(OBJS) anytun-nosync.o
$(LD) $(OBJS) anytun-nosync.o -o $@ $(LDFLAGS)