makefile.mc6 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  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. # Jan-Herman Buining suggests the following switches for MS C 8.0 and a 486:
  15. # CFLAGS = /AM /f- /FPi87 /G3 /Gs /Gy /Ob1 /Oc /Oe /Og /Oi /Ol /On /Oo /Ot \
  16. # /OV4 /W3
  17. # except for jquant1.c, which must be compiled with /Oo- to avoid a compiler
  18. # crash.
  19. # Ingar Steinsland suggests the following switches when building
  20. # a 16-bit Windows DLL:
  21. # CFLAGS = -ALw -Gsw -Zpe -W3 -O2 -Zi -Zd
  22. # Put here the object file name for the correct system-dependent memory
  23. # manager file. For DOS, we recommend jmemdos.c and jmemdosa.asm.
  24. # (But not for Windows; see install.doc if you use this makefile for Windows.)
  25. SYSDEPMEM= jmemdos.obj jmemdosa.obj
  26. # SYSDEPMEMLIB must list the same files with "+" signs for the librarian.
  27. SYSDEPMEMLIB= +jmemdos.obj +jmemdosa.obj
  28. # End of configurable options.
  29. # source files: JPEG library proper
  30. LIBSOURCES= jcapimin.c jcapistd.c jccoefct.c jccolor.c jcdctmgr.c jchuff.c \
  31. jcinit.c jcmainct.c jcmarker.c jcmaster.c jcomapi.c jcparam.c \
  32. jcphuff.c jcprepct.c jcsample.c jctrans.c jdapimin.c jdapistd.c \
  33. jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c jddctmgr.c jdhuff.c \
  34. jdinput.c jdmainct.c jdmarker.c jdmaster.c jdmerge.c jdphuff.c \
  35. jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c jfdctfst.c \
  36. jfdctint.c jidctflt.c jidctfst.c jidctint.c jidctred.c jquant1.c \
  37. jquant2.c jutils.c jmemmgr.c
  38. # memmgr back ends: compile only one of these into a working library
  39. SYSDEPSOURCES= jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemmac.c
  40. # source files: cjpeg/djpeg/jpegtran applications, also rdjpgcom/wrjpgcom
  41. APPSOURCES= cjpeg.c djpeg.c jpegtran.c rdjpgcom.c wrjpgcom.c cdjpeg.c \
  42. rdcolmap.c rdswitch.c transupp.c rdppm.c wrppm.c rdgif.c wrgif.c \
  43. rdtarga.c wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c
  44. SOURCES= $(LIBSOURCES) $(SYSDEPSOURCES) $(APPSOURCES)
  45. # files included by source files
  46. INCLUDES= jchuff.h jdhuff.h jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h \
  47. jpegint.h jpeglib.h jversion.h cdjpeg.h cderror.h transupp.h
  48. # documentation, test, and support files
  49. DOCS= README install.doc usage.doc cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 \
  50. wrjpgcom.1 wizard.doc example.c libjpeg.doc structure.doc \
  51. coderules.doc filelist.doc change.log
  52. MKFILES= configure makefile.cfg makefile.ansi makefile.unix makefile.bcc \
  53. makefile.mc6 makefile.dj makefile.wat makefile.vc makelib.ds \
  54. makeapps.ds makeproj.mac makcjpeg.st makdjpeg.st makljpeg.st \
  55. maktjpeg.st makefile.manx makefile.sas makefile.mms makefile.vms \
  56. makvms.opt
  57. CONFIGFILES= jconfig.cfg jconfig.bcc jconfig.mc6 jconfig.dj jconfig.wat \
  58. jconfig.vc jconfig.mac jconfig.st jconfig.manx jconfig.sas \
  59. jconfig.vms
  60. CONFIGUREFILES= config.guess config.sub install-sh ltconfig ltmain.sh
  61. OTHERFILES= jconfig.doc ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm
  62. TESTFILES= testorig.jpg testimg.ppm testimg.bmp testimg.jpg testprog.jpg \
  63. testimgp.jpg
  64. DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) \
  65. $(CONFIGUREFILES) $(OTHERFILES) $(TESTFILES)
  66. # library object files common to compression and decompression
  67. COMOBJECTS= jcomapi.obj jutils.obj jerror.obj jmemmgr.obj $(SYSDEPMEM)
  68. # compression library object files
  69. CLIBOBJECTS= jcapimin.obj jcapistd.obj jctrans.obj jcparam.obj jdatadst.obj \
  70. jcinit.obj jcmaster.obj jcmarker.obj jcmainct.obj jcprepct.obj \
  71. jccoefct.obj jccolor.obj jcsample.obj jchuff.obj jcphuff.obj \
  72. jcdctmgr.obj jfdctfst.obj jfdctflt.obj jfdctint.obj
  73. # decompression library object files
  74. DLIBOBJECTS= jdapimin.obj jdapistd.obj jdtrans.obj jdatasrc.obj \
  75. jdmaster.obj jdinput.obj jdmarker.obj jdhuff.obj jdphuff.obj \
  76. jdmainct.obj jdcoefct.obj jdpostct.obj jddctmgr.obj jidctfst.obj \
  77. jidctflt.obj jidctint.obj jidctred.obj jdsample.obj jdcolor.obj \
  78. jquant1.obj jquant2.obj jdmerge.obj
  79. # These objectfiles are included in libjpeg.lib
  80. LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
  81. # object files for sample applications (excluding library files)
  82. COBJECTS= cjpeg.obj rdppm.obj rdgif.obj rdtarga.obj rdrle.obj rdbmp.obj \
  83. rdswitch.obj cdjpeg.obj
  84. DOBJECTS= djpeg.obj wrppm.obj wrgif.obj wrtarga.obj wrrle.obj wrbmp.obj \
  85. rdcolmap.obj cdjpeg.obj
  86. TROBJECTS= jpegtran.obj rdswitch.obj cdjpeg.obj transupp.obj
  87. # need linker response file because file list > 128 chars
  88. RFILE = libjpeg.ans
  89. all: libjpeg.lib cjpeg.exe djpeg.exe jpegtran.exe rdjpgcom.exe wrjpgcom.exe
  90. libjpeg.lib: $(LIBOBJECTS) $(RFILE)
  91. del libjpeg.lib
  92. lib @$(RFILE)
  93. # linker response file for building libjpeg.lib
  94. $(RFILE) : makefile
  95. del $(RFILE)
  96. echo libjpeg.lib >$(RFILE)
  97. # silly want-to-create-it prompt:
  98. echo y >>$(RFILE)
  99. echo +jcapimin.obj +jcapistd.obj +jctrans.obj +jcparam.obj & >>$(RFILE)
  100. echo +jdatadst.obj +jcinit.obj +jcmaster.obj +jcmarker.obj & >>$(RFILE)
  101. echo +jcmainct.obj +jcprepct.obj +jccoefct.obj & >>$(RFILE)
  102. echo +jccolor.obj +jcsample.obj +jchuff.obj +jcphuff.obj & >>$(RFILE)
  103. echo +jcdctmgr.obj +jfdctfst.obj +jfdctflt.obj & >>$(RFILE)
  104. echo +jfdctint.obj +jdapimin.obj +jdapistd.obj & >>$(RFILE)
  105. echo +jdtrans.obj +jdatasrc.obj +jdmaster.obj +jdinput.obj & >>$(RFILE)
  106. echo +jdmarker.obj +jdhuff.obj +jdphuff.obj +jdmainct.obj & >>$(RFILE)
  107. echo +jdcoefct.obj +jdpostct.obj +jddctmgr.obj & >>$(RFILE)
  108. echo +jidctfst.obj +jidctflt.obj +jidctint.obj & >>$(RFILE)
  109. echo +jidctred.obj +jdsample.obj +jdcolor.obj +jquant1.obj & >>$(RFILE)
  110. echo +jquant2.obj +jdmerge.obj +jcomapi.obj +jutils.obj & >>$(RFILE)
  111. echo +jerror.obj +jmemmgr.obj & >>$(RFILE)
  112. echo $(SYSDEPMEMLIB) ; >>$(RFILE)
  113. cjpeg.exe: $(COBJECTS) libjpeg.lib
  114. echo $(COBJECTS) >cjpeg.lst
  115. link /STACK:4096 /EXEPACK @cjpeg.lst, cjpeg.exe, , libjpeg.lib, ;
  116. del cjpeg.lst
  117. djpeg.exe: $(DOBJECTS) libjpeg.lib
  118. echo $(DOBJECTS) >djpeg.lst
  119. link /STACK:4096 /EXEPACK @djpeg.lst, djpeg.exe, , libjpeg.lib, ;
  120. del djpeg.lst
  121. jpegtran.exe: $(TROBJECTS) libjpeg.lib
  122. link /STACK:4096 /EXEPACK $(TROBJECTS), jpegtran.exe, , libjpeg.lib, ;
  123. rdjpgcom.exe: rdjpgcom.c
  124. $(CC) -AS -O -W3 rdjpgcom.c
  125. # wrjpgcom needs large model so it can malloc a 64K chunk
  126. wrjpgcom.exe: wrjpgcom.c
  127. $(CC) -AL -O -W3 wrjpgcom.c
  128. jconfig.h: jconfig.doc
  129. echo You must prepare a system-dependent jconfig.h file.
  130. echo Please read the installation directions in install.doc.
  131. exit 1
  132. clean:
  133. del *.obj
  134. del libjpeg.lib
  135. del cjpeg.exe
  136. del djpeg.exe
  137. del jpegtran.exe
  138. del rdjpgcom.exe
  139. del wrjpgcom.exe
  140. del testout*.*
  141. test: cjpeg.exe djpeg.exe jpegtran.exe
  142. del testout*.*
  143. djpeg -dct int -ppm -outfile testout.ppm testorig.jpg
  144. djpeg -dct int -bmp -colors 256 -outfile testout.bmp testorig.jpg
  145. cjpeg -dct int -outfile testout.jpg testimg.ppm
  146. djpeg -dct int -ppm -outfile testoutp.ppm testprog.jpg
  147. cjpeg -dct int -progressive -opt -outfile testoutp.jpg testimg.ppm
  148. jpegtran -outfile testoutt.jpg testprog.jpg
  149. fc /b testimg.ppm testout.ppm
  150. fc /b testimg.bmp testout.bmp
  151. fc /b testimg.jpg testout.jpg
  152. fc /b testimg.ppm testoutp.ppm
  153. fc /b testimgp.jpg testoutp.jpg
  154. fc /b testorig.jpg testoutt.jpg
  155. jcapimin.obj: jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  156. jcapistd.obj: jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  157. jccoefct.obj: jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  158. jccolor.obj: jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  159. jcdctmgr.obj: jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  160. jchuff.obj: jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h
  161. jcinit.obj: jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  162. jcmainct.obj: jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  163. jcmarker.obj: jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  164. jcmaster.obj: jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  165. jcomapi.obj: jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  166. jcparam.obj: jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  167. jcphuff.obj: jcphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h
  168. jcprepct.obj: jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  169. jcsample.obj: jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  170. jctrans.obj: jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  171. jdapimin.obj: jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  172. jdapistd.obj: jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  173. jdatadst.obj: jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  174. jdatasrc.obj: jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  175. jdcoefct.obj: jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  176. jdcolor.obj: jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  177. jddctmgr.obj: jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  178. jdhuff.obj: jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h
  179. jdinput.obj: jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  180. jdmainct.obj: jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  181. jdmarker.obj: jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  182. jdmaster.obj: jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  183. jdmerge.obj: jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  184. jdphuff.obj: jdphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h
  185. jdpostct.obj: jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  186. jdsample.obj: jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  187. jdtrans.obj: jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  188. jerror.obj: jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
  189. jfdctflt.obj: jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  190. jfdctfst.obj: jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  191. jfdctint.obj: jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  192. jidctflt.obj: jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  193. jidctfst.obj: jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  194. jidctint.obj: jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  195. jidctred.obj: jidctred.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  196. jquant1.obj: jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  197. jquant2.obj: jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  198. jutils.obj: jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  199. jmemmgr.obj: jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  200. jmemansi.obj: jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  201. jmemname.obj: jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  202. jmemnobs.obj: jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  203. jmemdos.obj: jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  204. jmemmac.obj: jmemmac.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  205. cjpeg.obj: cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  206. djpeg.obj: djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  207. jpegtran.obj: jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h transupp.h jversion.h
  208. rdjpgcom.obj: rdjpgcom.c jinclude.h jconfig.h
  209. wrjpgcom.obj: wrjpgcom.c jinclude.h jconfig.h
  210. cdjpeg.obj: cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  211. rdcolmap.obj: rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  212. rdswitch.obj: rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  213. transupp.obj: transupp.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h transupp.h
  214. rdppm.obj: rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  215. wrppm.obj: wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  216. rdgif.obj: rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  217. wrgif.obj: wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  218. rdtarga.obj: rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  219. wrtarga.obj: wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  220. rdbmp.obj: rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  221. wrbmp.obj: wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  222. rdrle.obj: rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  223. wrrle.obj: wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  224. jmemdosa.obj : jmemdosa.asm
  225. masm /mx $*;