2000-02-06 22:14:05 +00:00
|
|
|
--- Makefile.orig Tue Aug 24 03:48:00 1999
|
2000-03-08 06:43:41 +00:00
|
|
|
+++ Makefile Tue Mar 7 22:35:21 2000
|
2000-02-06 22:14:05 +00:00
|
|
|
@@ -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)
|
|
|
|
|
1999-09-18 17:48:16 +00:00
|
|
|
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
|
2000-03-08 06:43:41 +00:00
|
|
|
+ $(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)
|
1999-09-18 17:48:16 +00:00
|
|
|
|
|
|
|
main.o: main.c tund.h
|
|
|
|
$(CC) -c main.c $(INC)
|