Makefile 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  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. $(ARX) $(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. depend:
  77. @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
  78. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  79. dclean:
  80. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  81. mv -f Makefile.new $(MAKEFILE)
  82. clean:
  83. rm -f *.s *.o *.obj des lib tags core .pure .nfs* *.old *.bak fluff
  84. # DO NOT DELETE THIS LINE -- make depend depends on it.
  85. cbc_cksm.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
  86. cbc_cksm.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
  87. cbc_cksm.o: ../../include/openssl/opensslconf.h
  88. cbc_cksm.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  89. cbc_cksm.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  90. cbc_cksm.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  91. cbc_cksm.o: ../../include/openssl/ui_compat.h cbc_cksm.c des_locl.h
  92. cbc_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
  93. cbc_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
  94. cbc_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  95. cbc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  96. cbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  97. cbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  98. cbc_enc.o: cbc_enc.c des_locl.h ncbc_enc.c
  99. cfb64ede.o: ../../e_os.h ../../include/openssl/crypto.h
  100. cfb64ede.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  101. cfb64ede.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  102. cfb64ede.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  103. cfb64ede.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  104. cfb64ede.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  105. cfb64ede.o: ../../include/openssl/ui_compat.h cfb64ede.c des_locl.h
  106. cfb64enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
  107. cfb64enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
  108. cfb64enc.o: ../../include/openssl/opensslconf.h
  109. cfb64enc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  110. cfb64enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  111. cfb64enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  112. cfb64enc.o: ../../include/openssl/ui_compat.h cfb64enc.c des_locl.h
  113. cfb_enc.o: ../../e_os.h ../../include/openssl/crypto.h
  114. cfb_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  115. cfb_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  116. cfb_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  117. cfb_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  118. cfb_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  119. cfb_enc.o: ../../include/openssl/ui_compat.h cfb_enc.c des_locl.h
  120. des_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
  121. des_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
  122. des_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  123. des_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  124. des_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  125. des_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  126. des_enc.o: des_enc.c des_locl.h ncbc_enc.c spr.h
  127. des_old.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
  128. des_old.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
  129. des_old.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  130. des_old.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
  131. des_old.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  132. des_old.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  133. des_old.o: ../../include/openssl/ui_compat.h des_old.c
  134. des_old2.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
  135. des_old2.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
  136. des_old2.o: ../../include/openssl/opensslconf.h
  137. des_old2.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  138. des_old2.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
  139. des_old2.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  140. des_old2.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  141. des_old2.o: des_old2.c
  142. ecb3_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
  143. ecb3_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
  144. ecb3_enc.o: ../../include/openssl/opensslconf.h
  145. ecb3_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  146. ecb3_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  147. ecb3_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  148. ecb3_enc.o: ../../include/openssl/ui_compat.h des_locl.h ecb3_enc.c
  149. ecb_enc.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
  150. ecb_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  151. ecb_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  152. ecb_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  153. ecb_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  154. ecb_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  155. ecb_enc.o: ../../include/openssl/ui_compat.h des_locl.h des_ver.h ecb_enc.c
  156. ede_cbcm_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
  157. ede_cbcm_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
  158. ede_cbcm_enc.o: ../../include/openssl/opensslconf.h
  159. ede_cbcm_enc.o: ../../include/openssl/opensslv.h
  160. ede_cbcm_enc.o: ../../include/openssl/ossl_typ.h
  161. ede_cbcm_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  162. ede_cbcm_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  163. ede_cbcm_enc.o: ../../include/openssl/ui_compat.h des_locl.h ede_cbcm_enc.c
  164. enc_read.o: ../../e_os.h ../../include/openssl/bio.h
  165. enc_read.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
  166. enc_read.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  167. enc_read.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  168. enc_read.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
  169. enc_read.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  170. enc_read.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  171. enc_read.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  172. enc_read.o: ../../include/openssl/ui_compat.h ../cryptlib.h des_locl.h
  173. enc_read.o: enc_read.c
  174. enc_writ.o: ../../e_os.h ../../include/openssl/bio.h
  175. enc_writ.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
  176. enc_writ.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  177. enc_writ.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  178. enc_writ.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
  179. enc_writ.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  180. enc_writ.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
  181. enc_writ.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  182. enc_writ.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  183. enc_writ.o: ../cryptlib.h des_locl.h enc_writ.c
  184. fcrypt.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
  185. fcrypt.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
  186. fcrypt.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  187. fcrypt.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  188. fcrypt.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  189. fcrypt.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  190. fcrypt.o: des_locl.h fcrypt.c
  191. fcrypt_b.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
  192. fcrypt_b.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
  193. fcrypt_b.o: ../../include/openssl/opensslconf.h
  194. fcrypt_b.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  195. fcrypt_b.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  196. fcrypt_b.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  197. fcrypt_b.o: ../../include/openssl/ui_compat.h des_locl.h fcrypt_b.c
  198. ofb64ede.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
  199. ofb64ede.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
  200. ofb64ede.o: ../../include/openssl/opensslconf.h
  201. ofb64ede.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  202. ofb64ede.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  203. ofb64ede.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  204. ofb64ede.o: ../../include/openssl/ui_compat.h des_locl.h ofb64ede.c
  205. ofb64enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
  206. ofb64enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
  207. ofb64enc.o: ../../include/openssl/opensslconf.h
  208. ofb64enc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  209. ofb64enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  210. ofb64enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  211. ofb64enc.o: ../../include/openssl/ui_compat.h des_locl.h ofb64enc.c
  212. ofb_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
  213. ofb_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
  214. ofb_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  215. ofb_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  216. ofb_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  217. ofb_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  218. ofb_enc.o: des_locl.h ofb_enc.c
  219. pcbc_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
  220. pcbc_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
  221. pcbc_enc.o: ../../include/openssl/opensslconf.h
  222. pcbc_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  223. pcbc_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  224. pcbc_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  225. pcbc_enc.o: ../../include/openssl/ui_compat.h des_locl.h pcbc_enc.c
  226. qud_cksm.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  227. qud_cksm.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  228. qud_cksm.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  229. qud_cksm.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  230. qud_cksm.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  231. qud_cksm.o: des_locl.h qud_cksm.c
  232. rand_key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
  233. rand_key.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
  234. rand_key.o: ../../include/openssl/opensslconf.h
  235. rand_key.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  236. rand_key.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
  237. rand_key.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  238. rand_key.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  239. rand_key.o: rand_key.c
  240. read2pwd.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
  241. read2pwd.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
  242. read2pwd.o: ../../include/openssl/opensslconf.h
  243. read2pwd.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  244. read2pwd.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  245. read2pwd.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  246. read2pwd.o: ../../include/openssl/ui_compat.h read2pwd.c
  247. rpc_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
  248. rpc_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
  249. rpc_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  250. rpc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  251. rpc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  252. rpc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  253. rpc_enc.o: des_locl.h des_ver.h rpc_des.h rpc_enc.c
  254. set_key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
  255. set_key.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
  256. set_key.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  257. set_key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  258. set_key.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  259. set_key.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  260. set_key.o: des_locl.h set_key.c
  261. str2key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
  262. str2key.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
  263. str2key.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  264. str2key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  265. str2key.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  266. str2key.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  267. str2key.o: des_locl.h str2key.c
  268. xcbc_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
  269. xcbc_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
  270. xcbc_enc.o: ../../include/openssl/opensslconf.h
  271. xcbc_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  272. xcbc_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  273. xcbc_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  274. xcbc_enc.o: ../../include/openssl/ui_compat.h des_locl.h xcbc_enc.c