Makefile 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. #
  2. # OpenSSL/crypto/des/Makefile
  3. #
  4. DIR= des
  5. TOP= ../..
  6. CC= cc
  7. CPP= $(CC) -E
  8. INCLUDES=-I$(TOP) -I../../include
  9. CFLAG=-g
  10. MAKEFILE= Makefile
  11. AR= ar r
  12. RANLIB= ranlib
  13. DES_ENC= des_enc.o fcrypt_b.o
  14. CFLAGS= $(INCLUDES) $(CFLAG)
  15. ASFLAGS= $(INCLUDES) $(ASFLAG)
  16. AFLAGS= $(ASFLAGS)
  17. GENERAL=Makefile
  18. TEST=destest.c
  19. APPS=
  20. LIB=$(TOP)/libcrypto.a
  21. LIBSRC= cbc_cksm.c cbc_enc.c cfb64enc.c cfb_enc.c \
  22. ecb3_enc.c ecb_enc.c enc_read.c enc_writ.c \
  23. fcrypt.c ofb64enc.c ofb_enc.c pcbc_enc.c \
  24. qud_cksm.c rand_key.c rpc_enc.c set_key.c \
  25. des_enc.c fcrypt_b.c \
  26. xcbc_enc.c \
  27. str2key.c cfb64ede.c ofb64ede.c ede_cbcm_enc.c des_old.c des_old2.c \
  28. read2pwd.c
  29. LIBOBJ= set_key.o ecb_enc.o cbc_enc.o \
  30. ecb3_enc.o cfb64enc.o cfb64ede.o cfb_enc.o ofb64ede.o \
  31. enc_read.o enc_writ.o ofb64enc.o \
  32. ofb_enc.o str2key.o pcbc_enc.o qud_cksm.o rand_key.o \
  33. ${DES_ENC} \
  34. fcrypt.o xcbc_enc.o rpc_enc.o cbc_cksm.o \
  35. ede_cbcm_enc.o des_old.o des_old2.o read2pwd.o
  36. SRC= $(LIBSRC)
  37. EXHEADER= des.h des_old.h
  38. HEADER= des_locl.h rpc_des.h spr.h des_ver.h $(EXHEADER)
  39. ALL= $(GENERAL) $(SRC) $(HEADER)
  40. top:
  41. (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
  42. all: lib
  43. lib: $(LIBOBJ)
  44. $(AR) $(LIB) $(LIBOBJ)
  45. $(RANLIB) $(LIB) || echo Never mind.
  46. @touch lib
  47. des: des.o cbc3_enc.o lib
  48. $(CC) $(CFLAGS) -o des des.o cbc3_enc.o $(LIB)
  49. des_enc-sparc.S: asm/des_enc.m4
  50. m4 -B 8192 asm/des_enc.m4 > des_enc-sparc.S
  51. des-586.s: asm/des-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
  52. $(PERL) asm/des-586.pl $(PERLASM_SCHEME) $(CFLAGS) > $@
  53. crypt586.s: asm/crypt586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
  54. $(PERL) asm/crypt586.pl $(PERLASM_SCHEME) $(CFLAGS) > $@
  55. files:
  56. $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
  57. links:
  58. @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
  59. @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
  60. @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
  61. # We need to use force because 'install' matches 'INSTALL' on case
  62. # insensitive systems
  63. FRC.install:
  64. install: FRC.install
  65. @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
  66. @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
  67. do \
  68. (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
  69. chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
  70. done;
  71. tags:
  72. ctags $(SRC)
  73. tests:
  74. lint:
  75. lint -DLINT $(INCLUDES) $(SRC)>fluff
  76. update: depend
  77. depend:
  78. @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
  79. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  80. dclean:
  81. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  82. mv -f Makefile.new $(MAKEFILE)
  83. clean:
  84. rm -f *.s *.o *.obj des lib tags core .pure .nfs* *.old *.bak fluff
  85. # DO NOT DELETE THIS LINE -- make depend depends on it.
  86. cbc_cksm.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  87. cbc_cksm.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  88. cbc_cksm.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  89. cbc_cksm.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  90. cbc_cksm.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  91. cbc_cksm.o: cbc_cksm.c des_locl.h
  92. cbc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  93. cbc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  94. cbc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  95. cbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  96. cbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  97. cbc_enc.o: cbc_enc.c des_locl.h ncbc_enc.c
  98. cfb64ede.o: ../../e_os.h ../../include/openssl/des.h
  99. cfb64ede.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
  100. cfb64ede.o: ../../include/openssl/opensslconf.h
  101. cfb64ede.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  102. cfb64ede.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  103. cfb64ede.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  104. cfb64ede.o: cfb64ede.c des_locl.h
  105. cfb64enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  106. cfb64enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  107. cfb64enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  108. cfb64enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  109. cfb64enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  110. cfb64enc.o: cfb64enc.c des_locl.h
  111. cfb_enc.o: ../../e_os.h ../../include/openssl/des.h
  112. cfb_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
  113. cfb_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/ossl_typ.h
  114. cfb_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  115. cfb_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  116. cfb_enc.o: ../../include/openssl/ui_compat.h cfb_enc.c des_locl.h
  117. des_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  118. des_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  119. des_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  120. des_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  121. des_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  122. des_enc.o: des_enc.c des_locl.h ncbc_enc.c spr.h
  123. des_old.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  124. des_old.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  125. des_old.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
  126. des_old.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  127. des_old.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  128. des_old.o: ../../include/openssl/ui_compat.h des_old.c
  129. des_old2.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  130. des_old2.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  131. des_old2.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
  132. des_old2.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  133. des_old2.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  134. des_old2.o: ../../include/openssl/ui_compat.h des_old2.c
  135. ecb3_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  136. ecb3_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  137. ecb3_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  138. ecb3_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  139. ecb3_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  140. ecb3_enc.o: des_locl.h ecb3_enc.c
  141. ecb_enc.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
  142. ecb_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  143. ecb_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  144. ecb_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  145. ecb_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  146. ecb_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  147. ecb_enc.o: ../../include/openssl/ui_compat.h des_locl.h des_ver.h ecb_enc.c
  148. ede_cbcm_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  149. ede_cbcm_enc.o: ../../include/openssl/e_os2.h
  150. ede_cbcm_enc.o: ../../include/openssl/opensslconf.h
  151. ede_cbcm_enc.o: ../../include/openssl/ossl_typ.h
  152. ede_cbcm_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  153. ede_cbcm_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  154. ede_cbcm_enc.o: ../../include/openssl/ui_compat.h des_locl.h ede_cbcm_enc.c
  155. enc_read.o: ../../e_os.h ../../include/openssl/bio.h
  156. enc_read.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
  157. enc_read.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  158. enc_read.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  159. enc_read.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
  160. enc_read.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  161. enc_read.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  162. enc_read.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  163. enc_read.o: ../../include/openssl/ui_compat.h ../cryptlib.h des_locl.h
  164. enc_read.o: enc_read.c
  165. enc_writ.o: ../../e_os.h ../../include/openssl/bio.h
  166. enc_writ.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
  167. enc_writ.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  168. enc_writ.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  169. enc_writ.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
  170. enc_writ.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  171. enc_writ.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
  172. enc_writ.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  173. enc_writ.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  174. enc_writ.o: ../cryptlib.h des_locl.h enc_writ.c
  175. fcrypt.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  176. fcrypt.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  177. fcrypt.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  178. fcrypt.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  179. fcrypt.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  180. fcrypt.o: des_locl.h fcrypt.c
  181. fcrypt_b.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  182. fcrypt_b.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  183. fcrypt_b.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  184. fcrypt_b.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  185. fcrypt_b.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  186. fcrypt_b.o: des_locl.h fcrypt_b.c
  187. ofb64ede.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  188. ofb64ede.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  189. ofb64ede.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  190. ofb64ede.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  191. ofb64ede.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  192. ofb64ede.o: des_locl.h ofb64ede.c
  193. ofb64enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  194. ofb64enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  195. ofb64enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  196. ofb64enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  197. ofb64enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  198. ofb64enc.o: des_locl.h ofb64enc.c
  199. ofb_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  200. ofb_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  201. ofb_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  202. ofb_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  203. ofb_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  204. ofb_enc.o: des_locl.h ofb_enc.c
  205. pcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  206. pcbc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  207. pcbc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  208. pcbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  209. pcbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  210. pcbc_enc.o: des_locl.h pcbc_enc.c
  211. qud_cksm.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  212. qud_cksm.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  213. qud_cksm.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  214. qud_cksm.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  215. qud_cksm.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  216. qud_cksm.o: des_locl.h qud_cksm.c
  217. rand_key.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  218. rand_key.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  219. rand_key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
  220. rand_key.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  221. rand_key.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  222. rand_key.o: ../../include/openssl/ui_compat.h rand_key.c
  223. read2pwd.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
  224. read2pwd.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
  225. read2pwd.o: ../../include/openssl/opensslconf.h
  226. read2pwd.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  227. read2pwd.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  228. read2pwd.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  229. read2pwd.o: ../../include/openssl/ui_compat.h read2pwd.c
  230. rpc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  231. rpc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  232. rpc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  233. rpc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  234. rpc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  235. rpc_enc.o: des_locl.h des_ver.h rpc_des.h rpc_enc.c
  236. set_key.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  237. set_key.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  238. set_key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  239. set_key.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  240. set_key.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  241. set_key.o: des_locl.h set_key.c
  242. str2key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
  243. str2key.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
  244. str2key.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  245. str2key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  246. str2key.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  247. str2key.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  248. str2key.o: des_locl.h str2key.c
  249. xcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  250. xcbc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  251. xcbc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  252. xcbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  253. xcbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  254. xcbc_enc.o: des_locl.h xcbc_enc.c