2
0

Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. rm -f c_rehash
  41. clean:
  42. rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  43. errors:
  44. # DO NOT DELETE THIS LINE -- make depend depends on it.