You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

112 lines
2.5KB

  1. #
  2. # "$Id: Makefile 8481 2011-02-27 15:50:40Z manolo $"
  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; you can redistribute it and/or
  9. # modify it under the terms of the GNU Library General Public
  10. # License as published by the Free Software Foundation; either
  11. # version 2 of the License, or (at your option) any later version.
  12. #
  13. # This library is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. # Library General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU Library General Public
  19. # License along with this library; if not, write to the Free Software
  20. # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
  21. # USA.
  22. #
  23. # Please report all bugs and problems on the following page:
  24. #
  25. # http://www.fltk.org/str.php
  26. #
  27. include ../makeinclude
  28. #
  29. # Object files...
  30. #
  31. OBJS = adler32.o compress.o crc32.o uncompr.o deflate.o \
  32. trees.o zutil.o inflate.o inftrees.o inffast.o \
  33. gzclose.o gzlib.o gzread.o gzwrite.o infback.o
  34. LIBZ = ../lib/libfltk_z$(LIBEXT)
  35. #
  36. # Make all targets...
  37. #
  38. all: $(LIBZ)
  39. #
  40. # Clean all targets and object files...
  41. #
  42. clean:
  43. $(RM) $(OBJS)
  44. $(RM) $(LIBZ)
  45. #
  46. # Install everything...
  47. #
  48. install: $(LIBZ)
  49. echo "Installing libfltk_z$(LIBEXT) in $(libdir)..."
  50. -$(INSTALL_DIR) $(DESTDIR)$(libdir)
  51. $(INSTALL_LIB) $(LIBZ) $(DESTDIR)$(libdir)
  52. $(RANLIB) $(DESTDIR)$(libdir)/libfltk_z$(LIBEXT)
  53. echo "Installing zlib headers in $(includedir)/FL/images..."
  54. -$(INSTALL_DIR) $(DESTDIR)$(includedir)/FL/images
  55. $(INSTALL_DATA) zconf.h $(DESTDIR)$(includedir)/FL/images
  56. $(INSTALL_DATA) zlib.h $(DESTDIR)$(includedir)/FL/images
  57. $(INSTALL_DATA) zutil.h $(DESTDIR)$(includedir)/FL/images
  58. #
  59. # Uninstall everything...
  60. #
  61. uninstall:
  62. echo "Uninstalling libfltk_z$(LIBEXT) in $(libdir)..."
  63. $(RM) $(libdir)/libfltk_z$(LIBEXT)
  64. echo "Uninstalling zlib headers in $(includedir)/FL/images..."
  65. $(RM) $(includedir)/FL/images/zconf.h
  66. $(RM) $(includedir)/FL/images/zlib.h
  67. $(RM) $(includedir)/FL/images/zutil.h
  68. #
  69. # libfltk_z.a
  70. #
  71. $(LIBZ): $(OBJS)
  72. echo Archiving $@...
  73. $(RM) $@
  74. $(LIBCOMMAND) $@ $(OBJS)
  75. $(RANLIB) $@
  76. #
  77. # Make dependencies...
  78. #
  79. depend: $(OBJS:.o=.c)
  80. makedepend -Y -I.. -f makedepend $(OBJS:.o=.c)
  81. include makedepend
  82. $(OBJS): ../makeinclude
  83. #
  84. # End of "$Id: Makefile 8481 2011-02-27 15:50:40Z manolo $".
  85. #