Makefile 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. # *************************************************************************
  2. # FLTK - DO NOT CHANGE when upgrading the JPEG library, unless required. *
  3. # *************************************************************************
  4. #
  5. # "$Id: Makefile 10626 2015-03-16 16:57:13Z AlbrechtS $"
  6. #
  7. # JPEG library makefile for the Fast Light Toolkit (FLTK).
  8. #
  9. # Copyright 1997-2011 by Bill Spitzak and others.
  10. #
  11. # This library is free software. Distribution and use rights are outlined in
  12. # the file "COPYING" which should have been included with this file. If this
  13. # file is missing or damaged, see the license at:
  14. #
  15. # http://www.fltk.org/COPYING.php
  16. #
  17. # Please report all bugs and problems on the following page:
  18. #
  19. # http://www.fltk.org/str.php
  20. #
  21. include ../makeinclude
  22. #
  23. # Object files...
  24. #
  25. OBJS = \
  26. jaricom.o \
  27. jcapimin.o \
  28. jcapistd.o \
  29. jcarith.o \
  30. jccoefct.o \
  31. jccolor.o \
  32. jcdctmgr.o \
  33. jchuff.o \
  34. jcinit.o \
  35. jcmainct.o \
  36. jcmarker.o \
  37. jcmaster.o \
  38. jcomapi.o \
  39. jcparam.o \
  40. jcprepct.o \
  41. jcsample.o \
  42. jctrans.o \
  43. jdapimin.o \
  44. jdapistd.o \
  45. jdarith.o \
  46. jdatadst.o \
  47. jdatasrc.o \
  48. jdcoefct.o \
  49. jdcolor.o \
  50. jddctmgr.o \
  51. jdhuff.o \
  52. jdinput.o \
  53. jdmainct.o \
  54. jdmarker.o \
  55. jdmaster.o \
  56. jdmerge.o \
  57. jdpostct.o \
  58. jdsample.o \
  59. jdtrans.o \
  60. jerror.o \
  61. jfdctflt.o \
  62. jfdctfst.o \
  63. jfdctint.o \
  64. jidctflt.o \
  65. jidctfst.o \
  66. jidctint.o \
  67. jmemmgr.o \
  68. jmemnobs.o \
  69. jquant1.o \
  70. jquant2.o \
  71. jutils.o
  72. LIBJPEG = ../lib/libfltk_jpeg$(LIBEXT)
  73. #
  74. # Make all targets...
  75. #
  76. all: $(LIBJPEG)
  77. #
  78. # Clean all targets and object files...
  79. #
  80. clean:
  81. $(RM) $(OBJS)
  82. $(RM) $(LIBJPEG)
  83. #
  84. # Install everything...
  85. #
  86. install: $(LIBJPEG)
  87. echo "Installing $(LIBJPEG) in $(libdir)..."
  88. -$(INSTALL_DIR) $(DESTDIR)$(libdir)
  89. $(INSTALL_LIB) $(LIBJPEG) $(DESTDIR)$(libdir)
  90. $(RANLIB) $(DESTDIR)$(libdir)/libfltk_jpeg$(LIBEXT)
  91. echo "Installing jpeg headers in $(includedir)/FL/images..."
  92. -$(INSTALL_DIR) $(DESTDIR)$(includedir)/FL/images
  93. $(INSTALL_DATA) jconfig.h $(DESTDIR)$(includedir)/FL/images
  94. $(INSTALL_DATA) jerror.h $(DESTDIR)$(includedir)/FL/images
  95. $(INSTALL_DATA) jmorecfg.h $(DESTDIR)$(includedir)/FL/images
  96. $(INSTALL_DATA) jpeglib.h $(DESTDIR)$(includedir)/FL/images
  97. #
  98. # Uninstall everything...
  99. #
  100. uninstall:
  101. echo "Uninstalling libfltk_jpeg$(LIBEXT) in $(libdir)..."
  102. $(RM) $(libdir)/libfltk_jpeg$(LIBEXT)
  103. echo "Uninstalling jpeg headers in $(includedir)/FL/images..."
  104. $(RM) $(includedir)/FL/images/jconfig.h
  105. $(RM) $(includedir)/FL/images/jerror.h
  106. $(RM) $(includedir)/FL/images/jmorecfg.h
  107. $(RM) $(includedir)/FL/images/jpeglib.h
  108. #
  109. # libfltk_jpeg.a
  110. #
  111. $(LIBJPEG): $(OBJS)
  112. echo Archiving $@...
  113. $(RM) $@
  114. $(LIBCOMMAND) $@ $(OBJS)
  115. $(RANLIB) $@
  116. #
  117. # Make dependencies...
  118. #
  119. depend: $(OBJS:.o=.c)
  120. makedepend -Y -I.. -f makedepend $(OBJS:.o=.c)
  121. include makedepend
  122. $(OBJS): ../makeinclude
  123. #
  124. # End of "$Id: Makefile 10626 2015-03-16 16:57:13Z AlbrechtS $".
  125. #