Makefile.ssl 5.3 KB
Newer Older
1
#
2
# SSLeay/crypto/pkcs7/Makefile
3 4 5 6 7 8 9
#

DIR=	pkcs7
TOP=	../..
CC=	cc
INCLUDES= -I.. -I../../include
CFLAG=-g
10 11
INSTALL_PREFIX=
OPENSSLDIR=     /usr/local/ssl
12 13
INSTALLTOP=/usr/local/ssl
MAKE=		make -f Makefile.ssl
14
MAKEDEPEND=	$(TOP)/util/domd $(TOP)
15 16 17
MAKEFILE=	Makefile.ssl
AR=		ar r

18 19 20
PEX_LIBS=
EX_LIBS=
 
21 22 23 24 25 26 27
CFLAGS= $(INCLUDES) $(CFLAG)

GENERAL=Makefile README
TEST=
APPS=

LIB=$(TOP)/libcrypto.a
28 29
LIBSRC=	pk7_lib.c pkcs7err.c pk7_doit.c pk7_smime.c pk7_attr.c pk7_mime.c
LIBOBJ= pk7_lib.o pkcs7err.o pk7_doit.o pk7_smime.o pk7_attr.o pk7_mime.o
30 31 32 33 34 35 36 37 38 39 40 41 42

SRC= $(LIBSRC)

EXHEADER=  pkcs7.h
HEADER=	$(EXHEADER)

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

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

test:

U
Ulf Möller 已提交
43
all:	lib
44

B
Ben Laurie 已提交
45 46 47
testapps: enc dec sign verify

enc: enc.o lib
48
	$(CC) $(CFLAGS) -o enc enc.o $(PEX_LIBS) $(LIB) $(EX_LIBS)
B
Ben Laurie 已提交
49 50

dec: dec.o lib
51
	$(CC) $(CFLAGS) -o dec dec.o $(PEX_LIBS) $(LIB) $(EX_LIBS)
B
Ben Laurie 已提交
52 53

sign: sign.o lib
54
	$(CC) $(CFLAGS) -o sign sign.o $(PEX_LIBS) $(LIB) $(EX_LIBS)
B
Ben Laurie 已提交
55 56

verify: verify.o example.o lib
57
	$(CC) $(CFLAGS) -o verify verify.o $(PEX_LIBS) example.o $(LIB) $(EX_LIBS)
B
Ben Laurie 已提交
58

59 60
lib:	$(LIBOBJ)
	$(AR) $(LIB) $(LIBOBJ)
61
	$(RANLIB) $(LIB)
62 63 64
	@touch lib

files:
65
	$(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
66 67

links:
68
	@$(TOP)/util/point.sh Makefile.ssl Makefile
69 70 71
	@$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
	@$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
	@$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
72 73 74 75

install:
	@for i in $(EXHEADER) ; \
	do  \
76 77
	(cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
	chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
78 79 80 81 82 83 84 85 86 87 88
	done;

tags:
	ctags $(SRC)

tests:

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

depend:
89
	$(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
90 91

dclean:
92
	$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
93 94 95
	mv -f Makefile.new $(MAKEFILE)

clean:
96
	rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
97 98

# DO NOT DELETE THIS LINE -- make depend depends on it.
B
Ben Laurie 已提交
99

B
Bodo Möller 已提交
100 101 102 103 104
pk7_doit.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
pk7_doit.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
pk7_doit.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
pk7_doit.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
pk7_doit.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
105 106 107 108 109
pk7_doit.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
pk7_doit.o: ../../include/openssl/err.h ../../include/openssl/evp.h
pk7_doit.o: ../../include/openssl/idea.h ../../include/openssl/md2.h
pk7_doit.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
pk7_doit.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
B
Bodo Möller 已提交
110 111 112 113 114 115
pk7_doit.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
pk7_doit.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h
pk7_doit.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
pk7_doit.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
pk7_doit.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
pk7_doit.o: ../../include/openssl/stack.h ../../include/openssl/x509.h
116
pk7_doit.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
B
Bodo Möller 已提交
117 118 119 120 121
pk7_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
pk7_lib.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
pk7_lib.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
pk7_lib.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
pk7_lib.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
122 123 124 125 126 127 128 129 130 131 132 133
pk7_lib.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
pk7_lib.o: ../../include/openssl/err.h ../../include/openssl/evp.h
pk7_lib.o: ../../include/openssl/idea.h ../../include/openssl/md2.h
pk7_lib.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
pk7_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
pk7_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
pk7_lib.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
pk7_lib.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
pk7_lib.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
pk7_lib.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
pk7_lib.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
pk7_lib.o: ../cryptlib.h
B
Bodo Möller 已提交
134 135 136 137
pkcs7err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
pkcs7err.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
pkcs7err.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h
pkcs7err.o: ../../include/openssl/des.h ../../include/openssl/dh.h
B
Bodo Möller 已提交
138
pkcs7err.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
B
Ben Laurie 已提交
139 140 141 142
pkcs7err.o: ../../include/openssl/err.h ../../include/openssl/evp.h
pkcs7err.o: ../../include/openssl/idea.h ../../include/openssl/md2.h
pkcs7err.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
pkcs7err.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
B
Bodo Möller 已提交
143 144 145 146 147 148
pkcs7err.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
pkcs7err.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
pkcs7err.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
pkcs7err.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
pkcs7err.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
pkcs7err.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h