From d683648d14f984e4f78554dbcd860a286a4ceaa4 Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Wed, 18 Feb 2009 10:01:54 +0000 Subject: added strip Makefile target added anytun-nosync to default build anytun-static not working with new gcc --- src/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile index ff25cb4..e328929 100644 --- a/src/Makefile +++ b/src/Makefile @@ -89,7 +89,7 @@ ANYCONFOBJS := log.o \ syncRouteCommand.o \ syncConnectionCommand.o -EXECUTABLE := anytun anytun-config anytun-controld anytun-showtables +EXECUTABLE := anytun anytun-config anytun-controld anytun-showtables anytun-nosync EXEOBJS := anytun.o anytun-config.o anytun-controld.o anytun-showtables.o SRCS := $(OBJS:%.o=%.cpp) @@ -111,11 +111,14 @@ all: $(EXECUTABLE) #libAnysync.a -include $(SRCS:%.cpp=%.d) $(SYNCSRCS:%.cpp=%.d) $(ANYCTRSRCS:%.cpp=%.d) $(ANYCONFSRCS:%.cpp=%.d) $(EXESRCS:%.cpp=%.d) +strip: $(EXECUTABLE) + strip -s $(EXECUTABLE) + 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 + $(LD) $(OBJS) $(SYNCOBJS) anytun.o -o $@ -static-libgcc -static $(LDFLAGS) -lpthread strip -s anytun-static anytun-nosync: $(OBJS) anytun-nosync.o -- cgit v1.2.3