Makefile 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. #
  2. # "$Id: Makefile 8864 2011-07-19 04:49:30Z greg.ercolano $"
  3. #
  4. # GNU ZIP library makefile for the Fast Light Toolkit (FLTK).
  5. #
  6. # Copyright 1998-2011 by Bill Spitzak and others.
  7. #
  8. # This library is free software. Distribution and use rights are outlined in
  9. # the file "COPYING" which should have been included with this file. If this
  10. # file is missing or damaged, see the license at:
  11. #
  12. # http://www.fltk.org/COPYING.php
  13. #
  14. # Please report all bugs and problems on the following page:
  15. #
  16. # http://www.fltk.org/str.php
  17. #
  18. include ../makeinclude
  19. #
  20. # Object files...
  21. #
  22. OBJS = adler32.o compress.o crc32.o uncompr.o deflate.o \
  23. trees.o zutil.o inflate.o inftrees.o inffast.o \
  24. gzclose.o gzlib.o gzread.o gzwrite.o infback.o
  25. LIBZ = ../lib/libfltk_z$(LIBEXT)
  26. #
  27. # Make all targets...
  28. #
  29. all: $(LIBZ)
  30. #
  31. # Clean all targets and object files...
  32. #
  33. clean:
  34. $(RM) $(OBJS)
  35. $(RM) $(LIBZ)
  36. #
  37. # Install everything...
  38. #
  39. install: $(LIBZ)
  40. echo "Installing libfltk_z$(LIBEXT) in $(libdir)..."
  41. -$(INSTALL_DIR) $(DESTDIR)$(libdir)
  42. $(INSTALL_LIB) $(LIBZ) $(DESTDIR)$(libdir)
  43. $(RANLIB) $(DESTDIR)$(libdir)/libfltk_z$(LIBEXT)
  44. echo "Installing zlib headers in $(includedir)/FL/images..."
  45. -$(INSTALL_DIR) $(DESTDIR)$(includedir)/FL/images
  46. $(INSTALL_DATA) zconf.h $(DESTDIR)$(includedir)/FL/images
  47. $(INSTALL_DATA) zlib.h $(DESTDIR)$(includedir)/FL/images
  48. $(INSTALL_DATA) zutil.h $(DESTDIR)$(includedir)/FL/images
  49. #
  50. # Uninstall everything...
  51. #
  52. uninstall:
  53. echo "Uninstalling libfltk_z$(LIBEXT) in $(libdir)..."
  54. $(RM) $(libdir)/libfltk_z$(LIBEXT)
  55. echo "Uninstalling zlib headers in $(includedir)/FL/images..."
  56. $(RM) $(includedir)/FL/images/zconf.h
  57. $(RM) $(includedir)/FL/images/zlib.h
  58. $(RM) $(includedir)/FL/images/zutil.h
  59. #
  60. # libfltk_z.a
  61. #
  62. $(LIBZ): $(OBJS)
  63. echo Archiving $@...
  64. $(RM) $@
  65. $(LIBCOMMAND) $@ $(OBJS)
  66. $(RANLIB) $@
  67. #
  68. # Make dependencies...
  69. #
  70. depend: $(OBJS:.o=.c)
  71. makedepend -Y -I.. -f makedepend $(OBJS:.o=.c)
  72. include makedepend
  73. $(OBJS): ../makeinclude
  74. #
  75. # End of "$Id: Makefile 8864 2011-07-19 04:49:30Z greg.ercolano $".
  76. #