2004-07-05 18:12:39 +04:00
|
|
|
#
|
2005-02-25 00:55:12 +03:00
|
|
|
# "$Id$"
|
2004-07-05 18:12:39 +04:00
|
|
|
#
|
|
|
|
# JPEG library makefile for the Fast Light Toolkit (FLTK).
|
|
|
|
#
|
2011-02-15 18:25:53 +03:00
|
|
|
# Copyright 1997-2011 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:
|
|
|
|
#
|
|
|
|
# http://www.fltk.org/COPYING.php
|
2004-07-05 18:12:39 +04:00
|
|
|
#
|
2010-04-28 07:15:47 +04:00
|
|
|
# Please report all bugs and problems on the following page:
|
|
|
|
#
|
|
|
|
# http://www.fltk.org/str.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)..."
|
|
|
|
-$(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..."
|
2007-02-06 22:35:28 +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
|
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)..."
|
|
|
|
$(RM) $(libdir)/libfltk_jpeg$(LIBEXT)
|
2004-09-06 15:20:53 +04:00
|
|
|
echo "Uninstalling jpeg headers in $(includedir)/FL/images..."
|
|
|
|
$(RM) $(includedir)/FL/images/jconfig.h
|
|
|
|
$(RM) $(includedir)/FL/images/jerror.h
|
|
|
|
$(RM) $(includedir)/FL/images/jmorecfg.h
|
|
|
|
$(RM) $(includedir)/FL/images/jpeglib.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...
|
|
|
|
#
|
|
|
|
|
|
|
|
depend: $(OBJS:.o=.c)
|
|
|
|
makedepend -Y -I.. -f makedepend $(OBJS:.o=.c)
|
|
|
|
|
|
|
|
include makedepend
|
|
|
|
|
|
|
|
$(OBJS): ../makeinclude
|
|
|
|
|
|
|
|
#
|
2005-02-25 00:55:12 +03:00
|
|
|
# End of "$Id$".
|
2004-07-05 18:12:39 +04:00
|
|
|
#
|