1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-05 22:43:24 +00:00
freebsd-ports/net/tund/files/patch-aa
Kris Kennaway 2f45443cd4 Unbreak by linking dynamically
Submitted by:	Jim Bloom <bloom@acm.org>
2000-03-08 06:43:41 +00:00

35 lines
1.0 KiB
Plaintext

--- Makefile.orig Tue Aug 24 03:48:00 1999
+++ Makefile Tue Mar 7 22:35:21 2000
@@ -1,22 +1,24 @@
RSA_KEY_LENGTH = 1024
-CFLAGS = -g -DDEBUG
+CFLAGS ?= -O2
+CFLAGS += -g -DDEBUG $(OPENSSL_CFLAGS)
# CFLAGS = -O6 -mpentium
-CC = cc $(CFLAGS)
-INC = -I/usr/local/include
-LIB = -L/usr/local/lib
+CC ?= cc
+CC += $(CFLAGS)
+INC = -I$(OPENSSLINC)
+LIB = -L$(OPENSSLLIB)
all: rsa_kg pkey_gen tund keygen
rsa_kg: rsa_kg.c tund.h
- $(CC) -o rsa_kg rsa_kg.c $(INC) $(LIB) -lcrypto
+ $(CC) -o rsa_kg rsa_kg.c $(INC) $(LIB) -lcrypto $(EXTRA_SSL_LIBS)
pkey_gen: pkey_gen.c tund.h
- $(CC) -o pkey_gen pkey_gen.c $(INC) $(LIB) -lcrypto
+ $(CC) -o pkey_gen pkey_gen.c $(INC) $(LIB) -lcrypto $(EXTRA_SSL_LIBS)
tund: main.o tund.o secur.o scb.o utils.o md5.o alarm.o cipher.o search.o
- $(CC) -static -o tund main.o tund.o secur.o scb.o utils.o md5.o alarm.o cipher.o search.o $(LIB) -lmd -lcrypto
+ $(CC) -o tund main.o tund.o secur.o scb.o utils.o md5.o alarm.o cipher.o search.o $(LIB) -lmd -lcrypto $(EXTRA_SSL_LIBS)
main.o: main.c tund.h
$(CC) -c main.c $(INC)