OSDN Git Service

・#26997 DTXViewer023 のソースコード一式を追加。変更点は以下の通り。
[dtxmania/dtxmania.git] / @jpeglibソリューション / jpeg-8c / makefile.ansi
1 # Makefile for Independent JPEG Group's software\r
2 \r
3 # This makefile is suitable for Unix-like systems with ANSI-capable compilers.\r
4 # If you have a non-ANSI compiler, makefile.unix is a better starting point.\r
5 \r
6 # Read installation instructions before saying "make" !!\r
7 \r
8 # The name of your C compiler:\r
9 CC= cc\r
10 \r
11 # You may need to adjust these cc options:\r
12 CFLAGS= -O\r
13 # Generally, we recommend defining any configuration symbols in jconfig.h,\r
14 # NOT via -D switches here.\r
15 \r
16 # Link-time cc options:\r
17 LDFLAGS= \r
18 \r
19 # To link any special libraries, add the necessary -l commands here.\r
20 LDLIBS= \r
21 \r
22 # Put here the object file name for the correct system-dependent memory\r
23 # manager file.  For Unix this is usually jmemnobs.o, but you may want\r
24 # to use jmemansi.o or jmemname.o if you have limited swap space.\r
25 SYSDEPMEM= jmemnobs.o\r
26 \r
27 # miscellaneous OS-dependent stuff\r
28 # linker\r
29 LN= $(CC)\r
30 # file deletion command\r
31 RM= rm -f\r
32 # library (.a) file creation command\r
33 AR= ar rc\r
34 # second step in .a creation (use "touch" if not needed)\r
35 AR2= ranlib\r
36 \r
37 # End of configurable options.\r
38 \r
39 \r
40 # source files: JPEG library proper\r
41 LIBSOURCES= jaricom.c jcapimin.c jcapistd.c jcarith.c jccoefct.c jccolor.c \\r
42         jcdctmgr.c jchuff.c jcinit.c jcmainct.c jcmarker.c jcmaster.c \\r
43         jcomapi.c jcparam.c jcprepct.c jcsample.c jctrans.c jdapimin.c \\r
44         jdapistd.c jdarith.c jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c \\r
45         jddctmgr.c jdhuff.c jdinput.c jdmainct.c jdmarker.c jdmaster.c \\r
46         jdmerge.c jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c \\r
47         jfdctfst.c jfdctint.c jidctflt.c jidctfst.c jidctint.c jquant1.c \\r
48         jquant2.c jutils.c jmemmgr.c\r
49 # memmgr back ends: compile only one of these into a working library\r
50 SYSDEPSOURCES= jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemmac.c\r
51 # source files: cjpeg/djpeg/jpegtran applications, also rdjpgcom/wrjpgcom\r
52 APPSOURCES= cjpeg.c djpeg.c jpegtran.c rdjpgcom.c wrjpgcom.c cdjpeg.c \\r
53         rdcolmap.c rdswitch.c transupp.c rdppm.c wrppm.c rdgif.c wrgif.c \\r
54         rdtarga.c wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c\r
55 SOURCES= $(LIBSOURCES) $(SYSDEPSOURCES) $(APPSOURCES)\r
56 # files included by source files\r
57 INCLUDES= jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h jpegint.h \\r
58         jpeglib.h jversion.h cdjpeg.h cderror.h transupp.h\r
59 # documentation, test, and support files\r
60 DOCS= README install.txt usage.txt cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 \\r
61         wrjpgcom.1 wizard.txt example.c libjpeg.txt structure.txt \\r
62         coderules.txt filelist.txt change.log\r
63 MKFILES= configure Makefile.in makefile.ansi makefile.unix makefile.bcc \\r
64         makefile.mc6 makefile.dj makefile.wat makefile.vc makejdsw.vc6 \\r
65         makeadsw.vc6 makejdep.vc6 makejdsp.vc6 makejmak.vc6 makecdep.vc6 \\r
66         makecdsp.vc6 makecmak.vc6 makeddep.vc6 makeddsp.vc6 makedmak.vc6 \\r
67         maketdep.vc6 maketdsp.vc6 maketmak.vc6 makerdep.vc6 makerdsp.vc6 \\r
68         makermak.vc6 makewdep.vc6 makewdsp.vc6 makewmak.vc6 makejsln.v10 \\r
69         makeasln.v10 makejvcx.v10 makejfil.v10 makecvcx.v10 makecfil.v10 \\r
70         makedvcx.v10 makedfil.v10 maketvcx.v10 maketfil.v10 makervcx.v10 \\r
71         makerfil.v10 makewvcx.v10 makewfil.v10 makeproj.mac makcjpeg.st \\r
72         makdjpeg.st makljpeg.st maktjpeg.st makefile.manx makefile.sas \\r
73         makefile.mms makefile.vms makvms.opt\r
74 CONFIGFILES= jconfig.cfg jconfig.bcc jconfig.mc6 jconfig.dj jconfig.wat \\r
75         jconfig.vc jconfig.mac jconfig.st jconfig.manx jconfig.sas \\r
76         jconfig.vms\r
77 CONFIGUREFILES= config.guess config.sub install-sh ltmain.sh depcomp missing\r
78 OTHERFILES= jconfig.txt ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm \\r
79         libjpeg.map\r
80 TESTFILES= testorig.jpg testimg.ppm testimg.bmp testimg.jpg testprog.jpg \\r
81         testimgp.jpg\r
82 DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) \\r
83         $(CONFIGUREFILES) $(OTHERFILES) $(TESTFILES)\r
84 # library object files common to compression and decompression\r
85 COMOBJECTS= jaricom.o jcomapi.o jutils.o jerror.o jmemmgr.o $(SYSDEPMEM)\r
86 # compression library object files\r
87 CLIBOBJECTS= jcapimin.o jcapistd.o jcarith.o jctrans.o jcparam.o \\r
88         jdatadst.o jcinit.o jcmaster.o jcmarker.o jcmainct.o jcprepct.o \\r
89         jccoefct.o jccolor.o jcsample.o jchuff.o jcdctmgr.o jfdctfst.o \\r
90         jfdctflt.o jfdctint.o\r
91 # decompression library object files\r
92 DLIBOBJECTS= jdapimin.o jdapistd.o jdarith.o jdtrans.o jdatasrc.o \\r
93         jdmaster.o jdinput.o jdmarker.o jdhuff.o jdmainct.o \\r
94         jdcoefct.o jdpostct.o jddctmgr.o jidctfst.o jidctflt.o \\r
95         jidctint.o jdsample.o jdcolor.o jquant1.o jquant2.o jdmerge.o\r
96 # These objectfiles are included in libjpeg.a\r
97 LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)\r
98 # object files for sample applications (excluding library files)\r
99 COBJECTS= cjpeg.o rdppm.o rdgif.o rdtarga.o rdrle.o rdbmp.o rdswitch.o \\r
100         cdjpeg.o\r
101 DOBJECTS= djpeg.o wrppm.o wrgif.o wrtarga.o wrrle.o wrbmp.o rdcolmap.o \\r
102         cdjpeg.o\r
103 TROBJECTS= jpegtran.o rdswitch.o cdjpeg.o transupp.o\r
104 \r
105 \r
106 all: libjpeg.a cjpeg djpeg jpegtran rdjpgcom wrjpgcom\r
107 \r
108 libjpeg.a: $(LIBOBJECTS)\r
109         $(RM) libjpeg.a\r
110         $(AR) libjpeg.a  $(LIBOBJECTS)\r
111         $(AR2) libjpeg.a\r
112 \r
113 cjpeg: $(COBJECTS) libjpeg.a\r
114         $(LN) $(LDFLAGS) -o cjpeg $(COBJECTS) libjpeg.a $(LDLIBS)\r
115 \r
116 djpeg: $(DOBJECTS) libjpeg.a\r
117         $(LN) $(LDFLAGS) -o djpeg $(DOBJECTS) libjpeg.a $(LDLIBS)\r
118 \r
119 jpegtran: $(TROBJECTS) libjpeg.a\r
120         $(LN) $(LDFLAGS) -o jpegtran $(TROBJECTS) libjpeg.a $(LDLIBS)\r
121 \r
122 rdjpgcom: rdjpgcom.o\r
123         $(LN) $(LDFLAGS) -o rdjpgcom rdjpgcom.o $(LDLIBS)\r
124 \r
125 wrjpgcom: wrjpgcom.o\r
126         $(LN) $(LDFLAGS) -o wrjpgcom wrjpgcom.o $(LDLIBS)\r
127 \r
128 jconfig.h: jconfig.txt\r
129         echo You must prepare a system-dependent jconfig.h file.\r
130         echo Please read the installation directions in install.txt.\r
131         exit 1\r
132 \r
133 clean:\r
134         $(RM) *.o cjpeg djpeg jpegtran libjpeg.a rdjpgcom wrjpgcom\r
135         $(RM) core testout*\r
136 \r
137 test: cjpeg djpeg jpegtran\r
138         $(RM) testout*\r
139         ./djpeg -dct int -ppm -outfile testout.ppm  testorig.jpg\r
140         ./djpeg -dct int -bmp -colors 256 -outfile testout.bmp  testorig.jpg\r
141         ./cjpeg -dct int -outfile testout.jpg  testimg.ppm\r
142         ./djpeg -dct int -ppm -outfile testoutp.ppm testprog.jpg\r
143         ./cjpeg -dct int -progressive -opt -outfile testoutp.jpg testimg.ppm\r
144         ./jpegtran -outfile testoutt.jpg testprog.jpg\r
145         cmp testimg.ppm testout.ppm\r
146         cmp testimg.bmp testout.bmp\r
147         cmp testimg.jpg testout.jpg\r
148         cmp testimg.ppm testoutp.ppm\r
149         cmp testimgp.jpg testoutp.jpg\r
150         cmp testorig.jpg testoutt.jpg\r
151 \r
152 \r
153 jaricom.o: jaricom.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h\r
154 jcapimin.o: jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h\r
155 jcapistd.o: jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h\r
156 jcarith.o: jcarith.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h\r
157 jccoefct.o: jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h\r
158 jccolor.o: jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h\r
159 jcdctmgr.o: jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h\r
160 jchuff.o: jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h\r
161 jcinit.o: jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h\r
162 jcmainct.o: jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h\r
163 jcmarker.o: jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h\r
164 jcmaster.o: jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h\r
165 jcomapi.o: jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h\r
166 jcparam.o: jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h\r
167 jcprepct.o: jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h\r
168 jcsample.o: jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h\r
169 jctrans.o: jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h\r
170 jdapimin.o: jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h\r
171 jdapistd.o: jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h\r
172 jdarith.o: jdarith.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h\r
173 jdatadst.o: jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h\r
174 jdatasrc.o: jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h\r
175 jdcoefct.o: jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h\r
176 jdcolor.o: jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h\r
177 jddctmgr.o: jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h\r
178 jdhuff.o: jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h\r
179 jdinput.o: jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h\r
180 jdmainct.o: jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h\r
181 jdmarker.o: jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h\r
182 jdmaster.o: jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h\r
183 jdmerge.o: jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h\r
184 jdpostct.o: jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h\r
185 jdsample.o: jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h\r
186 jdtrans.o: jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h\r
187 jerror.o: jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h\r
188 jfdctflt.o: jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h\r
189 jfdctfst.o: jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h\r
190 jfdctint.o: jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h\r
191 jidctflt.o: jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h\r
192 jidctfst.o: jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h\r
193 jidctint.o: jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h\r
194 jquant1.o: jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h\r
195 jquant2.o: jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h\r
196 jutils.o: jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h\r
197 jmemmgr.o: jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h\r
198 jmemansi.o: jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h\r
199 jmemname.o: jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h\r
200 jmemnobs.o: jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h\r
201 jmemdos.o: jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h\r
202 jmemmac.o: jmemmac.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h\r
203 cjpeg.o: cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h\r
204 djpeg.o: djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h\r
205 jpegtran.o: jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h transupp.h jversion.h\r
206 rdjpgcom.o: rdjpgcom.c jinclude.h jconfig.h\r
207 wrjpgcom.o: wrjpgcom.c jinclude.h jconfig.h\r
208 cdjpeg.o: cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h\r
209 rdcolmap.o: rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h\r
210 rdswitch.o: rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h\r
211 transupp.o: transupp.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h transupp.h\r
212 rdppm.o: rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h\r
213 wrppm.o: wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h\r
214 rdgif.o: rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h\r
215 wrgif.o: wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h\r
216 rdtarga.o: rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h\r
217 wrtarga.o: wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h\r
218 rdbmp.o: rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h\r
219 wrbmp.o: wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h\r
220 rdrle.o: rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h\r
221 wrrle.o: wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h\r