makefile.mc6 14 KB

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