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

DIR=	pkcs7
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 43
MAKEFILE=	Makefile.ssl
AR=		ar r

CFLAGS= $(INCLUDES) $(CFLAG)

ERR=pkcs7
ERRC=pkcs7err
GENERAL=Makefile README
TEST=
APPS=

LIB=$(TOP)/libcrypto.a
LIBSRC=	pk7_lib.c pkcs7err.c pk7_doit.c
LIBOBJ= pk7_lib.o pkcs7err.o pk7_doit.o

SRC= $(LIBSRC)

EXHEADER=  pkcs7.h
HEADER=	$(EXHEADER)

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

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

test:

all:	lib

lib:	$(LIBOBJ)
	$(AR) $(LIB) $(LIBOBJ)
44
	$(RANLIB) $(LIB)
45 46 47
	@touch lib

files:
48
	$(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
49 50

links:
51
	@$(TOP)/util/point.sh Makefile.ssl Makefile
52
	@$(TOP)/util/mklink.sh ../../include/openssl $(EXHEADER)
53 54
	@$(TOP)/util/mklink.sh ../../test $(TEST)
	@$(TOP)/util/mklink.sh ../../apps $(APPS)
55 56 57 58

install:
	@for i in $(EXHEADER) ; \
	do  \
59 60
	(cp $$i $(INSTALLTOP)/include/openssl/$$i; \
	chmod 644 $(INSTALLTOP)/include/openssl/$$i ); \
61 62 63 64 65 66 67 68 69 70 71 72 73 74
	done;

tags:
	ctags $(SRC)

tests:

lint:
	lint -DLINT $(INCLUDES) $(SRC)>fluff

depend:
	$(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC)

dclean:
75
	$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
76 77 78
	mv -f Makefile.new $(MAKEFILE)

clean:
79
	rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
80

81 82 83
errors: $(ERRC).c

$(ERRC).c: $(ERR).err
84 85
	$(PERL) $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h
	$(PERL) ../err/err_genc.pl -s $(ERR).h $(ERRC).c
86 87

# DO NOT DELETE THIS LINE -- make depend depends on it.
B
Ben Laurie 已提交
88 89 90 91 92 93 94 95

pk7_doit.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
pk7_doit.o: ../../include/bn.h ../../include/buffer.h ../../include/cast.h
pk7_doit.o: ../../include/des.h ../../include/dh.h ../../include/dsa.h
pk7_doit.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
pk7_doit.o: ../../include/idea.h ../../include/md2.h ../../include/md5.h
pk7_doit.o: ../../include/mdc2.h ../../include/objects.h ../../include/rand.h
pk7_doit.o: ../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
B
Ben Laurie 已提交
96 97 98
pk7_doit.o: ../../include/ripemd.h ../../include/rsa.h
pk7_doit.o: ../../include/safestack.h ../../include/sha.h ../../include/stack.h
pk7_doit.o: ../../include/x509.h ../../include/x509_vfy.h ../cryptlib.h
B
Ben Laurie 已提交
99
pk7_doit.o: ../crypto.h ../opensslconf.h ../opensslv.h pkcs7.h
B
Ben Laurie 已提交
100 101 102 103 104 105 106
pk7_lib.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
pk7_lib.o: ../../include/bn.h ../../include/buffer.h ../../include/cast.h
pk7_lib.o: ../../include/des.h ../../include/dh.h ../../include/dsa.h
pk7_lib.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h
pk7_lib.o: ../../include/idea.h ../../include/md2.h ../../include/md5.h
pk7_lib.o: ../../include/mdc2.h ../../include/objects.h ../../include/rc2.h
pk7_lib.o: ../../include/rc4.h ../../include/rc5.h ../../include/ripemd.h
B
Ben Laurie 已提交
107 108
pk7_lib.o: ../../include/rsa.h ../../include/safestack.h ../../include/sha.h
pk7_lib.o: ../../include/stack.h ../../include/x509.h ../../include/x509_vfy.h
B
Ben Laurie 已提交
109
pk7_lib.o: ../cryptlib.h ../crypto.h ../opensslconf.h ../opensslv.h pkcs7.h
B
Ben Laurie 已提交
110 111 112 113 114 115
pkcs7err.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
pkcs7err.o: ../../include/bn.h ../../include/cast.h ../../include/des.h
pkcs7err.o: ../../include/dh.h ../../include/dsa.h ../../include/err.h
pkcs7err.o: ../../include/evp.h ../../include/idea.h ../../include/md2.h
pkcs7err.o: ../../include/md5.h ../../include/mdc2.h ../../include/objects.h
pkcs7err.o: ../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
B
Ben Laurie 已提交
116 117 118
pkcs7err.o: ../../include/ripemd.h ../../include/rsa.h
pkcs7err.o: ../../include/safestack.h ../../include/sha.h ../../include/stack.h
pkcs7err.o: ../../include/x509.h ../../include/x509_vfy.h ../crypto.h
B
Ben Laurie 已提交
119
pkcs7err.o: ../opensslconf.h ../opensslv.h pkcs7.h