makefile.mc6
上传用户:zlh9724
上传日期:2007-01-04
资源大小:1991k
文件大小:13k
源码类别:

浏览器

开发平台:

Unix_Linux

  1. # Makefile for Independent JPEG Group's software
  2. # This makefile is for Microsoft C for MS-DOS, version 6.00A and up.
  3. # Use NMAKE, not Microsoft's brain-damaged MAKE.
  4. # Thanks to Alan Wright and Chris Turner of Olivetti Research Ltd.
  5. # Read installation instructions before saying "nmake" !!
  6. # You may need to adjust these compiler options:
  7. CFLAGS = -AM -Oecigt -Gs -W3
  8. # -AM medium memory model (or use -AS for small model, if you remove features)
  9. # -Oecigt -Gs  maximum safe optimisation (-Ol has bugs in MSC 6.00A)
  10. # -W3 warning level 3
  11. # You might also want to add -G2 if you have an 80286, etc.
  12. # Generally, we recommend defining any configuration symbols in jconfig.h,
  13. # NOT via -D switches here.
  14. # Put here the object file name for the correct system-dependent memory
  15. # manager file.  For DOS, we recommend jmemdos.c and jmemdosa.asm.
  16. # If you change this, you'll need to modify the linker response file
  17. # name list, below, by hand!
  18. SYSDEPMEM= jmemdos.obj jmemdosa.obj
  19. # End of configurable options.
  20. # source files: JPEG library proper
  21. LIBSOURCES= jcapimin.c jcapistd.c jccoefct.c jccolor.c jcdctmgr.c jchuff.c 
  22.         jcinit.c jcmainct.c jcmarker.c jcmaster.c jcomapi.c jcparam.c 
  23.         jcphuff.c jcprepct.c jcsample.c jctrans.c jdapimin.c jdapistd.c 
  24.         jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c jddctmgr.c jdhuff.c 
  25.         jdinput.c jdmainct.c jdmarker.c jdmaster.c jdmerge.c jdphuff.c 
  26.         jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c jfdctfst.c 
  27.         jfdctint.c jidctflt.c jidctfst.c jidctint.c jidctred.c jquant1.c 
  28.         jquant2.c jutils.c jmemmgr.c jmemansi.c jmemname.c jmemnobs.c 
  29.         jmemdos.c
  30. # source files: cjpeg/djpeg/jpegtran applications, also rdjpgcom/wrjpgcom
  31. APPSOURCES= cjpeg.c djpeg.c jpegtran.c cdjpeg.c rdcolmap.c rdswitch.c 
  32.         rdjpgcom.c wrjpgcom.c rdppm.c wrppm.c rdgif.c wrgif.c rdtarga.c 
  33.         wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c
  34. SOURCES= $(LIBSOURCES) $(APPSOURCES)
  35. # files included by source files
  36. INCLUDES= jchuff.h jdhuff.h jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h 
  37.         jpegint.h jpeglib.h jversion.h cdjpeg.h cderror.h
  38. # documentation, test, and support files
  39. DOCS= README install.doc usage.doc cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 
  40.         wrjpgcom.1 wizard.doc example.c libjpeg.doc structure.doc 
  41.         coderules.doc filelist.doc change.log
  42. MKFILES= configure makefile.cfg makefile.ansi makefile.unix makefile.bcc 
  43.         makefile.mc6 makefile.dj makefile.wat makcjpeg.st makdjpeg.st 
  44.         makljpeg.st maktjpeg.st makefile.manx makefile.sas makefile.mms 
  45.         makefile.vms makvms.opt
  46. CONFIGFILES= jconfig.cfg jconfig.manx jconfig.sas jconfig.st jconfig.bcc 
  47.         jconfig.mc6 jconfig.dj jconfig.wat jconfig.vms
  48. OTHERFILES= jconfig.doc ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm
  49. TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.jpg testprog.jpg 
  50.         testimgp.jpg
  51. DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) 
  52.         $(OTHERFILES) $(TESTFILES)
  53. # library object files common to compression and decompression
  54. COMOBJECTS= jcomapi.obj jutils.obj jerror.obj jmemmgr.obj $(SYSDEPMEM)
  55. # compression library object files
  56. CLIBOBJECTS= jcapimin.obj jcapistd.obj jctrans.obj jcparam.obj jdatadst.obj 
  57.         jcinit.obj jcmaster.obj jcmarker.obj jcmainct.obj jcprepct.obj 
  58.         jccoefct.obj jccolor.obj jcsample.obj jchuff.obj jcphuff.obj 
  59.         jcdctmgr.obj jfdctfst.obj jfdctflt.obj jfdctint.obj
  60. # decompression library object files
  61. DLIBOBJECTS= jdapimin.obj jdapistd.obj jdtrans.obj jdatasrc.obj 
  62.         jdmaster.obj jdinput.obj jdmarker.obj jdhuff.obj jdphuff.obj 
  63.         jdmainct.obj jdcoefct.obj jdpostct.obj jddctmgr.obj jidctfst.obj 
  64.         jidctflt.obj jidctint.obj jidctred.obj jdsample.obj jdcolor.obj 
  65.         jquant1.obj jquant2.obj jdmerge.obj
  66. # These objectfiles are included in libjpeg.lib
  67. LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
  68. # object files for sample applications (excluding library files)
  69. COBJECTS= cjpeg.obj rdppm.obj rdgif.obj rdtarga.obj rdrle.obj rdbmp.obj 
  70.         rdswitch.obj cdjpeg.obj
  71. DOBJECTS= djpeg.obj wrppm.obj wrgif.obj wrtarga.obj wrrle.obj wrbmp.obj 
  72.         rdcolmap.obj cdjpeg.obj
  73. TROBJECTS= jpegtran.obj rdswitch.obj cdjpeg.obj
  74. # need linker response file because file list > 128 chars
  75. RFILE = libjpeg.ans
  76. all: libjpeg.lib cjpeg.exe djpeg.exe jpegtran.exe rdjpgcom.exe wrjpgcom.exe
  77. libjpeg.lib: $(LIBOBJECTS) $(RFILE)
  78. del libjpeg.lib
  79. lib @$(RFILE) ;
  80. # linker response file for building libjpeg.lib
  81. $(RFILE) : Makefile
  82. del $(RFILE)
  83. echo libjpeg.lib >$(RFILE)
  84. # silly want-to-create-it prompt:
  85. echo y >>$(RFILE)
  86. echo +jcapimin.obj +jcapistd.obj +jctrans.obj +jcparam.obj & >>$(RFILE)
  87. echo +jdatadst.obj +jcinit.obj +jcmaster.obj +jcmarker.obj & >>$(RFILE)
  88. echo +jcmainct.obj +jcprepct.obj +jccoefct.obj & >>$(RFILE)
  89. echo +jccolor.obj +jcsample.obj +jchuff.obj +jcphuff.obj & >>$(RFILE)
  90. echo +jcdctmgr.obj +jfdctfst.obj +jfdctflt.obj & >>$(RFILE)
  91. echo +jfdctint.obj +jdapimin.obj +jdapistd.obj & >>$(RFILE)
  92. echo +jdtrans.obj +jdatasrc.obj +jdmaster.obj +jdinput.obj & >>$(RFILE)
  93. echo +jdmarker.obj +jdhuff.obj +jdphuff.obj +jdmainct.obj & >>$(RFILE)
  94. echo +jdcoefct.obj +jdpostct.obj +jddctmgr.obj & >>$(RFILE)
  95. echo +jidctfst.obj +jidctflt.obj +jidctint.obj & >>$(RFILE)
  96. echo +jidctred.obj +jdsample.obj +jdcolor.obj +jquant1.obj & >>$(RFILE)
  97. echo +jquant2.obj +jdmerge.obj +jcomapi.obj +jutils.obj & >>$(RFILE)
  98. echo +jerror.obj +jmemmgr.obj +jmemdos.obj +jmemdosa.obj >>$(RFILE)
  99. cjpeg.exe: $(COBJECTS) libjpeg.lib
  100. echo $(COBJECTS) >cjpeg.lst
  101. link /STACK:4096 /EXEPACK @cjpeg.lst, cjpeg.exe, , libjpeg.lib, ;
  102. del cjpeg.lst
  103. djpeg.exe: $(DOBJECTS) libjpeg.lib
  104. echo $(DOBJECTS) >djpeg.lst
  105. link /STACK:4096 /EXEPACK @djpeg.lst, djpeg.exe, , libjpeg.lib, ;
  106. del djpeg.lst
  107. jpegtran.exe: $(TROBJECTS) libjpeg.lib
  108. link /STACK:4096 /EXEPACK $(TROBJECTS), jpegtran.exe, , libjpeg.lib, ;
  109. rdjpgcom.exe: rdjpgcom.c
  110. $(CC) -AS -O -W3 rdjpgcom.c
  111. # wrjpgcom needs large model so it can malloc a 64K chunk
  112. wrjpgcom.exe: wrjpgcom.c
  113. $(CC) -AL -O -W3 wrjpgcom.c
  114. jconfig.h: jconfig.doc
  115. echo You must prepare a system-dependent jconfig.h file.
  116. echo Please read the installation directions in install.doc.
  117. exit 1
  118. clean:
  119. del *.obj
  120. del libjpeg.lib
  121. del cjpeg.exe
  122. del djpeg.exe
  123. del jpegtran.exe
  124. del rdjpgcom.exe
  125. del wrjpgcom.exe
  126. del testout*.*
  127. test: cjpeg.exe djpeg.exe jpegtran.exe
  128. del testout*.*
  129. djpeg -dct int -ppm -outfile testout.ppm  testorig.jpg
  130. djpeg -dct int -gif -outfile testout.gif  testorig.jpg
  131. cjpeg -dct int -outfile testout.jpg  testimg.ppm
  132. djpeg -dct int -ppm -outfile testoutp.ppm testprog.jpg
  133. cjpeg -dct int -progressive -opt -outfile testoutp.jpg testimg.ppm
  134. jpegtran -outfile testoutt.jpg testprog.jpg
  135. fc /b testimg.ppm testout.ppm
  136. fc /b testimg.gif testout.gif
  137. fc /b testimg.jpg testout.jpg
  138. fc /b testimg.ppm testoutp.ppm
  139. fc /b testimgp.jpg testoutp.jpg
  140. fc /b testorig.jpg testoutt.jpg
  141. jcapimin.obj: jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  142. jcapistd.obj: jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  143. jccoefct.obj: jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  144. jccolor.obj: jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  145. jcdctmgr.obj: jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  146. jchuff.obj: jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h
  147. jcinit.obj: jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  148. jcmainct.obj: jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  149. jcmarker.obj: jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  150. jcmaster.obj: jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  151. jcomapi.obj: jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  152. jcparam.obj: jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  153. jcphuff.obj: jcphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h
  154. jcprepct.obj: jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  155. jcsample.obj: jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  156. jctrans.obj: jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  157. jdapimin.obj: jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  158. jdapistd.obj: jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  159. jdatadst.obj: jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  160. jdatasrc.obj: jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  161. jdcoefct.obj: jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  162. jdcolor.obj: jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  163. jddctmgr.obj: jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  164. jdhuff.obj: jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h
  165. jdinput.obj: jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  166. jdmainct.obj: jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  167. jdmarker.obj: jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  168. jdmaster.obj: jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  169. jdmerge.obj: jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  170. jdphuff.obj: jdphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h
  171. jdpostct.obj: jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  172. jdsample.obj: jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  173. jdtrans.obj: jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  174. jerror.obj: jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
  175. jfdctflt.obj: jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  176. jfdctfst.obj: jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  177. jfdctint.obj: jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  178. jidctflt.obj: jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  179. jidctfst.obj: jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  180. jidctint.obj: jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  181. jidctred.obj: jidctred.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  182. jquant1.obj: jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  183. jquant2.obj: jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  184. jutils.obj: jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  185. jmemmgr.obj: jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  186. jmemansi.obj: jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  187. jmemname.obj: jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  188. jmemnobs.obj: jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  189. jmemdos.obj: jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  190. cjpeg.obj: cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  191. djpeg.obj: djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  192. jpegtran.obj: jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  193. cdjpeg.obj: cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  194. rdcolmap.obj: rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  195. rdswitch.obj: rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  196. rdjpgcom.obj: rdjpgcom.c jinclude.h jconfig.h
  197. wrjpgcom.obj: wrjpgcom.c jinclude.h jconfig.h
  198. rdppm.obj: rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  199. wrppm.obj: wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  200. rdgif.obj: rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  201. wrgif.obj: wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  202. rdtarga.obj: rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  203. wrtarga.obj: wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  204. rdbmp.obj: rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  205. wrbmp.obj: wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  206. rdrle.obj: rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  207. wrrle.obj: wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  208. jmemdosa.obj : jmemdosa.asm
  209. masm /mx $*;