2
0

Makefile 8.6 KB

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