makefile.wat 13 KB

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