diff options
author | Othmar Gsenger <otti@anytun.org> | 2009-02-18 10:01:54 +0000 |
---|---|---|
committer | Othmar Gsenger <otti@anytun.org> | 2009-02-18 10:01:54 +0000 |
commit | d683648d14f984e4f78554dbcd860a286a4ceaa4 (patch) | |
tree | 3c838d909ca7c2c1139c768c78da13600ae1d673 | |
parent | fixed routing table sorting for correct build of routing tree (diff) |
added strip Makefile target
added anytun-nosync to default build
anytun-static not working with new gcc
-rw-r--r-- | src/Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
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 |