summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-03-03 13:12:06 +0000
committerChristian Pointner <equinox@anytun.org>2009-03-03 13:12:06 +0000
commit0d47b5bbbcda1d3e8fd4e94a00f87b8ea033a7c7 (patch)
tree1b94e6127c79caa24d3c2bbac30f11475dd639aa /src/Makefile
parentadded -4 and -6 to print usage (diff)
make distclean always works now
removed --ld-kdr from Makefile
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile
index cde77c6..be5ec6e 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -29,7 +29,9 @@
## along with anytun. If not, see <http://www.gnu.org/licenses/>.
##
+ifneq ($(MAKECMDGOALS),distclean)
include include.mk
+endif
OBJS := tunDevice.o \
packetSource.o \
@@ -54,7 +56,7 @@ OBJS := tunDevice.o \
anytunError.o \
options.o \
seqWindow.o \
- routingTreeNode.o \
+ routingTreeNode.o
SYNCOBJS := syncServer.o \
syncClient.o \
@@ -114,8 +116,9 @@ all: $(EXECUTABLE) #libAnysync.a
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$; echo '(re)building $@'
+ifneq ($(MAKECMDGOALS),distclean)
-include $(SRCS:%.cpp=%.d) $(SYNCSRCS:%.cpp=%.d) $(ANYCTRSRCS:%.cpp=%.d) $(ANYCONFSRCS:%.cpp=%.d) $(EXESRCS:%.cpp=%.d)
-
+endif
strip: $(EXECUTABLE)
strip -s $(EXECUTABLE)