source: rtems-graphics-toolkit/fltk-1.1.10/jpeg/Makefile @ 513eea1

Last change on this file since 513eea1 was 513eea1, checked in by Joel Sherrill <joel.sherrill@…>, on 01/09/10 at 22:43:24

2010-01-08 Joel Sherrill <joel.sherrill@…>

fltk 1.1.10. imported

  • ORIGIN: Updated.
  • Property mode set to 100644
File size: 2.8 KB
Line 
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
26include ../makeinclude
27
28
29#
30# Object files...
31#
32
33OBJS    =       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
44LIBJPEG =       ../lib/libfltk_jpeg$(LIBEXT)
45
46
47#
48# Make all targets...
49#
50
51all:    $(LIBJPEG)
52
53
54#
55# Clean all targets and object files...
56#
57
58clean:
59        $(RM) $(OBJS)
60        $(RM) $(LIBJPEG)
61
62
63#
64# Install everything...
65#
66
67install:        $(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
84uninstall:
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
109depend: $(OBJS:.o=.c)
110        makedepend -Y -I.. -f makedepend $(OBJS:.o=.c)
111
112include makedepend
113
114$(OBJS):        ../makeinclude
115
116#
117# End of "$Id$".
118#
Note: See TracBrowser for help on using the repository browser.