Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #
  2. # OpenSSL/tools/Makefile
  3. #
  4. DIR= tools
  5. TOP= ..
  6. CC= cc
  7. INCLUDES= -I$(TOP) -I../../include
  8. CFLAG=-g
  9. MAKEFILE= Makefile
  10. CFLAGS= $(INCLUDES) $(CFLAG)
  11. GENERAL=Makefile
  12. TEST=
  13. APPS= c_rehash
  14. MISC_APPS= c_hash c_info c_issuer c_name
  15. all:
  16. install:
  17. @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
  18. @for i in $(APPS) ; \
  19. do \
  20. (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i.new; \
  21. chmod 755 $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i.new; \
  22. mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i ); \
  23. done;
  24. @for i in $(MISC_APPS) ; \
  25. do \
  26. (cp $$i $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i.new; \
  27. chmod 755 $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i.new; \
  28. mv -f $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i.new $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i ); \
  29. done;
  30. files:
  31. $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
  32. links:
  33. lint:
  34. tags:
  35. errors:
  36. depend:
  37. dclean:
  38. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  39. mv -f Makefile.new $(MAKEFILE)
  40. clean:
  41. rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  42. errors:
  43. # DO NOT DELETE THIS LINE -- make depend depends on it.