2
0

Makefile 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  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= 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= 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. $(AR) $(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 spr.h
  135. des_old.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  136. des_old.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  137. des_old.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
  138. des_old.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  139. des_old.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  140. des_old.o: ../../include/openssl/ui_compat.h des_old.c
  141. des_old2.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  142. des_old2.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  143. des_old2.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
  144. des_old2.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  145. des_old2.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  146. des_old2.o: ../../include/openssl/ui_compat.h des_old2.c
  147. ecb3_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  148. ecb3_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  149. ecb3_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  150. ecb3_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  151. ecb3_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  152. ecb3_enc.o: des_locl.h ecb3_enc.c
  153. ecb_enc.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
  154. ecb_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  155. ecb_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  156. ecb_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  157. ecb_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  158. ecb_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  159. ecb_enc.o: ../../include/openssl/ui_compat.h des_locl.h des_ver.h ecb_enc.c
  160. ede_cbcm_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  161. ede_cbcm_enc.o: ../../include/openssl/e_os2.h
  162. ede_cbcm_enc.o: ../../include/openssl/opensslconf.h
  163. ede_cbcm_enc.o: ../../include/openssl/ossl_typ.h
  164. ede_cbcm_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  165. ede_cbcm_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  166. ede_cbcm_enc.o: ../../include/openssl/ui_compat.h des_locl.h ede_cbcm_enc.c
  167. enc_read.o: ../../e_os.h ../../include/openssl/bio.h
  168. enc_read.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
  169. enc_read.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  170. enc_read.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  171. enc_read.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
  172. enc_read.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  173. enc_read.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  174. enc_read.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  175. enc_read.o: ../../include/openssl/ui_compat.h ../cryptlib.h des_locl.h
  176. enc_read.o: enc_read.c
  177. enc_writ.o: ../../e_os.h ../../include/openssl/bio.h
  178. enc_writ.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
  179. enc_writ.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  180. enc_writ.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  181. enc_writ.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
  182. enc_writ.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  183. enc_writ.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
  184. enc_writ.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  185. enc_writ.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  186. enc_writ.o: ../cryptlib.h des_locl.h enc_writ.c
  187. fcrypt.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  188. fcrypt.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  189. fcrypt.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  190. fcrypt.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  191. fcrypt.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  192. fcrypt.o: des_locl.h fcrypt.c
  193. fcrypt_b.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  194. fcrypt_b.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  195. fcrypt_b.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  196. fcrypt_b.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  197. fcrypt_b.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  198. fcrypt_b.o: des_locl.h fcrypt_b.c
  199. ofb64ede.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  200. ofb64ede.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  201. ofb64ede.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  202. ofb64ede.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  203. ofb64ede.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  204. ofb64ede.o: des_locl.h ofb64ede.c
  205. ofb64enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  206. ofb64enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  207. ofb64enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  208. ofb64enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  209. ofb64enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  210. ofb64enc.o: des_locl.h ofb64enc.c
  211. ofb_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  212. ofb_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  213. ofb_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  214. ofb_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  215. ofb_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  216. ofb_enc.o: des_locl.h ofb_enc.c
  217. pcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  218. pcbc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  219. pcbc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  220. pcbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  221. pcbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  222. pcbc_enc.o: des_locl.h pcbc_enc.c
  223. qud_cksm.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  224. qud_cksm.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  225. qud_cksm.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  226. qud_cksm.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  227. qud_cksm.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  228. qud_cksm.o: des_locl.h qud_cksm.c
  229. rand_key.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  230. rand_key.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  231. rand_key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
  232. rand_key.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  233. rand_key.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  234. rand_key.o: ../../include/openssl/ui_compat.h rand_key.c
  235. read2pwd.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
  236. read2pwd.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
  237. read2pwd.o: ../../include/openssl/opensslconf.h
  238. read2pwd.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  239. read2pwd.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  240. read2pwd.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  241. read2pwd.o: ../../include/openssl/ui_compat.h read2pwd.c
  242. rpc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  243. rpc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  244. rpc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  245. rpc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  246. rpc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  247. rpc_enc.o: des_locl.h des_ver.h rpc_des.h rpc_enc.c
  248. set_key.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  249. set_key.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  250. set_key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  251. set_key.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  252. set_key.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  253. set_key.o: des_locl.h set_key.c
  254. str2key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
  255. str2key.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
  256. str2key.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  257. str2key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  258. str2key.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  259. str2key.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  260. str2key.o: des_locl.h str2key.c
  261. xcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  262. xcbc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  263. xcbc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  264. xcbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  265. xcbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  266. xcbc_enc.o: des_locl.h xcbc_enc.c