home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 2000 March / pcp161b.iso / full / delphi / INFO / EXTRAS / JPEG / SRC / MAKEFILE < prev    next >
Encoding:
Text File  |  1997-03-11  |  13.3 KB  |  253 lines

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