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