1998-12-21 18:52:47 +08:00
|
|
|
#
|
|
|
|
# SSLeay/crypto/pem/Makefile
|
|
|
|
#
|
|
|
|
|
|
|
|
DIR= pem
|
|
|
|
TOP= ../..
|
|
|
|
CC= cc
|
|
|
|
INCLUDES= -I.. -I../../include
|
|
|
|
CFLAG=-g
|
|
|
|
INSTALLTOP=/usr/local/ssl
|
|
|
|
MAKE= make -f Makefile.ssl
|
1999-01-20 05:36:31 +08:00
|
|
|
MAKEDEPEND= $(TOP)/util/domd $(TOP)
|
1998-12-21 18:52:47 +08:00
|
|
|
MAKEFILE= Makefile.ssl
|
|
|
|
AR= ar r
|
|
|
|
|
|
|
|
CFLAGS= $(INCLUDES) $(CFLAG)
|
|
|
|
|
|
|
|
ERR=pem
|
|
|
|
ERRC=pem_err
|
|
|
|
GENERAL=Makefile
|
|
|
|
TEST=
|
|
|
|
APPS=
|
|
|
|
|
|
|
|
CTX_SIZE= ctx_size
|
|
|
|
|
|
|
|
LIB=$(TOP)/libcrypto.a
|
|
|
|
LIBSRC= pem_sign.c pem_seal.c pem_info.c pem_lib.c pem_all.c $(ERRC).c
|
|
|
|
|
|
|
|
LIBOBJ= pem_sign.o pem_seal.o pem_info.o pem_lib.o pem_all.o $(ERRC).o
|
|
|
|
|
|
|
|
SRC= $(LIBSRC)
|
|
|
|
|
1999-01-30 21:40:34 +08:00
|
|
|
EXHEADER= pem.h pem2.h
|
1998-12-21 18:52:47 +08:00
|
|
|
HEADER= $(EXHEADER)
|
|
|
|
|
|
|
|
ALL= $(GENERAL) $(SRC) $(HEADER)
|
|
|
|
|
|
|
|
top:
|
|
|
|
(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
|
|
|
|
|
|
|
|
all: pem.h lib
|
|
|
|
|
1999-01-28 08:16:44 +08:00
|
|
|
pem.h: $(CTX_SIZE) pem.org
|
1998-12-21 18:52:47 +08:00
|
|
|
./$(CTX_SIZE) <pem.org >pem.new
|
|
|
|
if [ -f pem.h ]; then mv -f pem.h pem.old; fi
|
|
|
|
mv -f pem.new pem.h
|
|
|
|
|
|
|
|
$(CTX_SIZE): $(CTX_SIZE).o
|
|
|
|
$(CC) $(CFLAGS) -o $(CTX_SIZE) $(CTX_SIZE).o
|
|
|
|
|
|
|
|
lib: $(LIBOBJ)
|
|
|
|
$(AR) $(LIB) $(LIBOBJ)
|
|
|
|
sh $(TOP)/util/ranlib.sh $(LIB)
|
|
|
|
@touch lib
|
|
|
|
|
|
|
|
files:
|
|
|
|
perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
|
|
|
|
|
1999-01-19 06:18:38 +08:00
|
|
|
links: $(EXHEADER)
|
1999-03-06 20:32:06 +08:00
|
|
|
@$(TOP)/util/point.sh Makefile.ssl Makefile
|
|
|
|
@$(TOP)/util/mklink.sh ../../include $(EXHEADER)
|
|
|
|
@$(TOP)/util/mklink.sh ../../test $(TEST)
|
|
|
|
@$(TOP)/util/mklink.sh ../../apps $(APPS)
|
1998-12-21 18:52:47 +08:00
|
|
|
|
|
|
|
install:
|
|
|
|
@for i in $(EXHEADER) ; \
|
|
|
|
do \
|
|
|
|
(cp $$i $(INSTALLTOP)/include/$$i; \
|
|
|
|
chmod 644 $(INSTALLTOP)/include/$$i ); \
|
|
|
|
done;
|
|
|
|
|
|
|
|
tags:
|
|
|
|
ctags $(SRC)
|
|
|
|
|
|
|
|
tests:
|
|
|
|
|
|
|
|
lint:
|
|
|
|
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
|
|
|
|
|
|
|
depend:
|
|
|
|
$(MAKEDEPEND) $(INCLUDES) $(CTX_SIZE).c $(LIBSRC)
|
|
|
|
|
|
|
|
dclean:
|
|
|
|
perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
|
|
|
mv -f Makefile.new $(MAKEFILE)
|
|
|
|
|
|
|
|
clean:
|
1999-03-06 20:32:06 +08:00
|
|
|
rm -f $(CTX_SIZE) *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
|
1998-12-21 18:52:47 +08:00
|
|
|
|
1999-01-19 06:18:38 +08:00
|
|
|
errors: $(ERRC).c
|
|
|
|
|
|
|
|
$(ERRC).c: $(ERR).err
|
1998-12-21 18:52:47 +08:00
|
|
|
perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).org # SPECIAL CASE .org
|
|
|
|
perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h
|
1998-12-21 18:56:39 +08:00
|
|
|
perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c
|
1998-12-21 18:52:47 +08:00
|
|
|
|
|
|
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|
1999-03-06 22:32:48 +08:00
|
|
|
|
|
|
|
ctx_size.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
|
|
|
|
ctx_size.o: ../../include/bn.h ../../include/cast.h ../../include/crypto.h
|
|
|
|
ctx_size.o: ../../include/des.h ../../include/dh.h ../../include/dsa.h
|
|
|
|
ctx_size.o: ../../include/evp.h ../../include/idea.h ../../include/md2.h
|
|
|
|
ctx_size.o: ../../include/md5.h ../../include/mdc2.h ../../include/objects.h
|
1999-03-22 20:22:14 +08:00
|
|
|
ctx_size.o: ../../include/opensslv.h ../../include/rc2.h ../../include/rc4.h
|
|
|
|
ctx_size.o: ../../include/rc5.h ../../include/ripemd.h ../../include/rsa.h
|
|
|
|
ctx_size.o: ../../include/sha.h ../../include/stack.h
|
1999-03-06 22:32:48 +08:00
|
|
|
pem_all.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
|
|
|
|
pem_all.o: ../../include/bn.h ../../include/buffer.h ../../include/cast.h
|
|
|
|
pem_all.o: ../../include/crypto.h ../../include/des.h ../../include/dh.h
|
|
|
|
pem_all.o: ../../include/dsa.h ../../include/e_os.h ../../include/err.h
|
|
|
|
pem_all.o: ../../include/evp.h ../../include/idea.h ../../include/md2.h
|
|
|
|
pem_all.o: ../../include/md5.h ../../include/mdc2.h ../../include/objects.h
|
1999-03-22 20:22:14 +08:00
|
|
|
pem_all.o: ../../include/opensslv.h ../../include/pkcs7.h ../../include/rc2.h
|
|
|
|
pem_all.o: ../../include/rc4.h ../../include/rc5.h ../../include/ripemd.h
|
|
|
|
pem_all.o: ../../include/rsa.h ../../include/sha.h ../../include/stack.h
|
|
|
|
pem_all.o: ../../include/x509.h ../../include/x509_vfy.h ../cryptlib.h pem.h
|
|
|
|
pem_all.o: pem2.h
|
1999-03-06 22:32:48 +08:00
|
|
|
pem_err.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
|
|
|
|
pem_err.o: ../../include/bn.h ../../include/cast.h ../../include/crypto.h
|
|
|
|
pem_err.o: ../../include/des.h ../../include/dh.h ../../include/dsa.h
|
|
|
|
pem_err.o: ../../include/err.h ../../include/evp.h ../../include/idea.h
|
|
|
|
pem_err.o: ../../include/md2.h ../../include/md5.h ../../include/mdc2.h
|
1999-03-22 20:22:14 +08:00
|
|
|
pem_err.o: ../../include/objects.h ../../include/opensslv.h
|
|
|
|
pem_err.o: ../../include/pkcs7.h ../../include/rc2.h ../../include/rc4.h
|
|
|
|
pem_err.o: ../../include/rc5.h ../../include/ripemd.h ../../include/rsa.h
|
|
|
|
pem_err.o: ../../include/sha.h ../../include/stack.h ../../include/x509.h
|
|
|
|
pem_err.o: ../../include/x509_vfy.h pem.h pem2.h
|
1999-03-06 22:32:48 +08:00
|
|
|
pem_info.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
|
|
|
|
pem_info.o: ../../include/bn.h ../../include/buffer.h ../../include/cast.h
|
|
|
|
pem_info.o: ../../include/crypto.h ../../include/des.h ../../include/dh.h
|
|
|
|
pem_info.o: ../../include/dsa.h ../../include/e_os.h ../../include/err.h
|
|
|
|
pem_info.o: ../../include/evp.h ../../include/idea.h ../../include/md2.h
|
|
|
|
pem_info.o: ../../include/md5.h ../../include/mdc2.h ../../include/objects.h
|
1999-03-22 20:22:14 +08:00
|
|
|
pem_info.o: ../../include/opensslv.h ../../include/pkcs7.h ../../include/rc2.h
|
|
|
|
pem_info.o: ../../include/rc4.h ../../include/rc5.h ../../include/ripemd.h
|
|
|
|
pem_info.o: ../../include/rsa.h ../../include/sha.h ../../include/stack.h
|
|
|
|
pem_info.o: ../../include/x509.h ../../include/x509_vfy.h ../cryptlib.h pem.h
|
|
|
|
pem_info.o: pem2.h
|
1999-03-06 22:32:48 +08:00
|
|
|
pem_lib.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
|
|
|
|
pem_lib.o: ../../include/bn.h ../../include/buffer.h ../../include/cast.h
|
|
|
|
pem_lib.o: ../../include/crypto.h ../../include/des.h ../../include/dh.h
|
|
|
|
pem_lib.o: ../../include/dsa.h ../../include/e_os.h ../../include/err.h
|
|
|
|
pem_lib.o: ../../include/evp.h ../../include/idea.h ../../include/md2.h
|
|
|
|
pem_lib.o: ../../include/md5.h ../../include/mdc2.h ../../include/objects.h
|
1999-03-22 20:22:14 +08:00
|
|
|
pem_lib.o: ../../include/opensslv.h ../../include/pkcs7.h ../../include/rand.h
|
|
|
|
pem_lib.o: ../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
|
|
|
|
pem_lib.o: ../../include/ripemd.h ../../include/rsa.h ../../include/sha.h
|
|
|
|
pem_lib.o: ../../include/stack.h ../../include/x509.h ../../include/x509_vfy.h
|
|
|
|
pem_lib.o: ../cryptlib.h pem.h pem2.h
|
1999-03-06 22:32:48 +08:00
|
|
|
pem_seal.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
|
|
|
|
pem_seal.o: ../../include/bn.h ../../include/buffer.h ../../include/cast.h
|
|
|
|
pem_seal.o: ../../include/crypto.h ../../include/des.h ../../include/dh.h
|
|
|
|
pem_seal.o: ../../include/dsa.h ../../include/e_os.h ../../include/err.h
|
|
|
|
pem_seal.o: ../../include/evp.h ../../include/idea.h ../../include/md2.h
|
|
|
|
pem_seal.o: ../../include/md5.h ../../include/mdc2.h ../../include/objects.h
|
1999-03-22 20:22:14 +08:00
|
|
|
pem_seal.o: ../../include/opensslv.h ../../include/pkcs7.h ../../include/rand.h
|
|
|
|
pem_seal.o: ../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
|
|
|
|
pem_seal.o: ../../include/ripemd.h ../../include/rsa.h ../../include/sha.h
|
|
|
|
pem_seal.o: ../../include/stack.h ../../include/x509.h ../../include/x509_vfy.h
|
|
|
|
pem_seal.o: ../cryptlib.h pem.h pem2.h
|
1999-03-06 22:32:48 +08:00
|
|
|
pem_sign.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
|
|
|
|
pem_sign.o: ../../include/bn.h ../../include/buffer.h ../../include/cast.h
|
|
|
|
pem_sign.o: ../../include/crypto.h ../../include/des.h ../../include/dh.h
|
|
|
|
pem_sign.o: ../../include/dsa.h ../../include/e_os.h ../../include/err.h
|
|
|
|
pem_sign.o: ../../include/evp.h ../../include/idea.h ../../include/md2.h
|
|
|
|
pem_sign.o: ../../include/md5.h ../../include/mdc2.h ../../include/objects.h
|
1999-03-22 20:22:14 +08:00
|
|
|
pem_sign.o: ../../include/opensslv.h ../../include/pkcs7.h ../../include/rand.h
|
|
|
|
pem_sign.o: ../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
|
|
|
|
pem_sign.o: ../../include/ripemd.h ../../include/rsa.h ../../include/sha.h
|
|
|
|
pem_sign.o: ../../include/stack.h ../../include/x509.h ../../include/x509_vfy.h
|
|
|
|
pem_sign.o: ../cryptlib.h pem.h pem2.h
|