makefile.mc6 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  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.txt 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= jaricom.c jcapimin.c jcapistd.c jcarith.c jccoefct.c jccolor.c \
  31. jcdctmgr.c jchuff.c jcinit.c jcmainct.c jcmarker.c jcmaster.c \
  32. jcomapi.c jcparam.c jcprepct.c jcsample.c jctrans.c jdapimin.c \
  33. jdapistd.c jdarith.c jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c \
  34. jddctmgr.c jdhuff.c jdinput.c jdmainct.c jdmarker.c jdmaster.c \
  35. jdmerge.c jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c \
  36. jfdctfst.c jfdctint.c jidctflt.c jidctfst.c jidctint.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= jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h jpegint.h \
  47. jpeglib.h jversion.h cdjpeg.h cderror.h transupp.h
  48. # documentation, test, and support files
  49. DOCS= README install.txt usage.txt cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 \
  50. wrjpgcom.1 wizard.txt example.c libjpeg.txt structure.txt \
  51. coderules.txt filelist.txt change.log
  52. MKFILES= configure Makefile.in makefile.ansi makefile.unix makefile.bcc \
  53. makefile.mc6 makefile.dj makefile.wat makefile.vc makejdsw.vc6 \
  54. makeadsw.vc6 makejdep.vc6 makejdsp.vc6 makejmak.vc6 makecdep.vc6 \
  55. makecdsp.vc6 makecmak.vc6 makeddep.vc6 makeddsp.vc6 makedmak.vc6 \
  56. maketdep.vc6 maketdsp.vc6 maketmak.vc6 makerdep.vc6 makerdsp.vc6 \
  57. makermak.vc6 makewdep.vc6 makewdsp.vc6 makewmak.vc6 makejsln.vc9 \
  58. makeasln.vc9 makejvcp.vc9 makecvcp.vc9 makedvcp.vc9 maketvcp.vc9 \
  59. makervcp.vc9 makewvcp.vc9 makeproj.mac makcjpeg.st makdjpeg.st \
  60. makljpeg.st maktjpeg.st makefile.manx makefile.sas makefile.mms \
  61. makefile.vms makvms.opt
  62. CONFIGFILES= jconfig.cfg jconfig.bcc jconfig.mc6 jconfig.dj jconfig.wat \
  63. jconfig.vc jconfig.mac jconfig.st jconfig.manx jconfig.sas \
  64. jconfig.vms
  65. CONFIGUREFILES= config.guess config.sub install-sh ltmain.sh depcomp missing
  66. OTHERFILES= jconfig.txt ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm \
  67. libjpeg.map
  68. TESTFILES= testorig.jpg testimg.ppm testimg.bmp testimg.jpg testprog.jpg \
  69. testimgp.jpg
  70. DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) \
  71. $(CONFIGUREFILES) $(OTHERFILES) $(TESTFILES)
  72. # library object files common to compression and decompression
  73. COMOBJECTS= jaricom.obj jcomapi.obj jutils.obj jerror.obj jmemmgr.obj $(SYSDEPMEM)
  74. # compression library object files
  75. CLIBOBJECTS= jcapimin.obj jcapistd.obj jcarith.obj jctrans.obj jcparam.obj \
  76. jdatadst.obj jcinit.obj jcmaster.obj jcmarker.obj jcmainct.obj \
  77. jcprepct.obj jccoefct.obj jccolor.obj jcsample.obj jchuff.obj \
  78. jcdctmgr.obj jfdctfst.obj jfdctflt.obj jfdctint.obj
  79. # decompression library object files
  80. DLIBOBJECTS= jdapimin.obj jdapistd.obj jdarith.obj jdtrans.obj jdatasrc.obj \
  81. jdmaster.obj jdinput.obj jdmarker.obj jdhuff.obj jdmainct.obj \
  82. jdcoefct.obj jdpostct.obj jddctmgr.obj jidctfst.obj jidctflt.obj \
  83. jidctint.obj jdsample.obj jdcolor.obj jquant1.obj jquant2.obj \
  84. jdmerge.obj
  85. # These objectfiles are included in libjpeg.lib
  86. LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
  87. # object files for sample applications (excluding library files)
  88. COBJECTS= cjpeg.obj rdppm.obj rdgif.obj rdtarga.obj rdrle.obj rdbmp.obj \
  89. rdswitch.obj cdjpeg.obj
  90. DOBJECTS= djpeg.obj wrppm.obj wrgif.obj wrtarga.obj wrrle.obj wrbmp.obj \
  91. rdcolmap.obj cdjpeg.obj
  92. TROBJECTS= jpegtran.obj rdswitch.obj cdjpeg.obj transupp.obj
  93. # need linker response file because file list > 128 chars
  94. RFILE = libjpeg.ans
  95. all: libjpeg.lib cjpeg.exe djpeg.exe jpegtran.exe rdjpgcom.exe wrjpgcom.exe
  96. libjpeg.lib: $(LIBOBJECTS) $(RFILE)
  97. del libjpeg.lib
  98. lib @$(RFILE)
  99. # linker response file for building libjpeg.lib
  100. $(RFILE) : makefile
  101. del $(RFILE)
  102. echo libjpeg.lib >$(RFILE)
  103. # silly want-to-create-it prompt:
  104. echo y >>$(RFILE)
  105. echo +jcapimin.obj +jcapistd.obj +jcarith.obj +jctrans.obj & >>$(RFILE)
  106. echo +jcparam.obj +jdatadst.obj +jcinit.obj +jcmaster.obj & >>$(RFILE)
  107. echo +jcmarker.obj +jcmainct.obj +jcprepct.obj & >>$(RFILE)
  108. echo +jccoefct.obj +jccolor.obj +jcsample.obj +jchuff.obj & >>$(RFILE)
  109. echo +jcdctmgr.obj +jfdctfst.obj +jfdctflt.obj & >>$(RFILE)
  110. echo +jfdctint.obj +jdapimin.obj +jdapistd.obj & >>$(RFILE)
  111. echo +jdarith.obj +jdtrans.obj +jdatasrc.obj +jdmaster.obj & >>$(RFILE)
  112. echo +jdinput.obj +jdmarker.obj +jdhuff.obj +jdmainct.obj & >>$(RFILE)
  113. echo +jdcoefct.obj +jdpostct.obj +jddctmgr.obj & >>$(RFILE)
  114. echo +jidctfst.obj +jidctflt.obj +jidctint.obj & >>$(RFILE)
  115. echo +jdsample.obj +jdcolor.obj +jquant1.obj & >>$(RFILE)
  116. echo +jquant2.obj +jdmerge.obj +jaricom.obj +jcomapi.obj & >>$(RFILE)
  117. echo +jutils.obj +jerror.obj +jmemmgr.obj & >>$(RFILE)
  118. echo $(SYSDEPMEMLIB) ; >>$(RFILE)
  119. cjpeg.exe: $(COBJECTS) libjpeg.lib
  120. echo $(COBJECTS) >cjpeg.lst
  121. link /STACK:4096 /EXEPACK @cjpeg.lst, cjpeg.exe, , libjpeg.lib, ;
  122. del cjpeg.lst
  123. djpeg.exe: $(DOBJECTS) libjpeg.lib
  124. echo $(DOBJECTS) >djpeg.lst
  125. link /STACK:4096 /EXEPACK @djpeg.lst, djpeg.exe, , libjpeg.lib, ;
  126. del djpeg.lst
  127. jpegtran.exe: $(TROBJECTS) libjpeg.lib
  128. link /STACK:4096 /EXEPACK $(TROBJECTS), jpegtran.exe, , libjpeg.lib, ;
  129. rdjpgcom.exe: rdjpgcom.c
  130. $(CC) -AS -O -W3 rdjpgcom.c
  131. # wrjpgcom needs large model so it can malloc a 64K chunk
  132. wrjpgcom.exe: wrjpgcom.c
  133. $(CC) -AL -O -W3 wrjpgcom.c
  134. jconfig.h: jconfig.txt
  135. echo You must prepare a system-dependent jconfig.h file.
  136. echo Please read the installation directions in install.txt.
  137. exit 1
  138. clean:
  139. del *.obj
  140. del libjpeg.lib
  141. del cjpeg.exe
  142. del djpeg.exe
  143. del jpegtran.exe
  144. del rdjpgcom.exe
  145. del wrjpgcom.exe
  146. del testout*.*
  147. test: cjpeg.exe djpeg.exe jpegtran.exe
  148. del testout*.*
  149. djpeg -dct int -ppm -outfile testout.ppm testorig.jpg
  150. djpeg -dct int -bmp -colors 256 -outfile testout.bmp testorig.jpg
  151. cjpeg -dct int -outfile testout.jpg testimg.ppm
  152. djpeg -dct int -ppm -outfile testoutp.ppm testprog.jpg
  153. cjpeg -dct int -progressive -opt -outfile testoutp.jpg testimg.ppm
  154. jpegtran -outfile testoutt.jpg testprog.jpg
  155. fc /b testimg.ppm testout.ppm
  156. fc /b testimg.bmp testout.bmp
  157. fc /b testimg.jpg testout.jpg
  158. fc /b testimg.ppm testoutp.ppm
  159. fc /b testimgp.jpg testoutp.jpg
  160. fc /b testorig.jpg testoutt.jpg
  161. jaricom.obj: jaricom.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  162. jcapimin.obj: jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  163. jcapistd.obj: jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  164. jcarith.obj: jcarith.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  165. jccoefct.obj: jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  166. jccolor.obj: jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  167. jcdctmgr.obj: jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  168. jchuff.obj: jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  169. jcinit.obj: jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  170. jcmainct.obj: jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  171. jcmarker.obj: jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  172. jcmaster.obj: jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  173. jcomapi.obj: jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  174. jcparam.obj: jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  175. jcprepct.obj: jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  176. jcsample.obj: jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  177. jctrans.obj: jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  178. jdapimin.obj: jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  179. jdapistd.obj: jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  180. jdarith.obj: jdarith.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  181. jdatadst.obj: jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  182. jdatasrc.obj: jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  183. jdcoefct.obj: jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  184. jdcolor.obj: jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  185. jddctmgr.obj: jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  186. jdhuff.obj: jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  187. jdinput.obj: jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  188. jdmainct.obj: jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  189. jdmarker.obj: jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  190. jdmaster.obj: jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  191. jdmerge.obj: jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  192. jdpostct.obj: jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  193. jdsample.obj: jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  194. jdtrans.obj: jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  195. jerror.obj: jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
  196. jfdctflt.obj: jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  197. jfdctfst.obj: jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  198. jfdctint.obj: jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  199. jidctflt.obj: jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  200. jidctfst.obj: jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  201. jidctint.obj: jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  202. jquant1.obj: jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  203. jquant2.obj: jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  204. jutils.obj: jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  205. jmemmgr.obj: jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  206. jmemansi.obj: jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  207. jmemname.obj: jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  208. jmemnobs.obj: jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  209. jmemdos.obj: jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  210. jmemmac.obj: jmemmac.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  211. cjpeg.obj: cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  212. djpeg.obj: djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  213. jpegtran.obj: jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h transupp.h jversion.h
  214. rdjpgcom.obj: rdjpgcom.c jinclude.h jconfig.h
  215. wrjpgcom.obj: wrjpgcom.c jinclude.h jconfig.h
  216. cdjpeg.obj: cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  217. rdcolmap.obj: rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  218. rdswitch.obj: rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  219. transupp.obj: transupp.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h transupp.h
  220. rdppm.obj: rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  221. wrppm.obj: wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  222. rdgif.obj: rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  223. wrgif.obj: wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  224. rdtarga.obj: rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  225. wrtarga.obj: wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  226. rdbmp.obj: rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  227. wrbmp.obj: wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  228. rdrle.obj: rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  229. wrrle.obj: wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  230. jmemdosa.obj : jmemdosa.asm
  231. masm /mx $*;