makefile.vc 14 KB

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