Makefile 2.8 KB

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