summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Makefile4
-rwxr-xr-xsrc/configure13
2 files changed, 13 insertions, 4 deletions
diff --git a/src/Makefile b/src/Makefile
index e937827..c908260 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -78,6 +78,9 @@ endif
uanytun: $(OBJ)
$(CC) $(OBJ) -o $@ $(LDFLAGS)
+strip: $(EXECUTABLE)
+ $(STRIP) -s $(EXECUTABLE)
+
%.o: %.c
$(CC) $(CFLAGS) -c $<
@@ -102,7 +105,6 @@ install: all install-bin install-etc install-man
install-bin: $(EXECUTABLE)
mkdir -p $(DESTDIR)$(SBINDIR)
install -m 755 $(EXECUTABLE) $(DESTDIR)$(SBINDIR)
- $(STRIP) $(DESTDIR)$(SBINDIR)/$(EXECUTABLE)
install-etc:
mkdir -p $(DESTDIR)$(ETCDIR)/uanytun
diff --git a/src/configure b/src/configure
index 51937f6..e8f9fcf 100755
--- a/src/configure
+++ b/src/configure
@@ -36,6 +36,8 @@
TARGET=`uname -s`
+EBUILD_COMPAT=0
+
CFLAGS='-g -O2'
LDFLAGS='-g -Wall -O2'
@@ -100,14 +102,19 @@ do
--enable-v4-mapped)
V4_MAPPED=2
;;
+ --ebuild-compat)
+ EBUILD_COMPAT=1
+ ;;
--help)
print_usage
exit 0
;;
*)
- echo "Unknown argument: $arg"
- print_usage
- exit 1
+ if [ $EBUILD_COMPAT -ne 1 ]; then
+ echo "Unknown argument: $arg"
+ print_usage
+ exit 1
+ fi
;;
esac
done