makefile.bcc 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. # Makefile for Independent JPEG Group's software
  2. # This makefile is suitable for Borland C on MS-DOS or OS/2.
  3. # It works with Borland C++ for DOS, revision 3.0 or later,
  4. # and has been tested with Borland C++ for OS/2, revision 2.0.
  5. # Thanks to Tom Wright and Ge' Weijers (original DOS) and
  6. # Ken Porter (OS/2) for this file.
  7. # Read installation instructions before saying "make" !!
  8. # Are we under DOS or OS/2?
  9. !if !$d(DOS) && !$d(OS2)
  10. !if $d(__OS2__)
  11. OS2=1
  12. !else
  13. DOS=1
  14. !endif
  15. !endif
  16. # The name of your C compiler:
  17. CC= bcc
  18. # You may need to adjust these cc options:
  19. !if $d(DOS)
  20. CFLAGS= -O2 -mm -w-par -w-stu -w-ccc -w-rch
  21. !else
  22. CFLAGS= -O1 -w-par -w-stu -w-ccc -w-rch
  23. !endif
  24. # -O2 enables full code optimization (for pre-3.0 Borland C++, use -O -G -Z).
  25. # -O2 is buggy in Borland OS/2 C++ revision 2.0, so use -O1 for now.
  26. # -mm selects medium memory model (near data, far code pointers; DOS only!)
  27. # -w-par suppresses warnings about unused function parameters
  28. # -w-stu suppresses warnings about incomplete structures
  29. # -w-ccc suppresses warnings about compile-time-constant conditions
  30. # -w-rch suppresses warnings about unreachable code
  31. # Generally, we recommend defining any configuration symbols in jconfig.h,
  32. # NOT via -D switches here.
  33. # Link-time cc options:
  34. !if $d(DOS)
  35. LDFLAGS= -mm
  36. # memory model option here must match CFLAGS!
  37. !else
  38. LDFLAGS=
  39. # -lai full-screen app
  40. # -lc case-significant link
  41. !endif
  42. # Put here the object file name for the correct system-dependent memory
  43. # manager file.
  44. # For DOS, we recommend jmemdos.c and jmemdosa.asm.
  45. # For OS/2, we recommend jmemnobs.c (flat memory!)
  46. # SYSDEPMEMLIB must list the same files with "+" signs for the librarian.
  47. !if $d(DOS)
  48. SYSDEPMEM= jmemdos.obj jmemdosa.obj
  49. SYSDEPMEMLIB= +jmemdos.obj +jmemdosa.obj
  50. !else
  51. SYSDEPMEM= jmemnobs.obj
  52. SYSDEPMEMLIB= +jmemnobs.obj
  53. !endif
  54. # End of configurable options.
  55. # source files: JPEG library proper
  56. LIBSOURCES= jcapimin.c jcapistd.c jccoefct.c jccolor.c jcdctmgr.c jchuff.c \
  57. jcinit.c jcmainct.c jcmarker.c jcmaster.c jcomapi.c jcparam.c \
  58. jcphuff.c jcprepct.c jcsample.c jctrans.c jdapimin.c jdapistd.c \
  59. jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c jddctmgr.c jdhuff.c \
  60. jdinput.c jdmainct.c jdmarker.c jdmaster.c jdmerge.c jdphuff.c \
  61. jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c jfdctfst.c \
  62. jfdctint.c jidctflt.c jidctfst.c jidctint.c jidctred.c jquant1.c \
  63. jquant2.c jutils.c jmemmgr.c
  64. # memmgr back ends: compile only one of these into a working library
  65. SYSDEPSOURCES= jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemmac.c
  66. # source files: cjpeg/djpeg/jpegtran applications, also rdjpgcom/wrjpgcom
  67. APPSOURCES= cjpeg.c djpeg.c jpegtran.c cdjpeg.c rdcolmap.c rdswitch.c \
  68. rdjpgcom.c wrjpgcom.c rdppm.c wrppm.c rdgif.c wrgif.c rdtarga.c \
  69. wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c
  70. SOURCES= $(LIBSOURCES) $(SYSDEPSOURCES) $(APPSOURCES)
  71. # files included by source files
  72. INCLUDES= jchuff.h jdhuff.h jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h \
  73. jpegint.h jpeglib.h jversion.h cdjpeg.h cderror.h
  74. # documentation, test, and support files
  75. DOCS= README install.doc usage.doc cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 \
  76. wrjpgcom.1 wizard.doc example.c libjpeg.doc structure.doc \
  77. coderules.doc filelist.doc change.log
  78. MKFILES= configure makefile.cfg makefile.ansi makefile.unix makefile.bcc \
  79. makefile.mc6 makefile.dj makefile.wat makcjpeg.st makdjpeg.st \
  80. makljpeg.st maktjpeg.st makefile.manx makefile.sas makefile.mms \
  81. makefile.vms makvms.opt
  82. CONFIGFILES= jconfig.cfg jconfig.manx jconfig.sas jconfig.st jconfig.bcc \
  83. jconfig.mc6 jconfig.dj jconfig.wat jconfig.vms
  84. OTHERFILES= jconfig.doc ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm
  85. TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.jpg testprog.jpg \
  86. testimgp.jpg
  87. DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) \
  88. $(OTHERFILES) $(TESTFILES)
  89. # library object files common to compression and decompression
  90. COMOBJECTS= jcomapi.obj jutils.obj jerror.obj jmemmgr.obj $(SYSDEPMEM)
  91. # compression library object files
  92. CLIBOBJECTS= jcapimin.obj jcapistd.obj jctrans.obj jcparam.obj jdatadst.obj \
  93. jcinit.obj jcmaster.obj jcmarker.obj jcmainct.obj jcprepct.obj \
  94. jccoefct.obj jccolor.obj jcsample.obj jchuff.obj jcphuff.obj \
  95. jcdctmgr.obj jfdctfst.obj jfdctflt.obj jfdctint.obj
  96. # decompression library object files
  97. DLIBOBJECTS= jdapimin.obj jdapistd.obj jdtrans.obj jdatasrc.obj \
  98. jdmaster.obj jdinput.obj jdmarker.obj jdhuff.obj jdphuff.obj \
  99. jdmainct.obj jdcoefct.obj jdpostct.obj jddctmgr.obj jidctfst.obj \
  100. jidctflt.obj jidctint.obj jidctred.obj jdsample.obj jdcolor.obj \
  101. jquant1.obj jquant2.obj jdmerge.obj
  102. # These objectfiles are included in libjpeg.lib
  103. LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
  104. # object files for sample applications (excluding library files)
  105. COBJECTS= cjpeg.obj rdppm.obj rdgif.obj rdtarga.obj rdrle.obj rdbmp.obj \
  106. rdswitch.obj cdjpeg.obj
  107. DOBJECTS= djpeg.obj wrppm.obj wrgif.obj wrtarga.obj wrrle.obj wrbmp.obj \
  108. rdcolmap.obj cdjpeg.obj
  109. TROBJECTS= jpegtran.obj rdswitch.obj cdjpeg.obj
  110. all: libjpeg.lib cjpeg.exe djpeg.exe jpegtran.exe rdjpgcom.exe wrjpgcom.exe
  111. libjpeg.lib: $(LIBOBJECTS)
  112. - del libjpeg.lib
  113. tlib libjpeg.lib /E /C @&&|
  114. +jcapimin.obj +jcapistd.obj +jctrans.obj +jcparam.obj +jdatadst.obj &
  115. +jcinit.obj +jcmaster.obj +jcmarker.obj +jcmainct.obj +jcprepct.obj &
  116. +jccoefct.obj +jccolor.obj +jcsample.obj +jchuff.obj +jcphuff.obj &
  117. +jcdctmgr.obj +jfdctfst.obj +jfdctflt.obj +jfdctint.obj +jdapimin.obj &
  118. +jdapistd.obj +jdtrans.obj +jdatasrc.obj +jdmaster.obj +jdinput.obj &
  119. +jdmarker.obj +jdhuff.obj +jdphuff.obj +jdmainct.obj +jdcoefct.obj &
  120. +jdpostct.obj +jddctmgr.obj +jidctfst.obj +jidctflt.obj +jidctint.obj &
  121. +jidctred.obj +jdsample.obj +jdcolor.obj +jquant1.obj +jquant2.obj &
  122. +jdmerge.obj +jcomapi.obj +jutils.obj +jerror.obj +jmemmgr.obj &
  123. $(SYSDEPMEMLIB)
  124. |
  125. cjpeg.exe: $(COBJECTS) libjpeg.lib
  126. $(CC) $(LDFLAGS) -ecjpeg.exe $(COBJECTS) libjpeg.lib
  127. djpeg.exe: $(DOBJECTS) libjpeg.lib
  128. $(CC) $(LDFLAGS) -edjpeg.exe $(DOBJECTS) libjpeg.lib
  129. jpegtran.exe: $(TROBJECTS) libjpeg.lib
  130. $(CC) $(LDFLAGS) -ejpegtran.exe $(TROBJECTS) libjpeg.lib
  131. rdjpgcom.exe: rdjpgcom.c
  132. !if $d(DOS)
  133. $(CC) -ms -O rdjpgcom.c
  134. !else
  135. $(CC) $(CFLAGS) rdjpgcom.c
  136. !endif
  137. # On DOS, wrjpgcom needs large model so it can malloc a 64K chunk
  138. wrjpgcom.exe: wrjpgcom.c
  139. !if $d(DOS)
  140. $(CC) -ml -O wrjpgcom.c
  141. !else
  142. $(CC) $(CFLAGS) wrjpgcom.c
  143. !endif
  144. # This "{}" syntax allows Borland Make to "batch" source files.
  145. # In this way, each run of the compiler can build many modules.
  146. .c.obj:
  147. $(CC) $(CFLAGS) -c{ $<}
  148. jconfig.h: jconfig.doc
  149. echo You must prepare a system-dependent jconfig.h file.
  150. echo Please read the installation directions in install.doc.
  151. exit 1
  152. clean:
  153. - del *.obj
  154. - del libjpeg.lib
  155. - del cjpeg.exe
  156. - del djpeg.exe
  157. - del jpegtran.exe
  158. - del rdjpgcom.exe
  159. - del wrjpgcom.exe
  160. - del testout*.*
  161. test: cjpeg.exe djpeg.exe jpegtran.exe
  162. - del testout*.*
  163. djpeg -dct int -ppm -outfile testout.ppm testorig.jpg
  164. djpeg -dct int -gif -outfile testout.gif testorig.jpg
  165. cjpeg -dct int -outfile testout.jpg testimg.ppm
  166. djpeg -dct int -ppm -outfile testoutp.ppm testprog.jpg
  167. cjpeg -dct int -progressive -opt -outfile testoutp.jpg testimg.ppm
  168. jpegtran -outfile testoutt.jpg testprog.jpg
  169. !if $d(DOS)
  170. fc /b testimg.ppm testout.ppm
  171. fc /b testimg.gif testout.gif
  172. fc /b testimg.jpg testout.jpg
  173. fc /b testimg.ppm testoutp.ppm
  174. fc /b testimgp.jpg testoutp.jpg
  175. fc /b testorig.jpg testoutt.jpg
  176. !else
  177. echo n > n.tmp
  178. comp testimg.ppm testout.ppm < n.tmp
  179. comp testimg.gif testout.gif < n.tmp
  180. comp testimg.jpg testout.jpg < n.tmp
  181. comp testimg.ppm testoutp.ppm < n.tmp
  182. comp testimgp.jpg testoutp.jpg < n.tmp
  183. comp testorig.jpg testoutt.jpg < n.tmp
  184. del n.tmp
  185. !endif
  186. jcapimin.obj: jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  187. jcapistd.obj: jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  188. jccoefct.obj: jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  189. jccolor.obj: jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  190. jcdctmgr.obj: jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  191. jchuff.obj: jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h
  192. jcinit.obj: jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  193. jcmainct.obj: jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  194. jcmarker.obj: jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  195. jcmaster.obj: jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  196. jcomapi.obj: jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  197. jcparam.obj: jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  198. jcphuff.obj: jcphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h
  199. jcprepct.obj: jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  200. jcsample.obj: jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  201. jctrans.obj: jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  202. jdapimin.obj: jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  203. jdapistd.obj: jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  204. jdatadst.obj: jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  205. jdatasrc.obj: jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  206. jdcoefct.obj: jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  207. jdcolor.obj: jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  208. jddctmgr.obj: jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  209. jdhuff.obj: jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h
  210. jdinput.obj: jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  211. jdmainct.obj: jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  212. jdmarker.obj: jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  213. jdmaster.obj: jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  214. jdmerge.obj: jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  215. jdphuff.obj: jdphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h
  216. jdpostct.obj: jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  217. jdsample.obj: jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  218. jdtrans.obj: jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  219. jerror.obj: jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
  220. jfdctflt.obj: jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  221. jfdctfst.obj: jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  222. jfdctint.obj: jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  223. jidctflt.obj: jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  224. jidctfst.obj: jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  225. jidctint.obj: jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  226. jidctred.obj: jidctred.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  227. jquant1.obj: jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  228. jquant2.obj: jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  229. jutils.obj: jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  230. jmemmgr.obj: jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  231. jmemansi.obj: jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  232. jmemname.obj: jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  233. jmemnobs.obj: jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  234. jmemdos.obj: jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  235. jmemmac.obj: jmemmac.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  236. cjpeg.obj: cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  237. djpeg.obj: djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  238. jpegtran.obj: jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  239. cdjpeg.obj: cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  240. rdcolmap.obj: rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  241. rdswitch.obj: rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  242. rdjpgcom.obj: rdjpgcom.c jinclude.h jconfig.h
  243. wrjpgcom.obj: wrjpgcom.c jinclude.h jconfig.h
  244. rdppm.obj: rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  245. wrppm.obj: wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  246. rdgif.obj: rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  247. wrgif.obj: wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  248. rdtarga.obj: rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  249. wrtarga.obj: wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  250. rdbmp.obj: rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  251. wrbmp.obj: wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  252. rdrle.obj: rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  253. wrrle.obj: wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  254. jmemdosa.obj: jmemdosa.asm
  255. tasm /mx jmemdosa.asm