1999-10-19 04:55:39 +00:00
|
|
|
--- Makefile.orig Thu Sep 16 17:44:50 1999
|
2000-02-27 04:21:03 +00:00
|
|
|
+++ Makefile Sun Feb 20 20:41:18 2000
|
|
|
|
@@ -6,10 +6,13 @@
|
1999-08-16 22:14:42 +00:00
|
|
|
CLEANFILES= *.core *.o pipsecd
|
|
|
|
|
|
|
|
# Where your OpenSSL includes are located
|
|
|
|
-INCDIR=/usr/local/ssl/include
|
2000-02-27 04:21:03 +00:00
|
|
|
+INCDIR=-I$(OPENSSLINC)/openssl -I$(OPENSSLINC) -I$(LOCALBASE)/include
|
1999-08-16 22:14:42 +00:00
|
|
|
|
|
|
|
# Where your libcrypto is located
|
|
|
|
-LIBDIR=/usr/local/ssl/lib
|
2000-02-06 22:11:36 +00:00
|
|
|
+LIBDIR=-L$(OPENSSLLIB)
|
1999-08-16 22:14:42 +00:00
|
|
|
+
|
1999-10-19 04:55:39 +00:00
|
|
|
+# Misc defines
|
1999-08-16 22:14:42 +00:00
|
|
|
+DEFINES=-DFILE_PREFIX=\"$(PREFIX)\"
|
|
|
|
|
1999-10-19 04:55:39 +00:00
|
|
|
# Optional: use FreeBSD's libmd
|
2000-02-27 04:21:03 +00:00
|
|
|
#OPTLIB += -lmd
|
|
|
|
@@ -19,10 +22,10 @@
|
1999-10-19 04:55:39 +00:00
|
|
|
#OPTDEF += -DUSE_ETHERTAP
|
1999-08-16 22:14:42 +00:00
|
|
|
|
|
|
|
pipsecd: tunip.c defs.h
|
1999-10-19 04:55:39 +00:00
|
|
|
- gcc -Wall -I$(INCDIR) -g $(OPTDEF) -o pipsecd tunip.c -L$(LIBDIR) $(OPTLIB) -lcrypto
|
2000-02-06 22:11:36 +00:00
|
|
|
+ $(CC) -Wall $(INCDIR) -g $(CFLAGS) $(OPENSSL_CFLAGS) $(OPTDEF) -o pipsecd tunip.c $(LIBDIR) -lcrypto $(OPTLIB) $(EXTRA_SSL_LIBS) $(DEFINES)
|
1999-08-16 22:14:42 +00:00
|
|
|
|
|
|
|
install: pipsecd
|
1999-10-19 04:55:39 +00:00
|
|
|
- install pipsecd /usr/local/sbin/
|
|
|
|
+ install pipsecd $(PREFIX)/sbin/
|
|
|
|
|
|
|
|
tar:
|
|
|
|
tar cfvz tunip.tar.gz $(DISTFILES)
|