Makefile 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  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. dest4-sparcv9.s: asm/dest4-sparcv9.pl
  52. $(PERL) asm/dest4-sparcv9.pl $(CFLAGS) > $@
  53. des-586.s: asm/des-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
  54. $(PERL) asm/des-586.pl $(PERLASM_SCHEME) $(CFLAGS) > $@
  55. crypt586.s: asm/crypt586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
  56. $(PERL) asm/crypt586.pl $(PERLASM_SCHEME) $(CFLAGS) > $@
  57. files:
  58. $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
  59. links:
  60. @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
  61. @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
  62. @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
  63. # We need to use force because 'install' matches 'INSTALL' on case
  64. # insensitive systems
  65. FRC.install:
  66. install: FRC.install
  67. @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
  68. @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
  69. do \
  70. (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
  71. chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
  72. done;
  73. tags:
  74. ctags $(SRC)
  75. tests:
  76. lint:
  77. lint -DLINT $(INCLUDES) $(SRC)>fluff
  78. update: depend
  79. depend:
  80. @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
  81. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  82. dclean:
  83. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  84. mv -f Makefile.new $(MAKEFILE)
  85. clean:
  86. rm -f *.s *.S *.o *.obj des lib tags core .pure .nfs* *.old *.bak fluff
  87. # DO NOT DELETE THIS LINE -- make depend depends on it.
  88. cbc_cksm.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  89. cbc_cksm.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  90. cbc_cksm.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  91. cbc_cksm.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  92. cbc_cksm.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  93. cbc_cksm.o: cbc_cksm.c des_locl.h
  94. cbc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  95. cbc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  96. cbc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  97. cbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  98. cbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  99. cbc_enc.o: cbc_enc.c des_locl.h ncbc_enc.c
  100. cfb64ede.o: ../../e_os.h ../../include/openssl/des.h
  101. cfb64ede.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
  102. cfb64ede.o: ../../include/openssl/opensslconf.h
  103. cfb64ede.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  104. cfb64ede.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  105. cfb64ede.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  106. cfb64ede.o: cfb64ede.c des_locl.h
  107. cfb64enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  108. cfb64enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  109. cfb64enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  110. cfb64enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  111. cfb64enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  112. cfb64enc.o: cfb64enc.c des_locl.h
  113. cfb_enc.o: ../../e_os.h ../../include/openssl/des.h
  114. cfb_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
  115. cfb_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/ossl_typ.h
  116. cfb_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  117. cfb_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  118. cfb_enc.o: ../../include/openssl/ui_compat.h cfb_enc.c des_locl.h
  119. des_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  120. des_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  121. des_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  122. des_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  123. des_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  124. des_enc.o: des_enc.c des_locl.h ncbc_enc.c spr.h
  125. des_old.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  126. des_old.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  127. des_old.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
  128. des_old.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  129. des_old.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  130. des_old.o: ../../include/openssl/ui_compat.h des_old.c
  131. des_old2.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  132. des_old2.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  133. des_old2.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
  134. des_old2.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  135. des_old2.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  136. des_old2.o: ../../include/openssl/ui_compat.h des_old2.c
  137. ecb3_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  138. ecb3_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  139. ecb3_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  140. ecb3_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  141. ecb3_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  142. ecb3_enc.o: des_locl.h ecb3_enc.c
  143. ecb_enc.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
  144. ecb_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  145. ecb_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  146. ecb_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  147. ecb_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  148. ecb_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  149. ecb_enc.o: ../../include/openssl/ui_compat.h des_locl.h des_ver.h ecb_enc.c
  150. ede_cbcm_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  151. ede_cbcm_enc.o: ../../include/openssl/e_os2.h
  152. ede_cbcm_enc.o: ../../include/openssl/opensslconf.h
  153. ede_cbcm_enc.o: ../../include/openssl/ossl_typ.h
  154. ede_cbcm_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  155. ede_cbcm_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  156. ede_cbcm_enc.o: ../../include/openssl/ui_compat.h des_locl.h ede_cbcm_enc.c
  157. enc_read.o: ../../e_os.h ../../include/openssl/bio.h
  158. enc_read.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
  159. enc_read.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  160. enc_read.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  161. enc_read.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
  162. enc_read.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  163. enc_read.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  164. enc_read.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  165. enc_read.o: ../../include/openssl/ui_compat.h ../cryptlib.h des_locl.h
  166. enc_read.o: enc_read.c
  167. enc_writ.o: ../../e_os.h ../../include/openssl/bio.h
  168. enc_writ.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
  169. enc_writ.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  170. enc_writ.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  171. enc_writ.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
  172. enc_writ.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  173. enc_writ.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
  174. enc_writ.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  175. enc_writ.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  176. enc_writ.o: ../cryptlib.h des_locl.h enc_writ.c
  177. fcrypt.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  178. fcrypt.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  179. fcrypt.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  180. fcrypt.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  181. fcrypt.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  182. fcrypt.o: des_locl.h fcrypt.c
  183. fcrypt_b.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  184. fcrypt_b.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  185. fcrypt_b.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  186. fcrypt_b.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  187. fcrypt_b.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  188. fcrypt_b.o: des_locl.h fcrypt_b.c
  189. ofb64ede.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  190. ofb64ede.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  191. ofb64ede.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  192. ofb64ede.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  193. ofb64ede.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  194. ofb64ede.o: des_locl.h ofb64ede.c
  195. ofb64enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  196. ofb64enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  197. ofb64enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  198. ofb64enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  199. ofb64enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  200. ofb64enc.o: des_locl.h ofb64enc.c
  201. ofb_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  202. ofb_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  203. ofb_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  204. ofb_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  205. ofb_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  206. ofb_enc.o: des_locl.h ofb_enc.c
  207. pcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  208. pcbc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  209. pcbc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  210. pcbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  211. pcbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  212. pcbc_enc.o: des_locl.h pcbc_enc.c
  213. qud_cksm.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  214. qud_cksm.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  215. qud_cksm.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  216. qud_cksm.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  217. qud_cksm.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  218. qud_cksm.o: des_locl.h qud_cksm.c
  219. rand_key.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  220. rand_key.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  221. rand_key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
  222. rand_key.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  223. rand_key.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  224. rand_key.o: ../../include/openssl/ui_compat.h rand_key.c
  225. read2pwd.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
  226. read2pwd.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
  227. read2pwd.o: ../../include/openssl/opensslconf.h
  228. read2pwd.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  229. read2pwd.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  230. read2pwd.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  231. read2pwd.o: ../../include/openssl/ui_compat.h read2pwd.c
  232. rpc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  233. rpc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  234. rpc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  235. rpc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  236. rpc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  237. rpc_enc.o: des_locl.h des_ver.h rpc_des.h rpc_enc.c
  238. set_key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
  239. set_key.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
  240. set_key.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  241. set_key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  242. set_key.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  243. set_key.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  244. set_key.o: des_locl.h set_key.c
  245. str2key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
  246. str2key.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
  247. str2key.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  248. str2key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  249. str2key.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  250. str2key.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  251. str2key.o: des_locl.h str2key.c
  252. xcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  253. xcbc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  254. xcbc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  255. xcbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  256. xcbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  257. xcbc_enc.o: des_locl.h xcbc_enc.c