Makefile 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. #
  2. # crypto/camellia/Makefile
  3. #
  4. DIR= camellia
  5. TOP= ../..
  6. CC= cc
  7. CPP= $(CC) -E
  8. INCLUDES=
  9. CFLAG=-g
  10. MAKEFILE= Makefile
  11. AR= ar r
  12. CAMELLIA_ASM_OBJ=
  13. CFLAGS= $(INCLUDES) $(CFLAG)
  14. ASFLAGS= $(INCLUDES) $(ASFLAG)
  15. AFLAGS= $(ASFLAGS)
  16. GENERAL=Makefile
  17. #TEST=camelliatest.c
  18. APPS=
  19. LIB=$(TOP)/libcrypto.a
  20. LIBSRC=camellia.c cmll_misc.c cmll_ecb.c cmll_cbc.c cmll_ofb.c \
  21. cmll_cfb.c cmll_ctr.c
  22. LIBOBJ= camellia.o cmll_misc.o cmll_ecb.o cmll_cbc.o cmll_ofb.o \
  23. cmll_cfb.o cmll_ctr.o $(CAMELLIA_ASM_OBJ)
  24. SRC= $(LIBSRC)
  25. EXHEADER= camellia.h
  26. HEADER= cmll_locl.h $(EXHEADER)
  27. ALL= $(GENERAL) $(SRC) $(HEADER)
  28. top:
  29. (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
  30. all: lib
  31. lib: $(LIBOBJ)
  32. $(ARX) $(LIB) $(LIBOBJ)
  33. $(RANLIB) $(LIB) || echo Never mind.
  34. @touch lib
  35. $(LIBOBJ): $(LIBSRC)
  36. files:
  37. $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
  38. links:
  39. @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
  40. @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
  41. @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
  42. install:
  43. @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
  44. @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
  45. do \
  46. (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
  47. chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
  48. done;
  49. tags:
  50. ctags $(SRC)
  51. tests:
  52. lint:
  53. lint -DLINT $(INCLUDES) $(SRC)>fluff
  54. depend:
  55. @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
  56. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  57. dclean:
  58. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  59. mv -f Makefile.new $(MAKEFILE)
  60. clean:
  61. rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  62. # DO NOT DELETE THIS LINE -- make depend depends on it.
  63. camellia.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  64. camellia.o: camellia.c camellia.h cmll_locl.h
  65. cmll_cbc.o: ../../include/openssl/camellia.h ../../include/openssl/e_os2.h
  66. cmll_cbc.o: ../../include/openssl/opensslconf.h cmll_cbc.c cmll_locl.h
  67. cmll_cfb.o: ../../e_os.h ../../include/openssl/camellia.h
  68. cmll_cfb.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  69. cmll_cfb.o: cmll_cfb.c cmll_locl.h
  70. cmll_ctr.o: ../../include/openssl/camellia.h ../../include/openssl/e_os2.h
  71. cmll_ctr.o: ../../include/openssl/opensslconf.h cmll_ctr.c cmll_locl.h
  72. cmll_ecb.o: ../../include/openssl/camellia.h ../../include/openssl/e_os2.h
  73. cmll_ecb.o: ../../include/openssl/opensslconf.h cmll_ecb.c cmll_locl.h
  74. cmll_misc.o: ../../include/openssl/camellia.h ../../include/openssl/crypto.h
  75. cmll_misc.o: ../../include/openssl/e_os2.h ../../include/openssl/fips.h
  76. cmll_misc.o: ../../include/openssl/opensslconf.h
  77. cmll_misc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  78. cmll_misc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  79. cmll_misc.o: ../../include/openssl/symhacks.h cmll_locl.h cmll_misc.c
  80. cmll_ofb.o: ../../include/openssl/camellia.h ../../include/openssl/e_os2.h
  81. cmll_ofb.o: ../../include/openssl/opensslconf.h cmll_locl.h cmll_ofb.c