Makefile 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. #
  2. # "$Id: Makefile 8864 2011-07-19 04:49:30Z greg.ercolano $"
  3. #
  4. # PNG library makefile for the Fast Light Toolkit (FLTK).
  5. #
  6. # Copyright 1997-2011 by Easy Software Products.
  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 = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
  23. pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
  24. pngwtran.o pngmem.o pngerror.o pngpread.o
  25. LIBPNG = ../lib/libfltk_png$(LIBEXT)
  26. #
  27. # Make all of the targets...
  28. #
  29. all: $(LIBPNG)
  30. #
  31. # Clean all of the targets and object files...
  32. #
  33. clean:
  34. $(RM) $(OBJS)
  35. $(RM) $(LIBPNG)
  36. #
  37. # Install everything...
  38. #
  39. install: $(LIBPNG)
  40. echo "Installing libfltk_png$(LIBEXT) in $(libdir)..."
  41. -$(INSTALL_DIR) $(DESTDIR)$(libdir)
  42. $(INSTALL_LIB) $(LIBPNG) $(DESTDIR)$(libdir)
  43. $(RANLIB) $(DESTDIR)$(libdir)/libfltk_png$(LIBEXT)
  44. echo "Installing png headers in $(includedir)/FL/images..."
  45. -$(INSTALL_DIR) $(DESTDIR)$(includedir)/FL/images
  46. $(INSTALL_DATA) png.h $(DESTDIR)$(includedir)/FL/images
  47. $(INSTALL_DATA) pngconf.h $(DESTDIR)$(includedir)/FL/images
  48. $(INSTALL_DATA) pnglibconf.h $(DESTDIR)$(includedir)/FL/images
  49. #
  50. # Uninstall everything...
  51. #
  52. uninstall:
  53. echo "Uninstalling libfltk_png$(LIBEXT) in $(libdir)..."
  54. $(RM) $(DESTDIR)$(libdir)/libfltk_png$(LIBEXT)
  55. echo "Uninstalling png headers in $(includedir)/FL/images..."
  56. $(RM) $(DESTDIR)$(includedir)/FL/images/png.h
  57. $(RM) $(DESTDIR)$(includedir)/FL/images/pngconf.h
  58. $(RM) $(DESTDIR)$(includedir)/FL/images/pnglibconf.h
  59. #
  60. # libfltk_png.a
  61. #
  62. $(LIBPNG): $(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. #