makefile.vc 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  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.bcc \
  50. makefile.mc6 makefile.dj makefile.wat makefile.vc makejdsw.vc6 \
  51. makeadsw.vc6 makejdep.vc6 makejdsp.vc6 makejmak.vc6 makecdep.vc6 \
  52. makecdsp.vc6 makecmak.vc6 makeddep.vc6 makeddsp.vc6 makedmak.vc6 \
  53. maketdep.vc6 maketdsp.vc6 maketmak.vc6 makerdep.vc6 makerdsp.vc6 \
  54. makermak.vc6 makewdep.vc6 makewdsp.vc6 makewmak.vc6 makejsln.vc9 \
  55. makeasln.vc9 makejvcp.vc9 makecvcp.vc9 makedvcp.vc9 maketvcp.vc9 \
  56. makervcp.vc9 makewvcp.vc9 makeproj.mac makcjpeg.st makdjpeg.st \
  57. makljpeg.st maktjpeg.st makefile.manx makefile.sas makefile.mms \
  58. makefile.vms makvms.opt
  59. CONFIGFILES= jconfig.cfg jconfig.bcc jconfig.mc6 jconfig.dj jconfig.wat \
  60. jconfig.vc jconfig.mac jconfig.st jconfig.manx jconfig.sas \
  61. jconfig.vms
  62. CONFIGUREFILES= config.guess config.sub install-sh ltmain.sh depcomp missing
  63. OTHERFILES= jconfig.txt ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm \
  64. libjpeg.map
  65. TESTFILES= testorig.jpg testimg.ppm testimg.bmp testimg.jpg testprog.jpg \
  66. testimgp.jpg
  67. DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) \
  68. $(CONFIGUREFILES) $(OTHERFILES) $(TESTFILES)
  69. # library object files common to compression and decompression
  70. COMOBJECTS= jaricom.obj jcomapi.obj jutils.obj jerror.obj jmemmgr.obj $(SYSDEPMEM)
  71. # compression library object files
  72. CLIBOBJECTS= jcapimin.obj jcapistd.obj jcarith.obj jctrans.obj jcparam.obj \
  73. jdatadst.obj jcinit.obj jcmaster.obj jcmarker.obj jcmainct.obj \
  74. jcprepct.obj jccoefct.obj jccolor.obj jcsample.obj jchuff.obj \
  75. jcdctmgr.obj jfdctfst.obj jfdctflt.obj jfdctint.obj
  76. # decompression library object files
  77. DLIBOBJECTS= jdapimin.obj jdapistd.obj jdarith.obj jdtrans.obj jdatasrc.obj \
  78. jdmaster.obj jdinput.obj jdmarker.obj jdhuff.obj jdmainct.obj \
  79. jdcoefct.obj jdpostct.obj jddctmgr.obj jidctfst.obj jidctflt.obj \
  80. jidctint.obj jdsample.obj jdcolor.obj jquant1.obj jquant2.obj \
  81. jdmerge.obj
  82. # These objectfiles are included in libjpeg.lib
  83. LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
  84. # object files for sample applications (excluding library files)
  85. COBJECTS= cjpeg.obj rdppm.obj rdgif.obj rdtarga.obj rdrle.obj rdbmp.obj \
  86. rdswitch.obj cdjpeg.obj
  87. DOBJECTS= djpeg.obj wrppm.obj wrgif.obj wrtarga.obj wrrle.obj wrbmp.obj \
  88. rdcolmap.obj cdjpeg.obj
  89. TROBJECTS= jpegtran.obj rdswitch.obj cdjpeg.obj transupp.obj
  90. # Template command for compiling .c to .obj
  91. .c.obj:
  92. $(cc) $(CFLAGS) $*.c
  93. all: libjpeg.lib cjpeg.exe djpeg.exe jpegtran.exe rdjpgcom.exe wrjpgcom.exe
  94. libjpeg.lib: $(LIBOBJECTS)
  95. $(RM) libjpeg.lib
  96. lib -out:libjpeg.lib $(LIBOBJECTS)
  97. cjpeg.exe: $(COBJECTS) libjpeg.lib
  98. $(link) $(LDFLAGS) -out:cjpeg.exe $(COBJECTS) libjpeg.lib $(LDLIBS)
  99. djpeg.exe: $(DOBJECTS) libjpeg.lib
  100. $(link) $(LDFLAGS) -out:djpeg.exe $(DOBJECTS) libjpeg.lib $(LDLIBS)
  101. jpegtran.exe: $(TROBJECTS) libjpeg.lib
  102. $(link) $(LDFLAGS) -out:jpegtran.exe $(TROBJECTS) libjpeg.lib $(LDLIBS)
  103. rdjpgcom.exe: rdjpgcom.obj
  104. $(link) $(LDFLAGS) -out:rdjpgcom.exe rdjpgcom.obj $(LDLIBS)
  105. wrjpgcom.exe: wrjpgcom.obj
  106. $(link) $(LDFLAGS) -out:wrjpgcom.exe wrjpgcom.obj $(LDLIBS)
  107. clean:
  108. $(RM) *.obj *.exe libjpeg.lib
  109. $(RM) testout*
  110. test: cjpeg.exe djpeg.exe jpegtran.exe
  111. $(RM) testout*
  112. .\djpeg -dct int -ppm -outfile testout.ppm testorig.jpg
  113. .\djpeg -dct int -bmp -colors 256 -outfile testout.bmp testorig.jpg
  114. .\cjpeg -dct int -outfile testout.jpg testimg.ppm
  115. .\djpeg -dct int -ppm -outfile testoutp.ppm testprog.jpg
  116. .\cjpeg -dct int -progressive -opt -outfile testoutp.jpg testimg.ppm
  117. .\jpegtran -outfile testoutt.jpg testprog.jpg
  118. fc /b testimg.ppm testout.ppm
  119. fc /b testimg.bmp testout.bmp
  120. fc /b testimg.jpg testout.jpg
  121. fc /b testimg.ppm testoutp.ppm
  122. fc /b testimgp.jpg testoutp.jpg
  123. fc /b testorig.jpg testoutt.jpg
  124. jaricom.obj: jaricom.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  125. jcapimin.obj: jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  126. jcapistd.obj: jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  127. jcarith.obj: jcarith.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  128. jccoefct.obj: jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  129. jccolor.obj: jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  130. jcdctmgr.obj: jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  131. jchuff.obj: jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  132. jcinit.obj: jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  133. jcmainct.obj: jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  134. jcmarker.obj: jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  135. jcmaster.obj: jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  136. jcomapi.obj: jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  137. jcparam.obj: jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  138. jcprepct.obj: jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  139. jcsample.obj: jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  140. jctrans.obj: jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  141. jdapimin.obj: jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  142. jdapistd.obj: jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  143. jdarith.obj: jdarith.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  144. jdatadst.obj: jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  145. jdatasrc.obj: jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  146. jdcoefct.obj: jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  147. jdcolor.obj: jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  148. jddctmgr.obj: jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  149. jdhuff.obj: jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  150. jdinput.obj: jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  151. jdmainct.obj: jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  152. jdmarker.obj: jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  153. jdmaster.obj: jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  154. jdmerge.obj: jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  155. jdpostct.obj: jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  156. jdsample.obj: jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  157. jdtrans.obj: jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  158. jerror.obj: jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
  159. jfdctflt.obj: jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  160. jfdctfst.obj: jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  161. jfdctint.obj: jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  162. jidctflt.obj: jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  163. jidctfst.obj: jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  164. jidctint.obj: jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  165. jquant1.obj: jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  166. jquant2.obj: jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  167. jutils.obj: jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  168. jmemmgr.obj: jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  169. jmemansi.obj: jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  170. jmemname.obj: jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  171. jmemnobs.obj: jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  172. jmemdos.obj: jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  173. jmemmac.obj: jmemmac.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  174. cjpeg.obj: cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  175. djpeg.obj: djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  176. jpegtran.obj: jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h transupp.h jversion.h
  177. rdjpgcom.obj: rdjpgcom.c jinclude.h jconfig.h
  178. wrjpgcom.obj: wrjpgcom.c jinclude.h jconfig.h
  179. cdjpeg.obj: cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  180. rdcolmap.obj: rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  181. rdswitch.obj: rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  182. transupp.obj: transupp.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h transupp.h
  183. rdppm.obj: rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  184. wrppm.obj: wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  185. rdgif.obj: rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  186. wrgif.obj: wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  187. rdtarga.obj: rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  188. wrtarga.obj: wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  189. rdbmp.obj: rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  190. wrbmp.obj: wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  191. rdrle.obj: rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  192. wrrle.obj: wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h