Debian Codegraph @

jpeg/Makefile

raw symbols SCIP
1 # *************************************************************************
2 # FLTK - DO NOT CHANGE when upgrading the JPEG library, unless required. *
3 # *************************************************************************
4 #
5 # JPEG library makefile for the Fast Light Toolkit (FLTK).
6 #
7 # Copyright 1997-2024 by Bill Spitzak and others.
8 #
9 # This library is free software. Distribution and use rights are outlined in
10 # the file "COPYING" which should have been included with this file. If this
11 # file is missing or damaged, see the license at:
12 #
13 # https://www.fltk.org/COPYING.php
14 #
15 # Please see the following page on how to report bugs and issues:
16 #
17 # https://www.fltk.org/bugs.php
18 #
19
20 include ../makeinclude
21
22 #
23 # Object files...
24 #
25
26 OBJS = \
27 jaricom.o \
28 jcapimin.o \
29 jcapistd.o \
30 jcarith.o \
31 jccoefct.o \
32 jccolor.o \
33 jcdctmgr.o \
34 jchuff.o \
35 jcinit.o \
36 jcmainct.o \
37 jcmarker.o \
38 jcmaster.o \
39 jcomapi.o \
40 jcparam.o \
41 jcprepct.o \
42 jcsample.o \
43 jctrans.o \
44 jdapimin.o \
45 jdapistd.o \
46 jdarith.o \
47 jdatadst.o \
48 jdatasrc.o \
49 jdcoefct.o \
50 jdcolor.o \
51 jddctmgr.o \
52 jdhuff.o \
53 jdinput.o \
54 jdmainct.o \
55 jdmarker.o \
56 jdmaster.o \
57 jdmerge.o \
58 jdpostct.o \
59 jdsample.o \
60 jdtrans.o \
61 jerror.o \
62 jfdctflt.o \
63 jfdctfst.o \
64 jfdctint.o \
65 jidctflt.o \
66 jidctfst.o \
67 jidctint.o \
68 jmemmgr.o \
69 jmemnobs.o \
70 jquant1.o \
71 jquant2.o \
72 jutils.o
73
74 LIBJPEG = ../lib/libfltk_jpeg$(LIBEXT)
75
76 #
77 # Make all targets...
78 #
79
80 all: $(LIBJPEG)
81
82 #
83 # Clean all targets and object files...
84 #
85
86 clean:
87 $(RM) $(OBJS)
88 $(RM) $(LIBJPEG)
89
90 #
91 # Install everything...
92 #
93
94 install: $(LIBJPEG)
95 echo "Installing $(LIBJPEG) in $(libdir)..."
96 -$(INSTALL_DIR) "$(DESTDIR)$(libdir)"
97 $(INSTALL_LIB) $(LIBJPEG) "$(DESTDIR)$(libdir)"
98 $(RANLIB) "$(DESTDIR)$(libdir)/libfltk_jpeg$(LIBEXT)"
99 echo "Installing jpeg headers in $(includedir)/FL/images..."
100 -$(INSTALL_DIR) "$(DESTDIR)$(includedir)/FL/images"
101 $(INSTALL_DATA) jconfig.h "$(DESTDIR)$(includedir)/FL/images"
102 $(INSTALL_DATA) jerror.h "$(DESTDIR)$(includedir)/FL/images"
103 $(INSTALL_DATA) jmorecfg.h "$(DESTDIR)$(includedir)/FL/images"
104 $(INSTALL_DATA) jpeglib.h "$(DESTDIR)$(includedir)/FL/images"
105 $(INSTALL_DATA) fltk_jpeg_prefix.h "$(DESTDIR)$(includedir)/FL/images"
106
107 #
108 # Uninstall everything...
109 #
110
111 uninstall:
112 echo "Uninstalling libfltk_jpeg$(LIBEXT) in $(libdir)..."
113 $(RM) "$(libdir)/libfltk_jpeg$(LIBEXT)"
114 echo "Uninstalling jpeg headers in $(includedir)/FL/images..."
115 $(RM) "$(includedir)/FL/images/jconfig.h"
116 $(RM) "$(includedir)/FL/images/jerror.h"
117 $(RM) "$(includedir)/FL/images/jmorecfg.h"
118 $(RM) "$(includedir)/FL/images/jpeglib.h"
119 $(RM) "$(includedir)/FL/images/fltk_jpeg_prefix.h"
120
121 #
122 # libfltk_jpeg.a
123 #
124
125 $(LIBJPEG): $(OBJS)
126 echo Archiving $@...
127 $(RM) $@
128 $(LIBCOMMAND) $@ $(OBJS)
129 $(RANLIB) $@
130
131 #
132 # Make dependencies...
133 #
134
135 depend: $(OBJS:.o=.c)
136 makedepend -Y -I.. -f makedepend -w 20 $(OBJS:.o=.c)
137 echo "# DO NOT DELETE THIS LINE -- make depend depends on it." > makedepend.tmp
138 echo "" >> makedepend.tmp
139 grep '^[a-zA-Z]' makedepend | ( LC_ALL=C sort -u -f >> makedepend.tmp; )
140 mv makedepend.tmp makedepend
141
142 include makedepend
143
144 $(OBJS): ../makeinclude