Mercurial > hgrepos > Python2 > PyMuPDF
comparison mupdf-source/thirdparty/libjpeg/makefile.xc @ 2:b50eed0cc0ef upstream
ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4.
The directory name has changed: no version number in the expanded directory now.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 15 Sep 2025 11:43:07 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1:1d09e1dec1d9 | 2:b50eed0cc0ef |
|---|---|
| 1 # Makefile for Independent JPEG Group's software | |
| 2 | |
| 3 # This makefile is suitable for Xcode Apple Clang on Apple Darwin/macOS. | |
| 4 # Tested with Xcode 15.2 (2024), | |
| 5 # Apple clang version 15.0.0 (clang-1500.1.0.2.5), | |
| 6 # Target: arm64-apple-darwin23.2.0, | |
| 7 # GNU Make 3.81 (2006). | |
| 8 | |
| 9 # Read installation instructions in install.txt before saying "make", | |
| 10 # or use either | |
| 11 # make -f makefile.xc setup | |
| 12 # or | |
| 13 # make -f makefile.xc setupcopy | |
| 14 # before saying | |
| 15 # make -f makefile.xc | |
| 16 # Test: | |
| 17 # make -f makefile.xc test | |
| 18 # Clean: | |
| 19 # make -f makefile.xc clean | |
| 20 | |
| 21 # The name of your C compiler: | |
| 22 CC= cc | |
| 23 | |
| 24 # You may need to adjust these cc options: | |
| 25 CFLAGS= -O2 -Wall | |
| 26 # Generally, we recommend defining any configuration symbols in jconfig.h, | |
| 27 # NOT via -D switches here. | |
| 28 | |
| 29 # Link-time cc options: | |
| 30 LDFLAGS= | |
| 31 | |
| 32 # To link any special libraries, add the necessary -l commands here. | |
| 33 LDLIBS= | |
| 34 | |
| 35 # Put here the object file name for the correct system-dependent memory | |
| 36 # manager file. For Unix this is usually jmemnobs.o, but you may want | |
| 37 # to use jmemansi.o or jmemname.o if you have limited swap space. | |
| 38 SYSDEPMEM= jmemnobs.o | |
| 39 | |
| 40 # miscellaneous OS-dependent stuff | |
| 41 # linker | |
| 42 LN= $(CC) | |
| 43 # file deletion command | |
| 44 RM= rm -f | |
| 45 # file rename command | |
| 46 MV= mv | |
| 47 # file copy command | |
| 48 CP= cp | |
| 49 # library (.a) file creation command | |
| 50 AR= ar rc | |
| 51 # second step in .a creation (use "touch" if not needed) | |
| 52 AR2= ranlib | |
| 53 | |
| 54 # End of configurable options. | |
| 55 | |
| 56 | |
| 57 # source files: JPEG library proper | |
| 58 LIBSOURCES= jaricom.c jcapimin.c jcapistd.c jcarith.c jccoefct.c jccolor.c \ | |
| 59 jcdctmgr.c jchuff.c jcinit.c jcmainct.c jcmarker.c jcmaster.c \ | |
| 60 jcomapi.c jcparam.c jcprepct.c jcsample.c jctrans.c jdapimin.c \ | |
| 61 jdapistd.c jdarith.c jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c \ | |
| 62 jddctmgr.c jdhuff.c jdinput.c jdmainct.c jdmarker.c jdmaster.c \ | |
| 63 jdmerge.c jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c \ | |
| 64 jfdctfst.c jfdctint.c jidctflt.c jidctfst.c jidctint.c jquant1.c \ | |
| 65 jquant2.c jutils.c jmemmgr.c | |
| 66 # memmgr back ends: compile only one of these into a working library | |
| 67 SYSDEPSOURCES= jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemmac.c | |
| 68 # source files: cjpeg/djpeg/jpegtran applications, also rdjpgcom/wrjpgcom | |
| 69 APPSOURCES= cjpeg.c djpeg.c jpegtran.c rdjpgcom.c wrjpgcom.c cdjpeg.c \ | |
| 70 rdcolmap.c rdswitch.c transupp.c rdppm.c wrppm.c rdgif.c wrgif.c \ | |
| 71 rdtarga.c wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c | |
| 72 SOURCES= $(LIBSOURCES) $(SYSDEPSOURCES) $(APPSOURCES) | |
| 73 # files included by source files | |
| 74 INCLUDES= jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h jpegint.h \ | |
| 75 jpeglib.h jversion.h cdjpeg.h cderror.h transupp.h | |
| 76 # documentation, test, and support files | |
| 77 DOCS= README install.txt usage.txt cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 \ | |
| 78 wrjpgcom.1 wizard.txt example.c libjpeg.txt structure.txt \ | |
| 79 coderules.txt filelist.txt cdaltui.txt change.log | |
| 80 MKFILES= configure Makefile.in makefile.ansi makefile.unix makefile.xc \ | |
| 81 makefile.bcc makefile.b32 makefile.c32 makefile.d32 makefile.x32 \ | |
| 82 makefile.b64 makefile.mc6 makefile.dj makefile.wat makefile.vc \ | |
| 83 makefile.vs makejdsw.vc6 makeadsw.vc6 makejdep.vc6 makejdsp.vc6 \ | |
| 84 makejmak.vc6 makecdep.vc6 makecdsp.vc6 makecmak.vc6 makeddep.vc6 \ | |
| 85 makeddsp.vc6 makedmak.vc6 maketdep.vc6 maketdsp.vc6 maketmak.vc6 \ | |
| 86 makerdep.vc6 makerdsp.vc6 makermak.vc6 makewdep.vc6 makewdsp.vc6 \ | |
| 87 makewmak.vc6 makejsln.v16 makeasln.v16 makejvcx.v16 makejfil.v16 \ | |
| 88 makecvcx.v16 makecfil.v16 makedvcx.v16 makedfil.v16 maketvcx.v16 \ | |
| 89 maketfil.v16 makervcx.v16 makerfil.v16 makewvcx.v16 makewfil.v16 \ | |
| 90 makajpeg.bcb makcjpeg.bcb makdjpeg.bcb makljpeg.bcb makrjpeg.bcb \ | |
| 91 maktjpeg.bcb makwjpeg.bcb makcjpeg.st makdjpeg.st makljpeg.st \ | |
| 92 maktjpeg.st makeproj.mac makefile.manx makefile.sas makefile.mms \ | |
| 93 makefile.vms makvms.opt | |
| 94 CONFIGFILES= jconfig.cfg jconfig.xc jconfig.bcc jconfig.mc6 jconfig.dj \ | |
| 95 jconfig.wat jconfig.vc jconfig.mac jconfig.st jconfig.manx \ | |
| 96 jconfig.sas jconfig.vms | |
| 97 CONFIGUREFILES= config.guess config.sub install-sh ltmain.sh depcomp \ | |
| 98 missing ar-lib | |
| 99 OTHERFILES= jconfig.txt ckconfig.c jmemdosa.asm libjpeg.map libjpeg.pc.in \ | |
| 100 cjpegalt.c djpegalt.c | |
| 101 TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.bmp testimg.jpg \ | |
| 102 testprog.jpg testimgp.jpg | |
| 103 DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) \ | |
| 104 $(CONFIGUREFILES) $(OTHERFILES) $(TESTFILES) | |
| 105 # library object files common to compression and decompression | |
| 106 COMOBJECTS= jaricom.o jcomapi.o jutils.o jerror.o jmemmgr.o $(SYSDEPMEM) | |
| 107 # compression library object files | |
| 108 CLIBOBJECTS= jcapimin.o jcapistd.o jcarith.o jctrans.o jcparam.o \ | |
| 109 jdatadst.o jcinit.o jcmaster.o jcmarker.o jcmainct.o jcprepct.o \ | |
| 110 jccoefct.o jccolor.o jcsample.o jchuff.o jcdctmgr.o jfdctfst.o \ | |
| 111 jfdctflt.o jfdctint.o | |
| 112 # decompression library object files | |
| 113 DLIBOBJECTS= jdapimin.o jdapistd.o jdarith.o jdtrans.o jdatasrc.o \ | |
| 114 jdmaster.o jdinput.o jdmarker.o jdhuff.o jdmainct.o \ | |
| 115 jdcoefct.o jdpostct.o jddctmgr.o jidctfst.o jidctflt.o \ | |
| 116 jidctint.o jdsample.o jdcolor.o jquant1.o jquant2.o jdmerge.o | |
| 117 # These objectfiles are included in libjpeg.a | |
| 118 LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS) | |
| 119 # object files for sample applications (excluding library files) | |
| 120 COBJECTS= cjpeg.o rdppm.o rdgif.o rdtarga.o rdrle.o rdbmp.o rdswitch.o \ | |
| 121 cdjpeg.o | |
| 122 DOBJECTS= djpeg.o wrppm.o wrgif.o wrtarga.o wrrle.o wrbmp.o rdcolmap.o \ | |
| 123 cdjpeg.o | |
| 124 TROBJECTS= jpegtran.o rdswitch.o cdjpeg.o transupp.o | |
| 125 | |
| 126 | |
| 127 all: libjpeg.a cjpeg djpeg jpegtran rdjpgcom wrjpgcom | |
| 128 | |
| 129 libjpeg.a: $(LIBOBJECTS) | |
| 130 $(RM) libjpeg.a | |
| 131 $(AR) libjpeg.a $(LIBOBJECTS) | |
| 132 $(AR2) libjpeg.a | |
| 133 | |
| 134 cjpeg: $(COBJECTS) libjpeg.a | |
| 135 $(LN) $(LDFLAGS) -o cjpeg $(COBJECTS) libjpeg.a $(LDLIBS) | |
| 136 | |
| 137 djpeg: $(DOBJECTS) libjpeg.a | |
| 138 $(LN) $(LDFLAGS) -o djpeg $(DOBJECTS) libjpeg.a $(LDLIBS) | |
| 139 | |
| 140 jpegtran: $(TROBJECTS) libjpeg.a | |
| 141 $(LN) $(LDFLAGS) -o jpegtran $(TROBJECTS) libjpeg.a $(LDLIBS) | |
| 142 | |
| 143 rdjpgcom: rdjpgcom.o | |
| 144 $(LN) $(LDFLAGS) -o rdjpgcom rdjpgcom.o $(LDLIBS) | |
| 145 | |
| 146 wrjpgcom: wrjpgcom.o | |
| 147 $(LN) $(LDFLAGS) -o wrjpgcom wrjpgcom.o $(LDLIBS) | |
| 148 | |
| 149 jconfig.h: jconfig.txt | |
| 150 @echo | |
| 151 @echo "+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +" | |
| 152 @echo "+ +" | |
| 153 @echo "+ You must prepare a system-dependent jconfig.h file. +" | |
| 154 @echo "+ Please read the installation directions in install.txt, +" | |
| 155 @echo "+ or use either +" | |
| 156 @echo "+ make -f makefile.xc setup +" | |
| 157 @echo "+ or +" | |
| 158 @echo "+ make -f makefile.xc setupcopy +" | |
| 159 @echo "+ before saying +" | |
| 160 @echo "+ make -f makefile.xc +" | |
| 161 @echo "+ +" | |
| 162 @echo "+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +" | |
| 163 @echo | |
| 164 exit 1 | |
| 165 | |
| 166 clean: | |
| 167 $(RM) *.o cjpeg djpeg jpegtran libjpeg.a rdjpgcom wrjpgcom | |
| 168 $(RM) core testout* | |
| 169 | |
| 170 setup: | |
| 171 test -f jconfig.h || $(MV) jconfig.xc jconfig.h | |
| 172 | |
| 173 setupcopy: | |
| 174 $(CP) jconfig.xc jconfig.h | |
| 175 | |
| 176 test: cjpeg djpeg jpegtran | |
| 177 $(RM) testout* | |
| 178 ./djpeg -dct int -ppm -outfile testout.ppm testorig.jpg | |
| 179 ./djpeg -dct int -gif -outfile testout.gif testorig.jpg | |
| 180 ./djpeg -dct int -bmp -colors 256 -outfile testout.bmp testorig.jpg | |
| 181 ./cjpeg -dct int -outfile testout.jpg testimg.ppm | |
| 182 ./djpeg -dct int -ppm -outfile testoutp.ppm testprog.jpg | |
| 183 ./cjpeg -dct int -progressive -opt -outfile testoutp.jpg testimg.ppm | |
| 184 ./jpegtran -outfile testoutt.jpg testprog.jpg | |
| 185 cmp testimg.ppm testout.ppm | |
| 186 cmp testimg.gif testout.gif | |
| 187 cmp testimg.bmp testout.bmp | |
| 188 cmp testimg.jpg testout.jpg | |
| 189 cmp testimg.ppm testoutp.ppm | |
| 190 cmp testimgp.jpg testoutp.jpg | |
| 191 cmp testorig.jpg testoutt.jpg | |
| 192 | |
| 193 | |
| 194 jaricom.o: jaricom.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h | |
| 195 jcapimin.o: jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h | |
| 196 jcapistd.o: jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h | |
| 197 jcarith.o: jcarith.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h | |
| 198 jccoefct.o: jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h | |
| 199 jccolor.o: jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h | |
| 200 jcdctmgr.o: jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h | |
| 201 jchuff.o: jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h | |
| 202 jcinit.o: jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h | |
| 203 jcmainct.o: jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h | |
| 204 jcmarker.o: jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h | |
| 205 jcmaster.o: jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h | |
| 206 jcomapi.o: jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h | |
| 207 jcparam.o: jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h | |
| 208 jcprepct.o: jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h | |
| 209 jcsample.o: jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h | |
| 210 jctrans.o: jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h | |
| 211 jdapimin.o: jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h | |
| 212 jdapistd.o: jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h | |
| 213 jdarith.o: jdarith.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h | |
| 214 jdatadst.o: jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h | |
| 215 jdatasrc.o: jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h | |
| 216 jdcoefct.o: jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h | |
| 217 jdcolor.o: jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h | |
| 218 jddctmgr.o: jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h | |
| 219 jdhuff.o: jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h | |
| 220 jdinput.o: jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h | |
| 221 jdmainct.o: jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h | |
| 222 jdmarker.o: jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h | |
| 223 jdmaster.o: jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h | |
| 224 jdmerge.o: jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h | |
| 225 jdpostct.o: jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h | |
| 226 jdsample.o: jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h | |
| 227 jdtrans.o: jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h | |
| 228 jerror.o: jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h | |
| 229 jfdctflt.o: jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h | |
| 230 jfdctfst.o: jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h | |
| 231 jfdctint.o: jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h | |
| 232 jidctflt.o: jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h | |
| 233 jidctfst.o: jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h | |
| 234 jidctint.o: jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h | |
| 235 jquant1.o: jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h | |
| 236 jquant2.o: jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h | |
| 237 jutils.o: jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h | |
| 238 jmemmgr.o: jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h | |
| 239 jmemansi.o: jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h | |
| 240 jmemname.o: jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h | |
| 241 jmemnobs.o: jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h | |
| 242 jmemdos.o: jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h | |
| 243 jmemmac.o: jmemmac.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h | |
| 244 cjpeg.o: cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h | |
| 245 djpeg.o: djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h | |
| 246 jpegtran.o: jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h transupp.h jversion.h | |
| 247 rdjpgcom.o: rdjpgcom.c jinclude.h jconfig.h | |
| 248 wrjpgcom.o: wrjpgcom.c jinclude.h jconfig.h | |
| 249 cdjpeg.o: cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h | |
| 250 rdcolmap.o: rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h | |
| 251 rdswitch.o: rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h | |
| 252 transupp.o: transupp.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h transupp.h | |
| 253 rdppm.o: rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h | |
| 254 wrppm.o: wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h | |
| 255 rdgif.o: rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h | |
| 256 wrgif.o: wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h | |
| 257 rdtarga.o: rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h | |
| 258 wrtarga.o: wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h | |
| 259 rdbmp.o: rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h | |
| 260 wrbmp.o: wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h | |
| 261 rdrle.o: rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h | |
| 262 wrrle.o: wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h |
