Makefile 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. $(ARX) $(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. depend:
  27. @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
  28. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  29. dclean:
  30. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  31. mv -f Makefile.new $(MAKEFILE)
  32. clean:
  33. rm -f *.s *.o *.obj des lib tags core .pure .nfs* *.old *.bak fluff
  34. jpaketest: top jpaketest.c $(LIB)
  35. $(CC) $(CFLAGS) -Wall -Werror -g -o jpaketest jpaketest.c $(LIB)
  36. # DO NOT DELETE THIS LINE -- make depend depends on it.
  37. jpake.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
  38. jpake.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  39. jpake.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
  40. jpake.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  41. jpake.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  42. jpake.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
  43. jpake.o: ../../include/openssl/symhacks.h jpake.c jpake.h
  44. jpake_err.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
  45. jpake_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  46. jpake_err.o: ../../include/openssl/err.h ../../include/openssl/jpake.h
  47. jpake_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
  48. jpake_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  49. jpake_err.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
  50. jpake_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  51. jpake_err.o: jpake_err.c