makefile.vc 12 KB

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