makefile.b32 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. # Makefile for Independent JPEG Group's software
  2. # This makefile is suitable for Borland C on MS-DOS.
  3. # It works with Borland C++ 32-bit for DOS, revision 5.0 or later.
  4. # Thanks to Tom Wright and Ge' Weijers (original DOS) and
  5. # Joe Slater for adding 32-bit additions (needed for Borland
  6. # revision 5.5).
  7. # Read installation instructions before saying "make" !!
  8. # The name of your C compiler:
  9. CC= bcc32
  10. # You may need to adjust these cc options:
  11. CFLAGS= -O2 -w-par -w-stu -w-ccc -w-rch -w-aus
  12. # -w-par suppresses warnings about unused function parameters
  13. # -w-stu suppresses warnings about incomplete structures
  14. # -w-ccc suppresses warnings about compile-time-constant conditions
  15. # -w-rch suppresses warnings about unreachable code
  16. # Generally, we recommend defining any configuration symbols in jconfig.h,
  17. # NOT via -D switches here.
  18. # Link-time cc options:
  19. LDFLAGS=
  20. # -lc case-significant link
  21. # Put here the object file name for the correct system-dependent memory
  22. # manager file.
  23. # SYSDEPMEMLIB must list the same files with "+" signs for the librarian.
  24. SYSDEPMEM= jmemnobs.obj
  25. SYSDEPMEMLIB= +jmemnobs.obj
  26. # End of configurable options.
  27. # source files: JPEG library proper
  28. LIBSOURCES= jaricom.c jcapimin.c jcapistd.c jcarith.c jccoefct.c jccolor.c \
  29. jcdctmgr.c jchuff.c jcinit.c jcmainct.c jcmarker.c jcmaster.c \
  30. jcomapi.c jcparam.c jcprepct.c jcsample.c jctrans.c jdapimin.c \
  31. jdapistd.c jdarith.c jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c \
  32. jddctmgr.c jdhuff.c jdinput.c jdmainct.c jdmarker.c jdmaster.c \
  33. jdmerge.c jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c \
  34. jfdctfst.c jfdctint.c jidctflt.c jidctfst.c jidctint.c jquant1.c \
  35. jquant2.c jutils.c jmemmgr.c
  36. # memmgr back ends: compile only one of these into a working library
  37. SYSDEPSOURCES= jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemmac.c
  38. # source files: cjpeg/djpeg/jpegtran applications, also rdjpgcom/wrjpgcom
  39. APPSOURCES= cjpeg.c djpeg.c jpegtran.c rdjpgcom.c wrjpgcom.c cdjpeg.c \
  40. rdcolmap.c rdswitch.c transupp.c rdppm.c wrppm.c rdgif.c wrgif.c \
  41. rdtarga.c wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c
  42. SOURCES= $(LIBSOURCES) $(SYSDEPSOURCES) $(APPSOURCES)
  43. # files included by source files
  44. INCLUDES= jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h jpegint.h \
  45. jpeglib.h jversion.h cdjpeg.h cderror.h transupp.h
  46. # documentation, test, and support files
  47. DOCS= README install.txt usage.txt cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 \
  48. wrjpgcom.1 wizard.txt example.c libjpeg.txt structure.txt \
  49. coderules.txt filelist.txt change.log
  50. MKFILES= configure Makefile.in makefile.ansi makefile.unix makefile.b32 \
  51. makefile.bcc makefile.mc6 makefile.dj makefile.wat makefile.vc \
  52. makejdsw.vc6 makeadsw.vc6 makejdep.vc6 makejdsp.vc6 makejmak.vc6 \
  53. makecdep.vc6 makecdsp.vc6 makecmak.vc6 makeddep.vc6 makeddsp.vc6 \
  54. makedmak.vc6 maketdep.vc6 maketdsp.vc6 maketmak.vc6 makerdep.vc6 \
  55. makerdsp.vc6 makermak.vc6 makewdep.vc6 makewdsp.vc6 makewmak.vc6 \
  56. makejsln.v10 makeasln.v10 makejvcx.v10 makejfil.v10 makecvcx.v10 \
  57. makecfil.v10 makedvcx.v10 makedfil.v10 maketvcx.v10 maketfil.v10 \
  58. makervcx.v10 makerfil.v10 makewvcx.v10 makewfil.v10 makeproj.mac \
  59. makcjpeg.st makdjpeg.st makljpeg.st maktjpeg.st makefile.manx \
  60. makefile.sas makefile.mms makefile.vms makvms.opt
  61. CONFIGFILES= jconfig.cfg jconfig.bcc jconfig.mc6 jconfig.dj jconfig.wat \
  62. jconfig.vc jconfig.mac jconfig.st jconfig.manx jconfig.sas \
  63. jconfig.vms
  64. CONFIGUREFILES= config.guess config.sub install-sh ltmain.sh depcomp \
  65. missing ar-lib
  66. OTHERFILES= jconfig.txt ckconfig.c jmemdosa.asm libjpeg.map
  67. TESTFILES= testorig.jpg testimg.ppm testimg.bmp testimg.jpg testprog.jpg \
  68. testimgp.jpg
  69. DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) \
  70. $(CONFIGUREFILES) $(OTHERFILES) $(TESTFILES)
  71. # library object files common to compression and decompression
  72. COMOBJECTS= jaricom.obj jcomapi.obj jutils.obj jerror.obj jmemmgr.obj $(SYSDEPMEM)
  73. # compression library object files
  74. CLIBOBJECTS= jcapimin.obj jcapistd.obj jcarith.obj jctrans.obj jcparam.obj \
  75. jdatadst.obj jcinit.obj jcmaster.obj jcmarker.obj jcmainct.obj \
  76. jcprepct.obj jccoefct.obj jccolor.obj jcsample.obj jchuff.obj \
  77. jcdctmgr.obj jfdctfst.obj jfdctflt.obj jfdctint.obj
  78. # decompression library object files
  79. DLIBOBJECTS= jdapimin.obj jdapistd.obj jdarith.obj jdtrans.obj jdatasrc.obj \
  80. jdmaster.obj jdinput.obj jdmarker.obj jdhuff.obj jdmainct.obj \
  81. jdcoefct.obj jdpostct.obj jddctmgr.obj jidctfst.obj jidctflt.obj \
  82. jidctint.obj jdsample.obj jdcolor.obj jquant1.obj jquant2.obj \
  83. jdmerge.obj
  84. # These objectfiles are included in libjpeg.lib
  85. LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
  86. # object files for sample applications (excluding library files)
  87. COBJECTS= cjpeg.obj rdppm.obj rdgif.obj rdtarga.obj rdrle.obj rdbmp.obj \
  88. rdswitch.obj cdjpeg.obj
  89. DOBJECTS= djpeg.obj wrppm.obj wrgif.obj wrtarga.obj wrrle.obj wrbmp.obj \
  90. rdcolmap.obj cdjpeg.obj
  91. TROBJECTS= jpegtran.obj rdswitch.obj cdjpeg.obj transupp.obj
  92. all: libjpeg.lib cjpeg.exe djpeg.exe jpegtran.exe rdjpgcom.exe wrjpgcom.exe
  93. libjpeg.lib: $(LIBOBJECTS)
  94. - del libjpeg.lib
  95. tlib libjpeg.lib /E /C @&&|
  96. +jcapimin.obj +jcapistd.obj +jcarith.obj +jctrans.obj +jcparam.obj &
  97. +jdatadst.obj +jcinit.obj +jcmaster.obj +jcmarker.obj +jcmainct.obj &
  98. +jcprepct.obj +jccoefct.obj +jccolor.obj +jcsample.obj +jchuff.obj &
  99. +jcdctmgr.obj +jfdctfst.obj +jfdctflt.obj +jfdctint.obj +jdapimin.obj &
  100. +jdapistd.obj +jdarith.obj +jdtrans.obj +jdatasrc.obj +jdmaster.obj &
  101. +jdinput.obj +jdmarker.obj +jdhuff.obj +jdmainct.obj +jdcoefct.obj &
  102. +jdpostct.obj +jddctmgr.obj +jidctfst.obj +jidctflt.obj +jidctint.obj &
  103. +jdsample.obj +jdcolor.obj +jquant1.obj +jquant2.obj +jdmerge.obj &
  104. +jaricom.obj +jcomapi.obj +jutils.obj +jerror.obj +jmemmgr.obj &
  105. $(SYSDEPMEMLIB)
  106. |
  107. cjpeg.exe: $(COBJECTS) libjpeg.lib
  108. $(CC) $(LDFLAGS) -ecjpeg.exe $(COBJECTS) libjpeg.lib
  109. djpeg.exe: $(DOBJECTS) libjpeg.lib
  110. $(CC) $(LDFLAGS) -edjpeg.exe $(DOBJECTS) libjpeg.lib
  111. jpegtran.exe: $(TROBJECTS) libjpeg.lib
  112. $(CC) $(LDFLAGS) -ejpegtran.exe $(TROBJECTS) libjpeg.lib
  113. rdjpgcom.exe: rdjpgcom.c
  114. $(CC) $(CFLAGS) rdjpgcom.c
  115. wrjpgcom.exe: wrjpgcom.c
  116. $(CC) $(CFLAGS) wrjpgcom.c
  117. # This "{}" syntax allows Borland Make to "batch" source files.
  118. # In this way, each run of the compiler can build many modules.
  119. .c.obj:
  120. $(CC) $(CFLAGS) -c{ $<}
  121. jconfig.h: jconfig.txt
  122. echo You must prepare a system-dependent jconfig.h file.
  123. echo Please read the installation directions in install.txt.
  124. exit 1
  125. clean:
  126. - del *.obj
  127. - del libjpeg.lib
  128. - del cjpeg.exe
  129. - del djpeg.exe
  130. - del jpegtran.exe
  131. - del rdjpgcom.exe
  132. - del wrjpgcom.exe
  133. - del testout*.*
  134. test: cjpeg.exe djpeg.exe jpegtran.exe
  135. - del testout*.*
  136. djpeg -dct int -ppm -outfile testout.ppm testorig.jpg
  137. djpeg -dct int -bmp -colors 256 -outfile testout.bmp testorig.jpg
  138. cjpeg -dct int -outfile testout.jpg testimg.ppm
  139. djpeg -dct int -ppm -outfile testoutp.ppm testprog.jpg
  140. cjpeg -dct int -progressive -opt -outfile testoutp.jpg testimg.ppm
  141. jpegtran -outfile testoutt.jpg testprog.jpg
  142. echo n > n.tmp
  143. comp testimg.ppm testout.ppm < n.tmp
  144. comp testimg.bmp testout.bmp < n.tmp
  145. comp testimg.jpg testout.jpg < n.tmp
  146. comp testimg.ppm testoutp.ppm < n.tmp
  147. comp testimgp.jpg testoutp.jpg < n.tmp
  148. comp testorig.jpg testoutt.jpg < n.tmp
  149. del n.tmp
  150. jaricom.obj: jaricom.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  151. jcapimin.obj: jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  152. jcapistd.obj: jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  153. jcarith.obj: jcarith.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  154. jccoefct.obj: jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  155. jccolor.obj: jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  156. jcdctmgr.obj: jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  157. jchuff.obj: jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  158. jcinit.obj: jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  159. jcmainct.obj: jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  160. jcmarker.obj: jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  161. jcmaster.obj: jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  162. jcomapi.obj: jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  163. jcparam.obj: jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  164. jcprepct.obj: jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  165. jcsample.obj: jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  166. jctrans.obj: jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  167. jdapimin.obj: jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  168. jdapistd.obj: jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  169. jdarith.obj: jdarith.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  170. jdatadst.obj: jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  171. jdatasrc.obj: jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  172. jdcoefct.obj: jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  173. jdcolor.obj: jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  174. jddctmgr.obj: jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  175. jdhuff.obj: jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  176. jdinput.obj: jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  177. jdmainct.obj: jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  178. jdmarker.obj: jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  179. jdmaster.obj: jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  180. jdmerge.obj: jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  181. jdpostct.obj: jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  182. jdsample.obj: jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  183. jdtrans.obj: jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  184. jerror.obj: jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
  185. jfdctflt.obj: jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  186. jfdctfst.obj: jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  187. jfdctint.obj: jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  188. jidctflt.obj: jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  189. jidctfst.obj: jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  190. jidctint.obj: jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  191. jquant1.obj: jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  192. jquant2.obj: jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  193. jutils.obj: jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  194. jmemmgr.obj: jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  195. jmemansi.obj: jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  196. jmemname.obj: jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  197. jmemnobs.obj: jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  198. jmemdos.obj: jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  199. jmemmac.obj: jmemmac.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  200. cjpeg.obj: cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  201. djpeg.obj: djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  202. jpegtran.obj: jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h transupp.h jversion.h
  203. rdjpgcom.obj: rdjpgcom.c jinclude.h jconfig.h
  204. wrjpgcom.obj: wrjpgcom.c jinclude.h jconfig.h
  205. cdjpeg.obj: cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  206. rdcolmap.obj: rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  207. rdswitch.obj: rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  208. transupp.obj: transupp.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h transupp.h
  209. rdppm.obj: rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  210. wrppm.obj: wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  211. rdgif.obj: rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  212. wrgif.obj: wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  213. rdtarga.obj: rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  214. wrtarga.obj: wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  215. rdbmp.obj: rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  216. wrbmp.obj: wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  217. rdrle.obj: rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  218. wrrle.obj: wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  219. jmemdosa.obj: jmemdosa.asm
  220. tasm /mx jmemdosa.asm