Makefile 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. LIBNAME= libibmca
  2. SRC= hw_ibmca.c
  3. OBJ= hw_ibmca.o
  4. HEADER= hw_ibmca.h
  5. CC= gcc
  6. PIC= -fPIC
  7. CFLAGS= -g -I../../../include $(PIC) -DENGINE_DYNAMIC_SUPPORT -DFLAT_INC
  8. AR= ar r
  9. RANLIB= ranlib
  10. LIB= $(LIBNAME).a
  11. SHLIB= $(LIBNAME).so
  12. all:
  13. @echo 'Please choose a system to build on:'
  14. @echo ''
  15. @echo 'tru64: Tru64 Unix, Digital Unix, Digital OSF/1'
  16. @echo 'solaris: Solaris'
  17. @echo 'irix: IRIX'
  18. @echo 'hpux32: 32-bit HP/UX'
  19. @echo 'hpux64: 64-bit HP/UX'
  20. @echo 'aix: AIX'
  21. @echo 'gnu: Generic GNU-based system (gcc and GNU ld)'
  22. @echo ''
  23. FORCE.update:
  24. update: FORCE.update
  25. perl ../../../util/mkerr.pl -conf hw_ibmca.ec \
  26. -nostatic -staticloader -write hw_ibmca.c
  27. gnu: $(SHLIB).gnu
  28. tru64: $(SHLIB).tru64
  29. solaris: $(SHLIB).solaris
  30. irix: $(SHLIB).irix
  31. hpux32: $(SHLIB).hpux32
  32. hpux64: $(SHLIB).hpux64
  33. aix: $(SHLIB).aix
  34. $(LIB): $(OBJ)
  35. $(AR) $(LIB) $(OBJ)
  36. - $(RANLIB) $(LIB)
  37. LINK_SO= \
  38. ld -r -o $(LIBNAME).o $$ALLSYMSFLAGS $(LIB) && \
  39. (nm -Pg $(LIBNAME).o | grep ' [BDT] ' | cut -f1 -d' ' > $(LIBNAME).exp; \
  40. $$SHAREDCMD $$SHAREDFLAGS -o $(SHLIB) $(LIBNAME).o -L ../../.. -lcrypto -lc)
  41. $(SHLIB).gnu: $(LIB)
  42. ALLSYMSFLAGS='--whole-archive' \
  43. SHAREDFLAGS='-shared -Wl,-soname=$(SHLIB)' \
  44. SHAREDCMD='$(CC)'; \
  45. $(LINK_SO)
  46. touch $(SHLIB).gnu
  47. $(SHLIB).tru64: $(LIB)
  48. ALLSYMSFLAGS='-all' \
  49. SHAREDFLAGS='-shared' \
  50. SHAREDCMD='$(CC)'; \
  51. $(LINK_SO)
  52. touch $(SHLIB).tru64
  53. $(SHLIB).solaris: $(LIB)
  54. ALLSYMSFLAGS='-z allextract' \
  55. SHAREDFLAGS='-G -h $(SHLIB)' \
  56. SHAREDCMD='$(CC)'; \
  57. $(LINK_SO)
  58. touch $(SHLIB).solaris
  59. $(SHLIB).irix: $(LIB)
  60. ALLSYMSFLAGS='-all' \
  61. SHAREDFLAGS='-shared -Wl,-soname,$(SHLIB)' \
  62. SHAREDCMD='$(CC)'; \
  63. $(LINK_SO)
  64. touch $(SHLIB).irix
  65. $(SHLIB).hpux32: $(LIB)
  66. ALLSYMSFLAGS='-Fl' \
  67. SHAREDFLAGS='+vnocompatwarnings -b -z +s +h $(SHLIB)' \
  68. SHAREDCMD='/usr/ccs/bin/ld'; \
  69. $(LINK_SO)
  70. touch $(SHLIB).hpux32
  71. $(SHLIB).hpux64: $(LIB)
  72. ALLSYMSFLAGS='+forceload' \
  73. SHAREDFLAGS='-b -z +h $(SHLIB)' \
  74. SHAREDCMD='/usr/ccs/bin/ld'; \
  75. $(LINK_SO)
  76. touch $(SHLIB).hpux64
  77. $(SHLIB).aix: $(LIB)
  78. ALLSYMSFLAGS='-bnogc' \
  79. SHAREDFLAGS='-G -bE:$(LIBNAME).exp -bM:SRE' \
  80. SHAREDCMD='$(CC)'; \
  81. $(LINK_SO)
  82. touch $(SHLIB).aix
  83. depend:
  84. sed -e '/^# DO NOT DELETE.*/,$$d' < Makefile > Makefile.tmp
  85. echo '# DO NOT DELETE THIS LINE -- make depend depends on it.' >> Makefile.tmp
  86. gcc -M $(CFLAGS) $(SRC) >> Makefile.tmp
  87. perl ../../../util/clean-depend.pl < Makefile.tmp > Makefile.new
  88. rm -f Makefile.tmp Makefile
  89. mv Makefile.new Makefile
  90. # DO NOT DELETE THIS LINE -- make depend depends on it.
  91. rsaref.o: ../../../include/openssl/asn1.h ../../../include/openssl/bio.h
  92. rsaref.o: ../../../include/openssl/bn.h ../../../include/openssl/crypto.h
  93. rsaref.o: ../../../include/openssl/dh.h ../../../include/openssl/dsa.h
  94. rsaref.o: ../../../include/openssl/e_os2.h ../../../include/openssl/engine.h
  95. rsaref.o: ../../../include/openssl/err.h ../../../include/openssl/lhash.h
  96. rsaref.o: ../../../include/openssl/opensslconf.h
  97. rsaref.o: ../../../include/openssl/opensslv.h
  98. rsaref.o: ../../../include/openssl/ossl_typ.h ../../../include/openssl/rand.h
  99. rsaref.o: ../../../include/openssl/rsa.h ../../../include/openssl/safestack.h
  100. rsaref.o: ../../../include/openssl/stack.h ../../../include/openssl/symhacks.h
  101. rsaref.o: ../../../include/openssl/ui.h rsaref.c rsaref_err.c rsaref_err.h
  102. rsaref.o: source/des.h source/global.h source/md2.h source/md5.h source/rsa.h
  103. rsaref.o: source/rsaref.h