Makefile.ssl 6.7 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11
#
# SSLeay/crypto/pem/Makefile
#

DIR=	pem
TOP=	../..
CC=	cc
INCLUDES= -I.. -I../../include
CFLAG=-g
INSTALLTOP=/usr/local/ssl
MAKE=		make -f Makefile.ssl
12
MAKEDEPEND=	$(TOP)/util/domd $(TOP)
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
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)

EXHEADER= pem.h
HEADER=	$(EXHEADER)

ALL=    $(GENERAL) $(SRC) $(HEADER)

top:
	(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)

all:	pem.h lib

43
pem.h: $(CTX_SIZE) pem.org
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
	./$(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

59
links: $(EXHEADER)
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
	/bin/rm -f Makefile
	$(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)

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:
	/bin/rm -f $(CTX_SIZE) *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff

91 92 93
errors: $(ERRC).c

$(ERRC).c: $(ERR).err
94 95
	perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).org # SPECIAL CASE .org
	perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h
96
	perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c
97 98

# DO NOT DELETE THIS LINE -- make depend depends on it.
99 100 101 102 103 104 105 106 107

ctx_size.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
ctx_size.o: ../../include/bn.h ../../include/buffer.h ../../include/cast.h
ctx_size.o: ../../include/des.h ../../include/dh.h ../../include/dsa.h
ctx_size.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
ctx_size.o: ../../include/idea.h ../../include/md2.h ../../include/md5.h
ctx_size.o: ../../include/mdc2.h ../../include/objects.h ../../include/rc2.h
ctx_size.o: ../../include/rc4.h ../../include/rc5.h ../../include/ripemd.h
ctx_size.o: ../../include/rsa.h ../../include/sha.h ../../include/stack.h
B
Ben Laurie 已提交
108 109 110 111 112 113 114 115 116 117 118
ctx_size.o: ../cryptlib.h ../crypto.h
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/des.h ../../include/dh.h ../../include/dsa.h
pem_all.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
pem_all.o: ../../include/idea.h ../../include/md2.h ../../include/md5.h
pem_all.o: ../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
pem_all.o: ../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
pem_all.o: ../../include/ripemd.h ../../include/rsa.h ../../include/sha.h
pem_all.o: ../../include/stack.h ../../include/x509.h ../../include/x509_vfy.h
pem_all.o: ../cryptlib.h ../crypto.h pem.h
119 120 121 122 123 124 125 126
pem_err.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
pem_err.o: ../../include/bn.h ../../include/cast.h ../../include/des.h
pem_err.o: ../../include/dh.h ../../include/dsa.h ../../include/err.h
pem_err.o: ../../include/evp.h ../../include/idea.h ../../include/md2.h
pem_err.o: ../../include/md5.h ../../include/mdc2.h ../../include/objects.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
B
Ben Laurie 已提交
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167
pem_err.o: ../../include/x509_vfy.h ../crypto.h pem.h
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/des.h ../../include/dh.h ../../include/dsa.h
pem_info.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
pem_info.o: ../../include/idea.h ../../include/md2.h ../../include/md5.h
pem_info.o: ../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
pem_info.o: ../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
pem_info.o: ../../include/ripemd.h ../../include/rsa.h ../../include/sha.h
pem_info.o: ../../include/stack.h ../../include/x509.h ../../include/x509_vfy.h
pem_info.o: ../cryptlib.h ../crypto.h pem.h
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/des.h ../../include/dh.h ../../include/dsa.h
pem_lib.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
pem_lib.o: ../../include/idea.h ../../include/md2.h ../../include/md5.h
pem_lib.o: ../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
pem_lib.o: ../../include/rand.h ../../include/rc2.h ../../include/rc4.h
pem_lib.o: ../../include/rc5.h ../../include/ripemd.h ../../include/rsa.h
pem_lib.o: ../../include/sha.h ../../include/stack.h ../../include/x509.h
pem_lib.o: ../../include/x509_vfy.h ../cryptlib.h ../crypto.h pem.h
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/des.h ../../include/dh.h ../../include/dsa.h
pem_seal.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
pem_seal.o: ../../include/idea.h ../../include/md2.h ../../include/md5.h
pem_seal.o: ../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
pem_seal.o: ../../include/rand.h ../../include/rc2.h ../../include/rc4.h
pem_seal.o: ../../include/rc5.h ../../include/ripemd.h ../../include/rsa.h
pem_seal.o: ../../include/sha.h ../../include/stack.h ../../include/x509.h
pem_seal.o: ../../include/x509_vfy.h ../cryptlib.h ../crypto.h pem.h
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/des.h ../../include/dh.h ../../include/dsa.h
pem_sign.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
pem_sign.o: ../../include/idea.h ../../include/md2.h ../../include/md5.h
pem_sign.o: ../../include/mdc2.h ../../include/objects.h ../../include/pkcs7.h
pem_sign.o: ../../include/rand.h ../../include/rc2.h ../../include/rc4.h
pem_sign.o: ../../include/rc5.h ../../include/ripemd.h ../../include/rsa.h
pem_sign.o: ../../include/sha.h ../../include/stack.h ../../include/x509.h
pem_sign.o: ../../include/x509_vfy.h ../cryptlib.h ../crypto.h pem.h