1998-12-21 18:52:47 +08:00
|
|
|
#
|
1999-01-02 20:59:33 +08:00
|
|
|
# apps/Makefile.ssl
|
1998-12-21 18:52:47 +08:00
|
|
|
#
|
|
|
|
|
|
|
|
DIR= apps
|
|
|
|
TOP= ..
|
|
|
|
CC= cc
|
|
|
|
INCLUDES= -I../include
|
|
|
|
CFLAG= -g -static
|
|
|
|
INSTALLTOP= /usr/local/ssl
|
|
|
|
MAKE= make -f Makefile.ssl
|
|
|
|
MAKEDEPEND= makedepend -f Makefile.ssl
|
|
|
|
MAKEFILE= Makefile.ssl
|
|
|
|
RM= /bin/rm -f
|
|
|
|
|
|
|
|
PEX_LIBS=
|
|
|
|
EX_LIBS=
|
|
|
|
|
|
|
|
CFLAGS= -DMONOLITH $(INCLUDES) $(CFLAG)
|
|
|
|
|
|
|
|
GENERAL=Makefile
|
|
|
|
|
|
|
|
DLIBCRYPTO=../libcrypto.a
|
|
|
|
DLIBSSL=../libssl.a
|
|
|
|
LIBCRYPTO=-L.. -lcrypto
|
|
|
|
LIBSSL=-L.. -lssl
|
|
|
|
|
1999-01-02 20:59:33 +08:00
|
|
|
PROGRAM= openssl
|
1998-12-21 18:52:47 +08:00
|
|
|
|
1999-01-02 20:59:33 +08:00
|
|
|
SCRIPTS=CA.sh CA.pl der_chop
|
1998-12-21 18:52:47 +08:00
|
|
|
|
1999-01-02 20:59:33 +08:00
|
|
|
EXE= $(PROGRAM)
|
1998-12-21 18:52:47 +08:00
|
|
|
|
1998-12-21 18:56:39 +08:00
|
|
|
E_EXE= verify asn1pars req dgst dh enc gendh errstr ca crl \
|
1998-12-21 18:52:47 +08:00
|
|
|
rsa dsa dsaparam \
|
1999-01-10 01:29:34 +08:00
|
|
|
x509 genrsa gendsa s_server s_client speed \
|
1998-12-21 18:52:47 +08:00
|
|
|
s_time version pkcs7 crl2pkcs7 sess_id ciphers
|
|
|
|
|
1999-01-02 20:59:33 +08:00
|
|
|
PROGS= $(PROGRAM).c
|
1998-12-21 18:52:47 +08:00
|
|
|
|
|
|
|
A_OBJ=apps.o
|
|
|
|
A_SRC=apps.c
|
|
|
|
S_OBJ= s_cb.o s_socket.o
|
|
|
|
S_SRC= s_cb.c s_socket.c
|
|
|
|
|
|
|
|
E_OBJ= verify.o asn1pars.o req.o dgst.o dh.o enc.o gendh.o errstr.o ca.o \
|
1998-12-21 18:56:39 +08:00
|
|
|
pkcs7.o crl2p7.o crl.o \
|
1998-12-21 18:52:47 +08:00
|
|
|
rsa.o dsa.o dsaparam.o \
|
1999-01-10 01:29:34 +08:00
|
|
|
x509.o genrsa.o gendsa.o s_server.o s_client.o speed.o \
|
1998-12-21 18:52:47 +08:00
|
|
|
s_time.o $(A_OBJ) $(S_OBJ) version.o sess_id.o \
|
|
|
|
ciphers.o
|
|
|
|
|
|
|
|
# pem_mail.o
|
|
|
|
|
|
|
|
E_SRC= verify.c asn1pars.c req.c dgst.c dh.c enc.c gendh.c errstr.c ca.c \
|
1998-12-21 18:56:39 +08:00
|
|
|
pkcs7.c crl2p7.c crl.c \
|
1998-12-21 18:52:47 +08:00
|
|
|
rsa.c dsa.c dsaparam.c \
|
1999-01-10 01:29:34 +08:00
|
|
|
x509.c genrsa.c gendsa.c s_server.c s_client.c speed.c \
|
1998-12-21 18:52:47 +08:00
|
|
|
s_time.c $(A_SRC) $(S_SRC) version.c sess_id.c \
|
|
|
|
ciphers.c
|
|
|
|
|
|
|
|
# pem_mail.c
|
|
|
|
|
|
|
|
SRC=$(E_SRC)
|
|
|
|
|
|
|
|
EXHEADER=
|
|
|
|
HEADER= apps.h progs.h s_apps.h \
|
|
|
|
testdsa.h testrsa.h \
|
|
|
|
$(EXHEADER)
|
|
|
|
|
|
|
|
ALL= $(GENERAL) $(SRC) $(HEADER)
|
|
|
|
|
|
|
|
top:
|
|
|
|
@(cd ..; $(MAKE) DIRS=$(DIR) all)
|
|
|
|
|
|
|
|
all: exe
|
|
|
|
|
|
|
|
exe: $(EXE)
|
|
|
|
|
|
|
|
req: sreq.o $(A_OBJ) $(DLIBCRYPTO)
|
|
|
|
$(CC) -o req $(CFLAG) sreq.o $(A_OBJ) $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS)
|
|
|
|
|
|
|
|
sreq.o: req.c
|
|
|
|
$(CC) -c $(INCLUDES) $(CFLAG) -o sreq.o req.c
|
|
|
|
|
|
|
|
files:
|
|
|
|
perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
|
|
|
|
|
1999-01-02 20:59:33 +08:00
|
|
|
install:
|
|
|
|
@for i in $(EXE) $(SCRIPTS); \
|
1998-12-21 18:52:47 +08:00
|
|
|
do \
|
|
|
|
(echo installing $$i; \
|
|
|
|
cp $$i $(INSTALLTOP)/bin/$$i; \
|
|
|
|
chmod 755 $(INSTALLTOP)/bin/$$i ); \
|
|
|
|
done; \
|
1999-01-02 20:59:33 +08:00
|
|
|
cp openssl.cnf $(INSTALLTOP)/lib; \
|
|
|
|
chmod 644 $(INSTALLTOP)/lib/openssl.cnf
|
1998-12-21 18:52:47 +08:00
|
|
|
|
|
|
|
tags:
|
|
|
|
ctags $(SRC)
|
|
|
|
|
|
|
|
tests:
|
|
|
|
|
|
|
|
links:
|
|
|
|
/bin/rm -f Makefile
|
|
|
|
$(TOP)/util/point.sh Makefile.ssl Makefile ;
|
|
|
|
|
|
|
|
lint:
|
|
|
|
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
|
|
|
|
|
|
|
depend:
|
|
|
|
$(MAKEDEPEND) $(INCLUDES) $(PROGS) $(SRC)
|
|
|
|
|
|
|
|
dclean:
|
|
|
|
perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
|
|
|
mv -f Makefile.new $(MAKEFILE)
|
|
|
|
|
|
|
|
errors:
|
|
|
|
|
|
|
|
clean:
|
|
|
|
/bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff $(EXE)
|
|
|
|
/bin/rm -f req
|
|
|
|
|
|
|
|
$(DLIBSSL):
|
|
|
|
(cd ../ssl; $(MAKE))
|
|
|
|
|
|
|
|
$(DLIBCRYPTO):
|
|
|
|
(cd ../crypto; $(MAKE))
|
|
|
|
|
1999-01-02 20:59:33 +08:00
|
|
|
$(PROGRAM): progs.h $(E_OBJ) $(PROGRAM).o $(DLIBCRYPTO) $(DLIBSSL)
|
|
|
|
$(RM) $(PROGRAM)
|
|
|
|
$(CC) -o $(PROGRAM) $(CFLAGS) $(PROGRAM).o $(E_OBJ) $(PEX_LIBS) $(LIBSSL) $(LIBCRYPTO) $(EX_LIBS)
|
1998-12-21 18:52:47 +08:00
|
|
|
|
|
|
|
progs.h:
|
1999-01-02 20:59:33 +08:00
|
|
|
perl ./progs.pl $(E_EXE) >progs.h
|
|
|
|
$(RM) $(PROGRAM).o
|
1998-12-21 18:52:47 +08:00
|
|
|
|
|
|
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|