| 1 | # Makefile for Independent JPEG Group's software
|
|---|
| 2 |
|
|---|
| 3 | # This makefile is for Microsoft Visual C++ on Windows NT (and 95?).
|
|---|
| 4 | # It builds the IJG library as a statically linkable library (.LIB),
|
|---|
| 5 | # and builds the sample applications as console-mode apps.
|
|---|
| 6 | # Thanks to Xingong Chang, Raymond Everly and others.
|
|---|
| 7 |
|
|---|
| 8 | # Read installation instructions before saying "nmake" !!
|
|---|
| 9 | # To build an optimized library without debug info, say "nmake nodebug=1".
|
|---|
| 10 |
|
|---|
| 11 | # Pull in standard variable definitions
|
|---|
| 12 | !include <win32.mak>
|
|---|
| 13 |
|
|---|
| 14 | # You may want to adjust these compiler options:
|
|---|
| 15 | CFLAGS= $(cflags) $(cdebug) $(cvars) -I.
|
|---|
| 16 | # Generally, we recommend defining any configuration symbols in jconfig.h,
|
|---|
| 17 | # NOT via -D switches here.
|
|---|
| 18 |
|
|---|
| 19 | # Link-time options:
|
|---|
| 20 | LDFLAGS= $(ldebug) $(conlflags)
|
|---|
| 21 |
|
|---|
| 22 | # To link any special libraries, add the necessary commands here.
|
|---|
| 23 | LDLIBS= $(conlibs)
|
|---|
| 24 |
|
|---|
| 25 | # Put here the object file name for the correct system-dependent memory
|
|---|
| 26 | # manager file. For NT we suggest jmemnobs.obj, which expects the OS to
|
|---|
| 27 | # provide adequate virtual memory.
|
|---|
| 28 | SYSDEPMEM= jmemnobs.obj
|
|---|
| 29 |
|
|---|
| 30 | # miscellaneous OS-dependent stuff
|
|---|
| 31 | # file deletion command
|
|---|
| 32 | RM= del
|
|---|
| 33 |
|
|---|
| 34 | # End of configurable options.
|
|---|
| 35 |
|
|---|
| 36 |
|
|---|
| 37 | # source files: JPEG library proper
|
|---|
| 38 | LIBSOURCES= jcapimin.c jcapistd.c jccoefct.c jccolor.c jcdctmgr.c jchuff.c \
|
|---|
| 39 | jcinit.c jcmainct.c jcmarker.c jcmaster.c jcomapi.c jcparam.c \
|
|---|
| 40 | jcphuff.c jcprepct.c jcsample.c jctrans.c jdapimin.c jdapistd.c \
|
|---|
| 41 | jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c jddctmgr.c jdhuff.c \
|
|---|
| 42 | jdinput.c jdmainct.c jdmarker.c jdmaster.c jdmerge.c jdphuff.c \
|
|---|
| 43 | jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c jfdctfst.c \
|
|---|
| 44 | jfdctint.c jidctflt.c jidctfst.c jidctint.c jidctred.c jquant1.c \
|
|---|
| 45 | jquant2.c jutils.c jmemmgr.c
|
|---|
| 46 | # memmgr back ends: compile only one of these into a working library
|
|---|
| 47 | SYSDEPSOURCES= jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemmac.c
|
|---|
| 48 | # source files: cjpeg/djpeg/jpegtran applications, also rdjpgcom/wrjpgcom
|
|---|
| 49 | APPSOURCES= cjpeg.c djpeg.c jpegtran.c rdjpgcom.c wrjpgcom.c cdjpeg.c \
|
|---|
| 50 | rdcolmap.c rdswitch.c transupp.c rdppm.c wrppm.c rdgif.c wrgif.c \
|
|---|
| 51 | rdtarga.c wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c
|
|---|
| 52 | SOURCES= $(LIBSOURCES) $(SYSDEPSOURCES) $(APPSOURCES)
|
|---|
| 53 | # files included by source files
|
|---|
| 54 | INCLUDES= jchuff.h jdhuff.h jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h \
|
|---|
| 55 | jpegint.h jpeglib.h jversion.h cdjpeg.h cderror.h transupp.h
|
|---|
| 56 | # documentation, test, and support files
|
|---|
| 57 | DOCS= README install.doc usage.doc cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 \
|
|---|
| 58 | wrjpgcom.1 wizard.doc example.c libjpeg.doc structure.doc \
|
|---|
| 59 | coderules.doc filelist.doc change.log
|
|---|
| 60 | MKFILES= configure makefile.cfg makefile.ansi makefile.unix makefile.bcc \
|
|---|
| 61 | makefile.mc6 makefile.dj makefile.wat makefile.vc makelib.ds \
|
|---|
| 62 | makeapps.ds makeproj.mac makcjpeg.st makdjpeg.st makljpeg.st \
|
|---|
| 63 | maktjpeg.st makefile.manx makefile.sas makefile.mms makefile.vms \
|
|---|
| 64 | makvms.opt
|
|---|
| 65 | CONFIGFILES= jconfig.cfg jconfig.bcc jconfig.mc6 jconfig.dj jconfig.wat \
|
|---|
| 66 | jconfig.vc jconfig.mac jconfig.st jconfig.manx jconfig.sas \
|
|---|
| 67 | jconfig.vms
|
|---|
| 68 | CONFIGUREFILES= config.guess config.sub install-sh ltconfig ltmain.sh
|
|---|
| 69 | OTHERFILES= jconfig.doc ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm
|
|---|
| 70 | TESTFILES= testorig.jpg testimg.ppm testimg.bmp testimg.jpg testprog.jpg \
|
|---|
| 71 | testimgp.jpg
|
|---|
| 72 | DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) \
|
|---|
| 73 | $(CONFIGUREFILES) $(OTHERFILES) $(TESTFILES)
|
|---|
| 74 | # library object files common to compression and decompression
|
|---|
| 75 | COMOBJECTS= jcomapi.obj jutils.obj jerror.obj jmemmgr.obj $(SYSDEPMEM)
|
|---|
| 76 | # compression library object files
|
|---|
| 77 | CLIBOBJECTS= jcapimin.obj jcapistd.obj jctrans.obj jcparam.obj jdatadst.obj \
|
|---|
| 78 | jcinit.obj jcmaster.obj jcmarker.obj jcmainct.obj jcprepct.obj \
|
|---|
| 79 | jccoefct.obj jccolor.obj jcsample.obj jchuff.obj jcphuff.obj \
|
|---|
| 80 | jcdctmgr.obj jfdctfst.obj jfdctflt.obj jfdctint.obj
|
|---|
| 81 | # decompression library object files
|
|---|
| 82 | DLIBOBJECTS= jdapimin.obj jdapistd.obj jdtrans.obj jdatasrc.obj \
|
|---|
| 83 | jdmaster.obj jdinput.obj jdmarker.obj jdhuff.obj jdphuff.obj \
|
|---|
| 84 | jdmainct.obj jdcoefct.obj jdpostct.obj jddctmgr.obj jidctfst.obj \
|
|---|
| 85 | jidctflt.obj jidctint.obj jidctred.obj jdsample.obj jdcolor.obj \
|
|---|
| 86 | jquant1.obj jquant2.obj jdmerge.obj
|
|---|
| 87 | # These objectfiles are included in libjpeg.lib
|
|---|
| 88 | LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
|
|---|
| 89 | # object files for sample applications (excluding library files)
|
|---|
| 90 | COBJECTS= cjpeg.obj rdppm.obj rdgif.obj rdtarga.obj rdrle.obj rdbmp.obj \
|
|---|
| 91 | rdswitch.obj cdjpeg.obj
|
|---|
| 92 | DOBJECTS= djpeg.obj wrppm.obj wrgif.obj wrtarga.obj wrrle.obj wrbmp.obj \
|
|---|
| 93 | rdcolmap.obj cdjpeg.obj
|
|---|
| 94 | TROBJECTS= jpegtran.obj rdswitch.obj cdjpeg.obj transupp.obj
|
|---|
| 95 |
|
|---|
| 96 | # Template command for compiling .c to .obj
|
|---|
| 97 | .c.obj:
|
|---|
| 98 | $(cc) $(CFLAGS) $*.c
|
|---|
| 99 |
|
|---|
| 100 |
|
|---|
| 101 | all: libjpeg.lib cjpeg.exe djpeg.exe jpegtran.exe rdjpgcom.exe wrjpgcom.exe
|
|---|
| 102 |
|
|---|
| 103 | libjpeg.lib: $(LIBOBJECTS)
|
|---|
| 104 | lib -out:libjpeg.lib $(LIBOBJECTS)
|
|---|
| 105 |
|
|---|
| 106 | cjpeg.exe: $(COBJECTS) libjpeg.lib
|
|---|
| 107 | $(link) $(LDFLAGS) -out:cjpeg.exe $(COBJECTS) libjpeg.lib $(LDLIBS)
|
|---|
| 108 |
|
|---|
| 109 | djpeg.exe: $(DOBJECTS) libjpeg.lib
|
|---|
| 110 | $(link) $(LDFLAGS) -out:djpeg.exe $(DOBJECTS) libjpeg.lib $(LDLIBS)
|
|---|
| 111 |
|
|---|
| 112 | jpegtran.exe: $(TROBJECTS) libjpeg.lib
|
|---|
| 113 | $(link) $(LDFLAGS) -out:jpegtran.exe $(TROBJECTS) libjpeg.lib $(LDLIBS)
|
|---|
| 114 |
|
|---|
| 115 | rdjpgcom.exe: rdjpgcom.obj
|
|---|
| 116 | $(link) $(LDFLAGS) -out:rdjpgcom.exe rdjpgcom.obj $(LDLIBS)
|
|---|
| 117 |
|
|---|
| 118 | wrjpgcom.exe: wrjpgcom.obj
|
|---|
| 119 | $(link) $(LDFLAGS) -out:wrjpgcom.exe wrjpgcom.obj $(LDLIBS)
|
|---|
| 120 |
|
|---|
| 121 |
|
|---|
| 122 | clean:
|
|---|
| 123 | $(RM) *.obj *.exe libjpeg.lib
|
|---|
| 124 | $(RM) testout*
|
|---|
| 125 |
|
|---|
| 126 | test: cjpeg.exe djpeg.exe jpegtran.exe
|
|---|
| 127 | $(RM) testout*
|
|---|
| 128 | .\djpeg -dct int -ppm -outfile testout.ppm testorig.jpg
|
|---|
| 129 | .\djpeg -dct int -bmp -colors 256 -outfile testout.bmp testorig.jpg
|
|---|
| 130 | .\cjpeg -dct int -outfile testout.jpg testimg.ppm
|
|---|
| 131 | .\djpeg -dct int -ppm -outfile testoutp.ppm testprog.jpg
|
|---|
| 132 | .\cjpeg -dct int -progressive -opt -outfile testoutp.jpg testimg.ppm
|
|---|
| 133 | .\jpegtran -outfile testoutt.jpg testprog.jpg
|
|---|
| 134 | fc /b testimg.ppm testout.ppm
|
|---|
| 135 | fc /b testimg.bmp testout.bmp
|
|---|
| 136 | fc /b testimg.jpg testout.jpg
|
|---|
| 137 | fc /b testimg.ppm testoutp.ppm
|
|---|
| 138 | fc /b testimgp.jpg testoutp.jpg
|
|---|
| 139 | fc /b testorig.jpg testoutt.jpg
|
|---|
| 140 |
|
|---|
| 141 |
|
|---|
| 142 | jcapimin.obj: jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|---|
| 143 | jcapistd.obj: jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|---|
| 144 | jccoefct.obj: jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|---|
| 145 | jccolor.obj: jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|---|
| 146 | jcdctmgr.obj: jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
|
|---|
| 147 | jchuff.obj: jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h
|
|---|
| 148 | jcinit.obj: jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|---|
| 149 | jcmainct.obj: jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|---|
| 150 | jcmarker.obj: jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|---|
| 151 | jcmaster.obj: jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|---|
| 152 | jcomapi.obj: jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|---|
| 153 | jcparam.obj: jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|---|
| 154 | jcphuff.obj: jcphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h
|
|---|
| 155 | jcprepct.obj: jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|---|
| 156 | jcsample.obj: jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|---|
| 157 | jctrans.obj: jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|---|
| 158 | jdapimin.obj: jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|---|
| 159 | jdapistd.obj: jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|---|
| 160 | jdatadst.obj: jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
|
|---|
| 161 | jdatasrc.obj: jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
|
|---|
| 162 | jdcoefct.obj: jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|---|
| 163 | jdcolor.obj: jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|---|
| 164 | jddctmgr.obj: jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
|
|---|
| 165 | jdhuff.obj: jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h
|
|---|
| 166 | jdinput.obj: jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|---|
| 167 | jdmainct.obj: jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|---|
| 168 | jdmarker.obj: jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|---|
| 169 | jdmaster.obj: jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|---|
| 170 | jdmerge.obj: jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|---|
| 171 | jdphuff.obj: jdphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h
|
|---|
| 172 | jdpostct.obj: jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|---|
| 173 | jdsample.obj: jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|---|
| 174 | jdtrans.obj: jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|---|
| 175 | jerror.obj: jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
|
|---|
| 176 | jfdctflt.obj: jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
|
|---|
| 177 | jfdctfst.obj: jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
|
|---|
| 178 | jfdctint.obj: jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
|
|---|
| 179 | jidctflt.obj: jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
|
|---|
| 180 | jidctfst.obj: jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
|
|---|
| 181 | jidctint.obj: jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
|
|---|
| 182 | jidctred.obj: jidctred.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
|
|---|
| 183 | jquant1.obj: jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|---|
| 184 | jquant2.obj: jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|---|
| 185 | jutils.obj: jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|---|
| 186 | jmemmgr.obj: jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
|
|---|
| 187 | jmemansi.obj: jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
|
|---|
| 188 | jmemname.obj: jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
|
|---|
| 189 | jmemnobs.obj: jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
|
|---|
| 190 | jmemdos.obj: jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
|
|---|
| 191 | jmemmac.obj: jmemmac.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
|
|---|
| 192 | cjpeg.obj: cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
|
|---|
| 193 | djpeg.obj: djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
|
|---|
| 194 | jpegtran.obj: jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h transupp.h jversion.h
|
|---|
| 195 | rdjpgcom.obj: rdjpgcom.c jinclude.h jconfig.h
|
|---|
| 196 | wrjpgcom.obj: wrjpgcom.c jinclude.h jconfig.h
|
|---|
| 197 | cdjpeg.obj: cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
|---|
| 198 | rdcolmap.obj: rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
|---|
| 199 | rdswitch.obj: rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
|---|
| 200 | transupp.obj: transupp.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h transupp.h
|
|---|
| 201 | rdppm.obj: rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
|---|
| 202 | wrppm.obj: wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
|---|
| 203 | rdgif.obj: rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
|---|
| 204 | wrgif.obj: wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
|---|
| 205 | rdtarga.obj: rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
|---|
| 206 | wrtarga.obj: wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
|---|
| 207 | rdbmp.obj: rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
|---|
| 208 | wrbmp.obj: wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
|---|
| 209 | rdrle.obj: rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
|---|
| 210 | wrrle.obj: wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
|---|