makefile.wat 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  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 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. all: libjpeg.lib cjpeg.exe djpeg.exe jpegtran.exe rdjpgcom.exe wrjpgcom.exe
  94. libjpeg.lib: $(LIBOBJECTS)
  95. - del libjpeg.lib
  96. * wlib -n libjpeg.lib $(LIBOBJECTS)
  97. cjpeg.exe: $(COBJECTS) libjpeg.lib
  98. $(CC) $(LDFLAGS) $(COBJECTS) libjpeg.lib
  99. djpeg.exe: $(DOBJECTS) libjpeg.lib
  100. $(CC) $(LDFLAGS) $(DOBJECTS) libjpeg.lib
  101. jpegtran.exe: $(TROBJECTS) libjpeg.lib
  102. $(CC) $(LDFLAGS) $(TROBJECTS) libjpeg.lib
  103. rdjpgcom.exe: rdjpgcom.c
  104. $(CC) $(CFLAGS) $(LDFLAGS) rdjpgcom.c
  105. wrjpgcom.exe: wrjpgcom.c
  106. $(CC) $(CFLAGS) $(LDFLAGS) wrjpgcom.c
  107. .c.obj:
  108. $(CC) $(CFLAGS) -c $<
  109. jconfig.h: jconfig.txt
  110. echo You must prepare a system-dependent jconfig.h file.
  111. echo Please read the installation directions in install.txt.
  112. exit 1
  113. clean: .SYMBOLIC
  114. - del *.obj
  115. - del libjpeg.lib
  116. - del cjpeg.exe
  117. - del djpeg.exe
  118. - del jpegtran.exe
  119. - del rdjpgcom.exe
  120. - del wrjpgcom.exe
  121. - del testout*.*
  122. test: cjpeg.exe djpeg.exe jpegtran.exe .SYMBOLIC
  123. - del testout*.*
  124. djpeg -dct int -ppm -outfile testout.ppm testorig.jpg
  125. djpeg -dct int -bmp -colors 256 -outfile testout.bmp testorig.jpg
  126. cjpeg -dct int -outfile testout.jpg testimg.ppm
  127. djpeg -dct int -ppm -outfile testoutp.ppm testprog.jpg
  128. cjpeg -dct int -progressive -opt -outfile testoutp.jpg testimg.ppm
  129. jpegtran -outfile testoutt.jpg testprog.jpg
  130. !ifeq SYSTEM DOS
  131. fc /b testimg.ppm testout.ppm
  132. fc /b testimg.bmp testout.bmp
  133. fc /b testimg.jpg testout.jpg
  134. fc /b testimg.ppm testoutp.ppm
  135. fc /b testimgp.jpg testoutp.jpg
  136. fc /b testorig.jpg testoutt.jpg
  137. !else
  138. echo n > n.tmp
  139. comp testimg.ppm testout.ppm < n.tmp
  140. comp testimg.bmp testout.bmp < n.tmp
  141. comp testimg.jpg testout.jpg < n.tmp
  142. comp testimg.ppm testoutp.ppm < n.tmp
  143. comp testimgp.jpg testoutp.jpg < n.tmp
  144. comp testorig.jpg testoutt.jpg < n.tmp
  145. del n.tmp
  146. !endif
  147. jaricom.obj: jaricom.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  148. jcapimin.obj: jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  149. jcapistd.obj: jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  150. jcarith.obj: jcarith.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  151. jccoefct.obj: jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  152. jccolor.obj: jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  153. jcdctmgr.obj: jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  154. jchuff.obj: jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  155. jcinit.obj: jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  156. jcmainct.obj: jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  157. jcmarker.obj: jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  158. jcmaster.obj: jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  159. jcomapi.obj: jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  160. jcparam.obj: jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  161. jcprepct.obj: jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  162. jcsample.obj: jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  163. jctrans.obj: jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  164. jdapimin.obj: jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  165. jdapistd.obj: jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  166. jdarith.obj: jdarith.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  167. jdatadst.obj: jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  168. jdatasrc.obj: jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  169. jdcoefct.obj: jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  170. jdcolor.obj: jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  171. jddctmgr.obj: jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  172. jdhuff.obj: jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  173. jdinput.obj: jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  174. jdmainct.obj: jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  175. jdmarker.obj: jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  176. jdmaster.obj: jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  177. jdmerge.obj: jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  178. jdpostct.obj: jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  179. jdsample.obj: jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  180. jdtrans.obj: jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  181. jerror.obj: jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
  182. jfdctflt.obj: jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  183. jfdctfst.obj: jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  184. jfdctint.obj: jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  185. jidctflt.obj: jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  186. jidctfst.obj: jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  187. jidctint.obj: jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  188. jquant1.obj: jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  189. jquant2.obj: jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  190. jutils.obj: jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  191. jmemmgr.obj: jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  192. jmemansi.obj: jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  193. jmemname.obj: jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  194. jmemnobs.obj: jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  195. jmemdos.obj: jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  196. jmemmac.obj: jmemmac.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  197. cjpeg.obj: cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  198. djpeg.obj: djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  199. jpegtran.obj: jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h transupp.h jversion.h
  200. rdjpgcom.obj: rdjpgcom.c jinclude.h jconfig.h
  201. wrjpgcom.obj: wrjpgcom.c jinclude.h jconfig.h
  202. cdjpeg.obj: cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  203. rdcolmap.obj: rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  204. rdswitch.obj: rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  205. transupp.obj: transupp.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h transupp.h
  206. rdppm.obj: rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  207. wrppm.obj: wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  208. rdgif.obj: rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  209. wrgif.obj: wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  210. rdtarga.obj: rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  211. wrtarga.obj: wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  212. rdbmp.obj: rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  213. wrbmp.obj: wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  214. rdrle.obj: rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  215. wrrle.obj: wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h