2015-03-16 19:57:13 +03:00
|
|
|
# *************************************************************************
|
|
|
|
# FLTK - DO NOT CHANGE when upgrading the JPEG library, unless required. *
|
|
|
|
# *************************************************************************
|
2004-07-05 18:12:39 +04:00
|
|
|
#
|
|
|
|
# JPEG library makefile for the Fast Light Toolkit (FLTK).
|
|
|
|
#
|
2019-01-22 00:28:14 +03:00
|
|
|
# Copyright 1997-2024 by Bill Spitzak and others.
|
2004-07-05 18:12:39 +04:00
|
|
|
#
|
2011-07-19 08:49:30 +04:00
|
|
|
# This library is free software. Distribution and use rights are outlined in
|
|
|
|
# the file "COPYING" which should have been included with this file. If this
|
|
|
|
# file is missing or damaged, see the license at:
|
|
|
|
#
|
2020-07-01 19:03:10 +03:00
|
|
|
# https://www.fltk.org/COPYING.php
|
2004-07-05 18:12:39 +04:00
|
|
|
#
|
2020-07-01 19:03:10 +03:00
|
|
|
# Please see the following page on how to report bugs and issues:
|
2010-04-28 07:15:47 +04:00
|
|
|
#
|
2020-07-01 19:03:10 +03:00
|
|
|
# https://www.fltk.org/bugs.php
|
2004-07-05 18:12:39 +04:00
|
|
|
#
|
|
|
|
|
|
|
|
include ../makeinclude
|
|
|
|
|
|
|
|
#
|
|
|
|
# Object files...
|
|
|
|
#
|
|
|
|
|
2011-02-15 18:25:53 +03:00
|
|
|
OBJS = \
|
|
|
|
jaricom.o \
|
|
|
|
jcapimin.o \
|
|
|
|
jcapistd.o \
|
|
|
|
jcarith.o \
|
|
|
|
jccoefct.o \
|
|
|
|
jccolor.o \
|
|
|
|
jcdctmgr.o \
|
|
|
|
jchuff.o \
|
|
|
|
jcinit.o \
|
|
|
|
jcmainct.o \
|
|
|
|
jcmarker.o \
|
|
|
|
jcmaster.o \
|
|
|
|
jcomapi.o \
|
|
|
|
jcparam.o \
|
|
|
|
jcprepct.o \
|
|
|
|
jcsample.o \
|
|
|
|
jctrans.o \
|
|
|
|
jdapimin.o \
|
|
|
|
jdapistd.o \
|
|
|
|
jdarith.o \
|
|
|
|
jdatadst.o \
|
|
|
|
jdatasrc.o \
|
|
|
|
jdcoefct.o \
|
|
|
|
jdcolor.o \
|
|
|
|
jddctmgr.o \
|
|
|
|
jdhuff.o \
|
|
|
|
jdinput.o \
|
|
|
|
jdmainct.o \
|
|
|
|
jdmarker.o \
|
|
|
|
jdmaster.o \
|
|
|
|
jdmerge.o \
|
|
|
|
jdpostct.o \
|
|
|
|
jdsample.o \
|
|
|
|
jdtrans.o \
|
|
|
|
jerror.o \
|
|
|
|
jfdctflt.o \
|
|
|
|
jfdctfst.o \
|
|
|
|
jfdctint.o \
|
|
|
|
jidctflt.o \
|
|
|
|
jidctfst.o \
|
|
|
|
jidctint.o \
|
|
|
|
jmemmgr.o \
|
|
|
|
jmemnobs.o \
|
|
|
|
jquant1.o \
|
|
|
|
jquant2.o \
|
|
|
|
jutils.o
|
2004-07-05 18:12:39 +04:00
|
|
|
|
2004-07-29 22:13:11 +04:00
|
|
|
LIBJPEG = ../lib/libfltk_jpeg$(LIBEXT)
|
2004-07-23 23:26:27 +04:00
|
|
|
|
2004-07-05 18:12:39 +04:00
|
|
|
#
|
|
|
|
# Make all targets...
|
|
|
|
#
|
|
|
|
|
2004-07-23 23:26:27 +04:00
|
|
|
all: $(LIBJPEG)
|
2004-07-05 18:12:39 +04:00
|
|
|
|
|
|
|
#
|
|
|
|
# Clean all targets and object files...
|
|
|
|
#
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) $(OBJS)
|
2004-07-23 23:26:27 +04:00
|
|
|
$(RM) $(LIBJPEG)
|
2004-07-05 18:12:39 +04:00
|
|
|
|
2004-07-06 04:18:49 +04:00
|
|
|
#
|
|
|
|
# Install everything...
|
|
|
|
#
|
|
|
|
|
2007-02-06 22:35:28 +03:00
|
|
|
install: $(LIBJPEG)
|
|
|
|
echo "Installing $(LIBJPEG) in $(libdir)..."
|
2019-01-22 00:28:14 +03:00
|
|
|
-$(INSTALL_DIR) "$(DESTDIR)$(libdir)"
|
|
|
|
$(INSTALL_LIB) $(LIBJPEG) "$(DESTDIR)$(libdir)"
|
|
|
|
$(RANLIB) "$(DESTDIR)$(libdir)/libfltk_jpeg$(LIBEXT)"
|
2004-09-06 15:20:53 +04:00
|
|
|
echo "Installing jpeg headers in $(includedir)/FL/images..."
|
2019-01-22 00:28:14 +03:00
|
|
|
-$(INSTALL_DIR) "$(DESTDIR)$(includedir)/FL/images"
|
|
|
|
$(INSTALL_DATA) jconfig.h "$(DESTDIR)$(includedir)/FL/images"
|
|
|
|
$(INSTALL_DATA) jerror.h "$(DESTDIR)$(includedir)/FL/images"
|
|
|
|
$(INSTALL_DATA) jmorecfg.h "$(DESTDIR)$(includedir)/FL/images"
|
|
|
|
$(INSTALL_DATA) jpeglib.h "$(DESTDIR)$(includedir)/FL/images"
|
|
|
|
$(INSTALL_DATA) fltk_jpeg_prefix.h "$(DESTDIR)$(includedir)/FL/images"
|
2004-07-06 04:18:49 +04:00
|
|
|
|
|
|
|
#
|
|
|
|
# Uninstall everything...
|
|
|
|
#
|
|
|
|
|
|
|
|
uninstall:
|
2004-07-29 22:13:11 +04:00
|
|
|
echo "Uninstalling libfltk_jpeg$(LIBEXT) in $(libdir)..."
|
2019-01-22 00:28:14 +03:00
|
|
|
$(RM) "$(libdir)/libfltk_jpeg$(LIBEXT)"
|
2004-09-06 15:20:53 +04:00
|
|
|
echo "Uninstalling jpeg headers in $(includedir)/FL/images..."
|
2019-01-22 00:28:14 +03:00
|
|
|
$(RM) "$(includedir)/FL/images/jconfig.h"
|
|
|
|
$(RM) "$(includedir)/FL/images/jerror.h"
|
|
|
|
$(RM) "$(includedir)/FL/images/jmorecfg.h"
|
|
|
|
$(RM) "$(includedir)/FL/images/jpeglib.h"
|
|
|
|
$(RM) "$(includedir)/FL/images/fltk_jpeg_prefix.h"
|
2004-07-06 04:18:49 +04:00
|
|
|
|
2004-07-05 18:12:39 +04:00
|
|
|
#
|
2004-07-29 22:13:11 +04:00
|
|
|
# libfltk_jpeg.a
|
2004-07-05 18:12:39 +04:00
|
|
|
#
|
|
|
|
|
2004-07-23 23:26:27 +04:00
|
|
|
$(LIBJPEG): $(OBJS)
|
2004-07-05 18:12:39 +04:00
|
|
|
echo Archiving $@...
|
|
|
|
$(RM) $@
|
2004-07-23 23:26:27 +04:00
|
|
|
$(LIBCOMMAND) $@ $(OBJS)
|
2004-07-05 18:12:39 +04:00
|
|
|
$(RANLIB) $@
|
|
|
|
|
|
|
|
#
|
|
|
|
# Make dependencies...
|
|
|
|
#
|
|
|
|
|
2019-01-22 00:28:14 +03:00
|
|
|
depend: $(OBJS:.o=.c)
|
2021-06-10 13:32:19 +03:00
|
|
|
makedepend -Y -I.. -f makedepend -w 20 $(OBJS:.o=.c)
|
|
|
|
echo "# DO NOT DELETE THIS LINE -- make depend depends on it." > makedepend.tmp
|
|
|
|
echo "" >> makedepend.tmp
|
|
|
|
grep '^[a-zA-Z]' makedepend | ( LC_ALL=C sort -u -f >> makedepend.tmp; )
|
|
|
|
mv makedepend.tmp makedepend
|
2004-07-05 18:12:39 +04:00
|
|
|
|
|
|
|
include makedepend
|
|
|
|
|
|
|
|
$(OBJS): ../makeinclude
|