summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-01-18 02:21:15 +0000
committerChristian Pointner <equinox@anytun.org>2009-01-18 02:21:15 +0000
commit7219dbcf1976def4a7b06e84cf197f59a4dcdbfd (patch)
treeb943b304d0d2eee9eccd0fce34ab6ac479f60abd /src/Makefile
parentadded passphrase support to key derivation (diff)
added more sophisticated configure script
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile19
1 files changed, 3 insertions, 16 deletions
diff --git a/src/Makefile b/src/Makefile
index af26638..396b255 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -28,22 +28,8 @@
## You should have received a copy of the GNU General Public License
## along with anytun. If not, see <http://www.gnu.org/licenses/>.
##
-TARGET=$(shell uname -s)
-CC = gcc
-CFLAGS = -g
-CXX = g++
-CXXFLAGS = -g -Wall -O2 #-DUSE_SSL_CRYPTO
-LD = g++
-LDFLAGS = -g -Wall -O2 -lboost_thread -lgcrypt -lgpg-error -lboost_serialization -lboost_system
-#LDFLAGS = -g -Wall -O2 -lboost_thread -lcrypto -lboost_serialization -lboost_system
-
-ifeq ($(TARGET),Linux)
- LDFLAGS += -ldl
-endif
-ifeq ($(TARGET),OpenBSD)
- CXXFLAGS += -I/usr/local/include
- LDFLAGS += -L/usr/local/lib
-endif
+
+include include.mk
OBJS = tunDevice.o \
packetSource.o \
@@ -159,6 +145,7 @@ distclean: cleanall
find . -name *.o -exec rm -f {} \;
rm -f config.sub config.guess
rm -f tunDevice.cpp
+ rm -f include.mk
cleanall: clean
$(MAKE) --directory=$(CURDIR)/man clean