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.

158 lines
3.1KB

  1. #
  2. # "$Id: Makefile 8425 2011-02-15 15:25:53Z mike $"
  3. #
  4. # JPEG library makefile for the Fast Light Toolkit (FLTK).
  5. #
  6. # Copyright 1997-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 = \
  32. jaricom.o \
  33. jcapimin.o \
  34. jcapistd.o \
  35. jcarith.o \
  36. jccoefct.o \
  37. jccolor.o \
  38. jcdctmgr.o \
  39. jchuff.o \
  40. jcinit.o \
  41. jcmainct.o \
  42. jcmarker.o \
  43. jcmaster.o \
  44. jcomapi.o \
  45. jcparam.o \
  46. jcprepct.o \
  47. jcsample.o \
  48. jctrans.o \
  49. jdapimin.o \
  50. jdapistd.o \
  51. jdarith.o \
  52. jdatadst.o \
  53. jdatasrc.o \
  54. jdcoefct.o \
  55. jdcolor.o \
  56. jddctmgr.o \
  57. jdhuff.o \
  58. jdinput.o \
  59. jdmainct.o \
  60. jdmarker.o \
  61. jdmaster.o \
  62. jdmerge.o \
  63. jdpostct.o \
  64. jdsample.o \
  65. jdtrans.o \
  66. jerror.o \
  67. jfdctflt.o \
  68. jfdctfst.o \
  69. jfdctint.o \
  70. jidctflt.o \
  71. jidctfst.o \
  72. jidctint.o \
  73. jmemmgr.o \
  74. jmemnobs.o \
  75. jquant1.o \
  76. jquant2.o \
  77. jutils.o
  78. LIBJPEG = ../lib/libfltk_jpeg$(LIBEXT)
  79. #
  80. # Make all targets...
  81. #
  82. all: $(LIBJPEG)
  83. #
  84. # Clean all targets and object files...
  85. #
  86. clean:
  87. $(RM) $(OBJS)
  88. $(RM) $(LIBJPEG)
  89. #
  90. # Install everything...
  91. #
  92. install: $(LIBJPEG)
  93. echo "Installing $(LIBJPEG) in $(libdir)..."
  94. -$(INSTALL_DIR) $(DESTDIR)$(libdir)
  95. $(INSTALL_LIB) $(LIBJPEG) $(DESTDIR)$(libdir)
  96. $(RANLIB) $(DESTDIR)$(libdir)/libfltk_jpeg$(LIBEXT)
  97. echo "Installing jpeg headers in $(includedir)/FL/images..."
  98. -$(INSTALL_DIR) $(DESTDIR)$(includedir)/FL/images
  99. $(INSTALL_DATA) jconfig.h $(DESTDIR)$(includedir)/FL/images
  100. $(INSTALL_DATA) jerror.h $(DESTDIR)$(includedir)/FL/images
  101. $(INSTALL_DATA) jmorecfg.h $(DESTDIR)$(includedir)/FL/images
  102. $(INSTALL_DATA) jpeglib.h $(DESTDIR)$(includedir)/FL/images
  103. #
  104. # Uninstall everything...
  105. #
  106. uninstall:
  107. echo "Uninstalling libfltk_jpeg$(LIBEXT) in $(libdir)..."
  108. $(RM) $(libdir)/libfltk_jpeg$(LIBEXT)
  109. echo "Uninstalling jpeg headers in $(includedir)/FL/images..."
  110. $(RM) $(includedir)/FL/images/jconfig.h
  111. $(RM) $(includedir)/FL/images/jerror.h
  112. $(RM) $(includedir)/FL/images/jmorecfg.h
  113. $(RM) $(includedir)/FL/images/jpeglib.h
  114. #
  115. # libfltk_jpeg.a
  116. #
  117. $(LIBJPEG): $(OBJS)
  118. echo Archiving $@...
  119. $(RM) $@
  120. $(LIBCOMMAND) $@ $(OBJS)
  121. $(RANLIB) $@
  122. #
  123. # Make dependencies...
  124. #
  125. depend: $(OBJS:.o=.c)
  126. makedepend -Y -I.. -f makedepend $(OBJS:.o=.c)
  127. include makedepend
  128. $(OBJS): ../makeinclude
  129. #
  130. # End of "$Id: Makefile 8425 2011-02-15 15:25:53Z mike $".
  131. #