Makefile 15 KB

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