makefile.wat 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. # Makefile for Independent JPEG Group's software
  2. # This makefile is suitable for Watcom C/C++ 10.0 on MS-DOS (using
  3. # dos4g extender), OS/2, and Windows NT console mode.
  4. # Thanks to Janos Haide, jhaide@btrvtech.com.
  5. # Read installation instructions before saying "wmake" !!
  6. # Uncomment line for desired system
  7. SYSTEM=DOS
  8. #SYSTEM=OS2
  9. #SYSTEM=NT
  10. # The name of your C compiler:
  11. CC= wcl386
  12. # You may need to adjust these cc options:
  13. CFLAGS= -4r -ort -wx -zq -bt=$(SYSTEM)
  14. # Caution: avoid -ol or -ox; these generate bad code with 10.0 or 10.0a.
  15. # Generally, we recommend defining any configuration symbols in jconfig.h,
  16. # NOT via -D switches here.
  17. # Link-time cc options:
  18. !ifeq SYSTEM DOS
  19. LDFLAGS= -zq -l=dos4g
  20. !else ifeq SYSTEM OS2
  21. LDFLAGS= -zq -l=os2v2
  22. !else ifeq SYSTEM NT
  23. LDFLAGS= -zq -l=nt
  24. !endif
  25. # Put here the object file name for the correct system-dependent memory
  26. # manager file. jmemnobs should work fine for dos4g or OS/2 environment.
  27. SYSDEPMEM= jmemnobs.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 cdaltui.txt change.log
  52. MKFILES= configure Makefile.in makefile.ansi makefile.unix makefile.xc &
  53. makefile.bcc makefile.b32 makefile.c32 makefile.d32 makefile.x32 &
  54. makefile.b64 makefile.mc6 makefile.dj makefile.wat makefile.vc &
  55. makefile.vs makejdsw.vc6 makeadsw.vc6 makejdep.vc6 makejdsp.vc6 &
  56. makejmak.vc6 makecdep.vc6 makecdsp.vc6 makecmak.vc6 makeddep.vc6 &
  57. makeddsp.vc6 makedmak.vc6 maketdep.vc6 maketdsp.vc6 maketmak.vc6 &
  58. makerdep.vc6 makerdsp.vc6 makermak.vc6 makewdep.vc6 makewdsp.vc6 &
  59. makewmak.vc6 makejsln.v16 makeasln.v16 makejvcx.v16 makejfil.v16 &
  60. makecvcx.v16 makecfil.v16 makedvcx.v16 makedfil.v16 maketvcx.v16 &
  61. maketfil.v16 makervcx.v16 makerfil.v16 makewvcx.v16 makewfil.v16 &
  62. makajpeg.bcb makcjpeg.bcb makdjpeg.bcb makljpeg.bcb makrjpeg.bcb &
  63. maktjpeg.bcb makwjpeg.bcb makcjpeg.st makdjpeg.st makljpeg.st &
  64. maktjpeg.st makeproj.mac makefile.manx makefile.sas makefile.mms &
  65. makefile.vms makvms.opt
  66. CONFIGFILES= jconfig.cfg jconfig.xc jconfig.bcc jconfig.mc6 jconfig.dj &
  67. jconfig.wat jconfig.vc jconfig.mac jconfig.st jconfig.manx &
  68. jconfig.sas jconfig.vms
  69. CONFIGUREFILES= config.guess config.sub install-sh ltmain.sh depcomp &
  70. missing ar-lib
  71. OTHERFILES= jconfig.txt ckconfig.c jmemdosa.asm libjpeg.map libjpeg.pc.in &
  72. cjpegalt.c djpegalt.c
  73. TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.bmp testimg.jpg &
  74. testprog.jpg testimgp.jpg
  75. DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) &
  76. $(CONFIGUREFILES) $(OTHERFILES) $(TESTFILES)
  77. # library object files common to compression and decompression
  78. COMOBJECTS= jaricom.obj jcomapi.obj jutils.obj jerror.obj jmemmgr.obj $(SYSDEPMEM)
  79. # compression library object files
  80. CLIBOBJECTS= jcapimin.obj jcapistd.obj jcarith.obj jctrans.obj jcparam.obj &
  81. jdatadst.obj jcinit.obj jcmaster.obj jcmarker.obj jcmainct.obj &
  82. jcprepct.obj jccoefct.obj jccolor.obj jcsample.obj jchuff.obj &
  83. jcdctmgr.obj jfdctfst.obj jfdctflt.obj jfdctint.obj
  84. # decompression library object files
  85. DLIBOBJECTS= jdapimin.obj jdapistd.obj jdarith.obj jdtrans.obj jdatasrc.obj &
  86. jdmaster.obj jdinput.obj jdmarker.obj jdhuff.obj jdmainct.obj &
  87. jdcoefct.obj jdpostct.obj jddctmgr.obj jidctfst.obj jidctflt.obj &
  88. jidctint.obj jdsample.obj jdcolor.obj jquant1.obj jquant2.obj &
  89. jdmerge.obj
  90. # These objectfiles are included in libjpeg.lib
  91. LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
  92. # object files for sample applications (excluding library files)
  93. COBJECTS= cjpeg.obj rdppm.obj rdgif.obj rdtarga.obj rdrle.obj rdbmp.obj &
  94. rdswitch.obj cdjpeg.obj
  95. DOBJECTS= djpeg.obj wrppm.obj wrgif.obj wrtarga.obj wrrle.obj wrbmp.obj &
  96. rdcolmap.obj cdjpeg.obj
  97. TROBJECTS= jpegtran.obj rdswitch.obj cdjpeg.obj transupp.obj
  98. all: libjpeg.lib cjpeg.exe djpeg.exe jpegtran.exe rdjpgcom.exe wrjpgcom.exe
  99. libjpeg.lib: $(LIBOBJECTS)
  100. - del libjpeg.lib
  101. * wlib -n libjpeg.lib $(LIBOBJECTS)
  102. cjpeg.exe: $(COBJECTS) libjpeg.lib
  103. $(CC) $(LDFLAGS) $(COBJECTS) libjpeg.lib
  104. djpeg.exe: $(DOBJECTS) libjpeg.lib
  105. $(CC) $(LDFLAGS) $(DOBJECTS) libjpeg.lib
  106. jpegtran.exe: $(TROBJECTS) libjpeg.lib
  107. $(CC) $(LDFLAGS) $(TROBJECTS) libjpeg.lib
  108. rdjpgcom.exe: rdjpgcom.c
  109. $(CC) $(CFLAGS) $(LDFLAGS) rdjpgcom.c
  110. wrjpgcom.exe: wrjpgcom.c
  111. $(CC) $(CFLAGS) $(LDFLAGS) wrjpgcom.c
  112. .c.obj:
  113. $(CC) $(CFLAGS) -c $<
  114. jconfig.h: jconfig.txt
  115. echo You must prepare a system-dependent jconfig.h file.
  116. echo Please read the installation directions in install.txt.
  117. exit 1
  118. clean: .SYMBOLIC
  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 .SYMBOLIC
  128. - del testout*.*
  129. djpeg -dct int -ppm -outfile testout.ppm testorig.jpg
  130. djpeg -dct int -gif -outfile testout.gif testorig.jpg
  131. djpeg -dct int -bmp -colors 256 -outfile testout.bmp testorig.jpg
  132. cjpeg -dct int -outfile testout.jpg testimg.ppm
  133. djpeg -dct int -ppm -outfile testoutp.ppm testprog.jpg
  134. cjpeg -dct int -progressive -opt -outfile testoutp.jpg testimg.ppm
  135. jpegtran -outfile testoutt.jpg testprog.jpg
  136. !ifeq SYSTEM DOS
  137. fc /b testimg.ppm testout.ppm
  138. fc /b testimg.gif testout.gif
  139. fc /b testimg.bmp testout.bmp
  140. fc /b testimg.jpg testout.jpg
  141. fc /b testimg.ppm testoutp.ppm
  142. fc /b testimgp.jpg testoutp.jpg
  143. fc /b testorig.jpg testoutt.jpg
  144. !else
  145. echo n > n.tmp
  146. comp testimg.ppm testout.ppm < n.tmp
  147. comp testimg.gif testout.gif < n.tmp
  148. comp testimg.bmp testout.bmp < n.tmp
  149. comp testimg.jpg testout.jpg < n.tmp
  150. comp testimg.ppm testoutp.ppm < n.tmp
  151. comp testimgp.jpg testoutp.jpg < n.tmp
  152. comp testorig.jpg testoutt.jpg < n.tmp
  153. del n.tmp
  154. !endif
  155. jaricom.obj: jaricom.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  156. jcapimin.obj: jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  157. jcapistd.obj: jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  158. jcarith.obj: jcarith.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  159. jccoefct.obj: jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  160. jccolor.obj: jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  161. jcdctmgr.obj: jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  162. jchuff.obj: jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  163. jcinit.obj: jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  164. jcmainct.obj: jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  165. jcmarker.obj: jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  166. jcmaster.obj: jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  167. jcomapi.obj: jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  168. jcparam.obj: jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  169. jcprepct.obj: jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  170. jcsample.obj: jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  171. jctrans.obj: jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  172. jdapimin.obj: jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  173. jdapistd.obj: jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  174. jdarith.obj: jdarith.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  175. jdatadst.obj: jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  176. jdatasrc.obj: jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  177. jdcoefct.obj: jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  178. jdcolor.obj: jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  179. jddctmgr.obj: jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  180. jdhuff.obj: jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  181. jdinput.obj: jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  182. jdmainct.obj: jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  183. jdmarker.obj: jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  184. jdmaster.obj: jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  185. jdmerge.obj: jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  186. jdpostct.obj: jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  187. jdsample.obj: jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  188. jdtrans.obj: jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  189. jerror.obj: jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
  190. jfdctflt.obj: jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  191. jfdctfst.obj: jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  192. jfdctint.obj: jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  193. jidctflt.obj: jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  194. jidctfst.obj: jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  195. jidctint.obj: jidctint.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