1 # 2 # OpenSSL/crypto/pkcs7/Makefile 3 # 4 5 DIR= pkcs7 6 TOP= ../.. 7 CC= cc 8 INCLUDES= -I.. -I$(TOP) -I../../include 9 CFLAG=-g 10 MAKEFILE= Makefile 11 AR= ar r 12 13 PEX_LIBS= 14 EX_LIBS= 15 16 CFLAGS= $(INCLUDES) $(CFLAG) 17 18 GENERAL=Makefile README 19 TEST= 20 APPS= 21 22 LIB=$(TOP)/libcrypto.a 23 LIBSRC= pk7_asn1.c pk7_lib.c pkcs7err.c pk7_doit.c pk7_smime.c pk7_attr.c \ 24 pk7_mime.c 25 LIBOBJ= pk7_asn1.o pk7_lib.o pkcs7err.o pk7_doit.o pk7_smime.o pk7_attr.o \ 26 pk7_mime.o 27 28 SRC= $(LIBSRC) 29 30 EXHEADER= pkcs7.h 31 HEADER= $(EXHEADER) 32 33 ALL= $(GENERAL) $(SRC) $(HEADER) 34 35 top: 36 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) 37 38 test: 39 40 all: lib 41 42 testapps: enc dec sign verify 43 44 enc: enc.o lib 45 $(CC) $(CFLAGS) -o enc enc.o $(PEX_LIBS) $(LIB) $(EX_LIBS) 46 47 dec: dec.o lib 48 $(CC) $(CFLAGS) -o dec dec.o $(PEX_LIBS) $(LIB) $(EX_LIBS) 49 50 sign: sign.o lib 51 $(CC) $(CFLAGS) -o sign sign.o $(PEX_LIBS) $(LIB) $(EX_LIBS) 52 53 verify: verify.o example.o lib 54 $(CC) $(CFLAGS) -o verify verify.o $(PEX_LIBS) example.o $(LIB) $(EX_LIBS) 55 56 lib: $(LIBOBJ) 57 $(ARX) $(LIB) $(LIBOBJ) 58 $(RANLIB) $(LIB) || echo Never mind. 59 @touch lib 60 61 files: 62 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO 63 64 links: 65 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) 66 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) 67 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) 68 69 install: 70 @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... 71 @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ 72 do \ 73 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ 74 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ 75 done; 76 77 tags: 78 ctags $(SRC) 79 80 tests: 81 82 lint: 83 lint -DLINT $(INCLUDES) $(SRC)>fluff 84 85 depend: 86 @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile... 87 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) 88 89 dclean: 90 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new 91 mv -f Makefile.new $(MAKEFILE) 92 93 clean: 94 rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff enc dec sign verify 95 96 # DO NOT DELETE THIS LINE -- make depend depends on it. 97 98 pk7_asn1.o: ../../e_os.h ../../include/openssl/asn1.h 99 pk7_asn1.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h 100 pk7_asn1.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h 101 pk7_asn1.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h 102 pk7_asn1.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h 103 pk7_asn1.o: ../../include/openssl/err.h ../../include/openssl/evp.h 104 pk7_asn1.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h 105 pk7_asn1.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h 106 pk7_asn1.o: ../../include/openssl/opensslconf.h 107 pk7_asn1.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 108 pk7_asn1.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h 109 pk7_asn1.o: ../../include/openssl/sha.h ../../include/openssl/stack.h 110 pk7_asn1.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h 111 pk7_asn1.o: ../../include/openssl/x509_vfy.h ../cryptlib.h pk7_asn1.c 112 pk7_attr.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 113 pk7_attr.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h 114 pk7_attr.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h 115 pk7_attr.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h 116 pk7_attr.o: ../../include/openssl/err.h ../../include/openssl/evp.h 117 pk7_attr.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h 118 pk7_attr.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h 119 pk7_attr.o: ../../include/openssl/opensslconf.h 120 pk7_attr.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 121 pk7_attr.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h 122 pk7_attr.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h 123 pk7_attr.o: ../../include/openssl/sha.h ../../include/openssl/stack.h 124 pk7_attr.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h 125 pk7_attr.o: ../../include/openssl/x509_vfy.h pk7_attr.c 126 pk7_doit.o: ../../e_os.h ../../include/openssl/asn1.h 127 pk7_doit.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h 128 pk7_doit.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h 129 pk7_doit.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h 130 pk7_doit.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h 131 pk7_doit.o: ../../include/openssl/err.h ../../include/openssl/evp.h 132 pk7_doit.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h 133 pk7_doit.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h 134 pk7_doit.o: ../../include/openssl/opensslconf.h 135 pk7_doit.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 136 pk7_doit.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h 137 pk7_doit.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h 138 pk7_doit.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 139 pk7_doit.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h 140 pk7_doit.o: ../../include/openssl/x509v3.h ../cryptlib.h pk7_doit.c 141 pk7_lib.o: ../../e_os.h ../../include/openssl/asn1.h 142 pk7_lib.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h 143 pk7_lib.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 144 pk7_lib.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h 145 pk7_lib.o: ../../include/openssl/ecdsa.h ../../include/openssl/err.h 146 pk7_lib.o: ../../include/openssl/evp.h ../../include/openssl/fips.h 147 pk7_lib.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h 148 pk7_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h 149 pk7_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 150 pk7_lib.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h 151 pk7_lib.o: ../../include/openssl/sha.h ../../include/openssl/stack.h 152 pk7_lib.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h 153 pk7_lib.o: ../../include/openssl/x509_vfy.h ../cryptlib.h pk7_lib.c 154 pk7_mime.o: ../../e_os.h ../../include/openssl/asn1.h 155 pk7_mime.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h 156 pk7_mime.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 157 pk7_mime.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h 158 pk7_mime.o: ../../include/openssl/ecdsa.h ../../include/openssl/err.h 159 pk7_mime.o: ../../include/openssl/evp.h ../../include/openssl/fips.h 160 pk7_mime.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h 161 pk7_mime.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h 162 pk7_mime.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 163 pk7_mime.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h 164 pk7_mime.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h 165 pk7_mime.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 166 pk7_mime.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h 167 pk7_mime.o: ../cryptlib.h pk7_mime.c 168 pk7_smime.o: ../../e_os.h ../../include/openssl/asn1.h 169 pk7_smime.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h 170 pk7_smime.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h 171 pk7_smime.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h 172 pk7_smime.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h 173 pk7_smime.o: ../../include/openssl/err.h ../../include/openssl/evp.h 174 pk7_smime.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h 175 pk7_smime.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h 176 pk7_smime.o: ../../include/openssl/opensslconf.h 177 pk7_smime.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 178 pk7_smime.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h 179 pk7_smime.o: ../../include/openssl/sha.h ../../include/openssl/stack.h 180 pk7_smime.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h 181 pk7_smime.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h 182 pk7_smime.o: ../cryptlib.h pk7_smime.c 183 pkcs7err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 184 pkcs7err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 185 pkcs7err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h 186 pkcs7err.o: ../../include/openssl/opensslconf.h 187 pkcs7err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 188 pkcs7err.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h 189 pkcs7err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 190 pkcs7err.o: pkcs7err.c 191