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