Makefile 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. DIR=jpake
  2. TOP=../..
  3. CFLAGS= $(INCLUDES) $(CFLAG)
  4. LIB=$(TOP)/libcrypto.a
  5. LIBOBJ=jpake.o jpake_err.o
  6. LIBSRC=jpake.c jpake_err.c
  7. EXHEADER=jpake.h
  8. TEST=jpaketest.c
  9. top:
  10. (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
  11. all: lib
  12. lib: $(LIBOBJ)
  13. $(AR) $(LIB) $(LIBOBJ)
  14. $(RANLIB) $(LIB) || echo Never mind.
  15. @touch lib
  16. links:
  17. @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
  18. @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
  19. install:
  20. @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
  21. @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
  22. do \
  23. (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
  24. chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
  25. done;
  26. update: depend
  27. depend:
  28. @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
  29. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  30. dclean:
  31. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  32. mv -f Makefile.new $(MAKEFILE)
  33. clean:
  34. rm -f *.s *.o *.obj des lib tags core .pure .nfs* *.old *.bak fluff
  35. jpaketest: top jpaketest.c $(LIB)
  36. $(CC) $(CFLAGS) -Wall -Werror -g -o jpaketest jpaketest.c $(LIB)
  37. # DO NOT DELETE THIS LINE -- make depend depends on it.
  38. jpake.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
  39. jpake.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  40. jpake.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
  41. jpake.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  42. jpake.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  43. jpake.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
  44. jpake.o: ../../include/openssl/symhacks.h jpake.c jpake.h
  45. jpake_err.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
  46. jpake_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  47. jpake_err.o: ../../include/openssl/err.h ../../include/openssl/jpake.h
  48. jpake_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
  49. jpake_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  50. jpake_err.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
  51. jpake_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  52. jpake_err.o: jpake_err.c