home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / GRAPHICS / jpeglib_5a.lzh / JPEG_5A / makefile.bcc < prev    next >
Makefile  |  1995-01-14  |  11KB  |  208 lines

  1. # Makefile for Independent JPEG Group's software
  2.  
  3. # This makefile is suitable for Borland C (Turbo C) on MS-DOS.
  4. # It is set up for Borland C++, revision 3.0 or later.
  5. # For older versions (pre-3.0), replace "-O2" with "-O -G -Z" in CFLAGS.
  6. # If you have an even older version of Turbo C, you may be able to make it
  7. # work by saying "CC= tcc" below.  (Very early versions of Turbo C++,
  8. # like 1.01, are so buggy that you may as well forget it.)
  9. # Thanks to Tom Wright and Ge' Weijers for this file.
  10.  
  11. # Read installation instructions before saying "make" !!
  12.  
  13. # The name of your C compiler:
  14. CC= bcc
  15.  
  16. # You may need to adjust these cc options:
  17. CFLAGS= -mm -w-par -O2
  18. # -mm selects medium memory model (near data, far code pointers)
  19. # -w-par suppresses warnings about unused function parameters
  20. # -O2 enables full code optimization (for pre-3.0 Borland C++, use -O -G -Z)
  21. # Generally, we recommend defining any configuration symbols in jconfig.h,
  22. # NOT via -D switches here.
  23.  
  24. # Link-time cc options:
  25. LDFLAGS= -mm
  26. # memory model option here must match CFLAGS!
  27.  
  28. # Put here the object file name for the correct system-dependent memory
  29. # manager file.  For DOS, we recommend jmemdos.c and jmemdosa.asm.
  30. # If you change this, you'll need to modify the linker response file
  31. # name list, below, by hand!
  32. SYSDEPMEM= jmemdos.obj jmemdosa.obj
  33.  
  34. # End of configurable options.
  35.  
  36.  
  37. # source files: JPEG library proper
  38. LIBSOURCES= jcapi.c jccoefct.c jccolor.c jcdctmgr.c jchuff.c jcmainct.c \
  39.         jcmarker.c jcmaster.c jcomapi.c jcparam.c jcprepct.c jcsample.c \
  40.         jdapi.c jdatasrc.c jdatadst.c jdcoefct.c jdcolor.c jddctmgr.c \
  41.         jdhuff.c jdmainct.c jdmarker.c jdmaster.c jdpostct.c jdsample.c \
  42.         jerror.c jutils.c jfdctfst.c jfdctflt.c jfdctint.c jidctfst.c \
  43.         jidctflt.c jidctint.c jidctred.c jquant1.c jquant2.c jdmerge.c \
  44.         jmemmgr.c jmemansi.c jmemname.c jmemnobs.c jmemdos.c
  45. # source files: cjpeg/djpeg applications, also rdjpgcom/wrjpgcom
  46. APPSOURCES= cjpeg.c djpeg.c rdcolmap.c rdppm.c wrppm.c rdgif.c wrgif.c \
  47.         rdtarga.c wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c rdjpgcom.c \
  48.         wrjpgcom.c
  49. SOURCES= $(LIBSOURCES) $(APPSOURCES)
  50. # files included by source files
  51. INCLUDES= jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h jpegint.h \
  52.         jpeglib.h jversion.h cdjpeg.h cderror.h
  53. # documentation, test, and support files
  54. DOCS= README install.doc usage.doc cjpeg.1 djpeg.1 rdjpgcom.1 wrjpgcom.1 \
  55.         example.c libjpeg.doc structure.doc coderules.doc filelist.doc \
  56.         change.log
  57. MKFILES= configure makefile.cfg makefile.ansi makefile.unix makefile.manx \
  58.         makefile.sas makcjpeg.st makdjpeg.st makljpeg.st makefile.bcc \
  59.         makefile.mc6 makefile.dj makefile.mms makefile.vms makvms.opt
  60. CONFIGFILES= jconfig.cfg jconfig.manx jconfig.sas jconfig.st jconfig.bcc \
  61.         jconfig.mc6 jconfig.dj jconfig.vms
  62. OTHERFILES= jconfig.doc ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm
  63. TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.jpg
  64. DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) \
  65.         $(OTHERFILES) $(TESTFILES)
  66. # library object files common to compression and decompression
  67. COMOBJECTS= jcomapi.obj jutils.obj jerror.obj jmemmgr.obj $(SYSDEPMEM)
  68. # compression library object files
  69. CLIBOBJECTS= jcapi.obj jcparam.obj jdatadst.obj jcmaster.obj jcmarker.obj \
  70.         jcmainct.obj jcprepct.obj jccoefct.obj jccolor.obj jcsample.obj \
  71.         jchuff.obj jcdctmgr.obj jfdctfst.obj jfdctflt.obj jfdctint.obj
  72. # decompression library object files
  73. DLIBOBJECTS= jdapi.obj jdatasrc.obj jdmaster.obj jdmarker.obj jdmainct.obj \
  74.         jdcoefct.obj jdpostct.obj jddctmgr.obj jidctfst.obj jidctflt.obj \
  75.         jidctint.obj jidctred.obj jdhuff.obj jdsample.obj jdcolor.obj \
  76.         jquant1.obj jquant2.obj jdmerge.obj
  77. # These objectfiles are included in libjpeg.lib
  78. LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
  79. # object files for cjpeg and djpeg applications (excluding library files)
  80. COBJECTS= cjpeg.obj rdppm.obj rdgif.obj rdtarga.obj rdrle.obj rdbmp.obj
  81. DOBJECTS= djpeg.obj wrppm.obj wrgif.obj wrtarga.obj wrrle.obj wrbmp.obj \
  82.         rdcolmap.obj
  83.  
  84. # need linker response file because file list > 128 chars
  85. RFILE= libjpeg.ans
  86.  
  87.  
  88. all: libjpeg.lib cjpeg.exe djpeg.exe rdjpgcom.exe wrjpgcom.exe
  89.  
  90. libjpeg.lib: $(LIBOBJECTS) $(RFILE)
  91.     del libjpeg.lib
  92.     tlib @$(RFILE)
  93.  
  94. # linker response file for building libjpeg.lib
  95. $(RFILE) : Makefile
  96.     del $(RFILE)
  97.     echo libjpeg.lib & >$(RFILE)
  98.     echo +jcapi.obj +jcparam.obj +jdatadst.obj +jcmaster.obj & >>$(RFILE)
  99.     echo +jcmarker.obj +jcmainct.obj +jcprepct.obj & >>$(RFILE)
  100.     echo +jccoefct.obj +jccolor.obj +jcsample.obj +jchuff.obj & >>$(RFILE)
  101.     echo +jcdctmgr.obj +jfdctfst.obj +jfdctflt.obj & >>$(RFILE)
  102.     echo +jfdctint.obj +jdapi.obj +jdatasrc.obj +jdmaster.obj & >>$(RFILE)
  103.     echo +jdmarker.obj +jdmainct.obj +jdcoefct.obj & >>$(RFILE)
  104.     echo +jdpostct.obj +jddctmgr.obj +jidctfst.obj & >>$(RFILE)
  105.     echo +jidctflt.obj +jidctint.obj +jidctred.obj +jdhuff.obj & >>$(RFILE)
  106.     echo +jdsample.obj +jdcolor.obj +jquant1.obj +jquant2.obj & >>$(RFILE)
  107.     echo +jdmerge.obj +jcomapi.obj +jutils.obj +jerror.obj & >>$(RFILE)
  108.     echo +jmemmgr.obj +jmemdos.obj +jmemdosa.obj >>$(RFILE)
  109.  
  110. cjpeg.exe: $(COBJECTS) libjpeg.lib
  111.     $(CC) $(LDFLAGS) -ecjpeg.exe $(COBJECTS) libjpeg.lib
  112.  
  113. djpeg.exe: $(DOBJECTS) libjpeg.lib
  114.     $(CC) $(LDFLAGS) -edjpeg.exe $(DOBJECTS) libjpeg.lib
  115.  
  116. rdjpgcom.exe: rdjpgcom.c
  117.     $(CC) -ms -O rdjpgcom.c
  118.  
  119. # wrjpgcom needs large model so it can malloc a 64K chunk
  120. wrjpgcom.exe: wrjpgcom.c
  121.     $(CC) -ml -O wrjpgcom.c
  122.  
  123. .c.obj:
  124.     $(CC) $(CFLAGS) -c $<
  125.  
  126. jconfig.h: jconfig.doc
  127.     echo You must prepare a system-dependent jconfig.h file.
  128.     echo Please read the installation directions in install.doc.
  129.     exit 1
  130.  
  131. clean:
  132.     del *.obj
  133.     del libjpeg.lib
  134.     del cjpeg.exe
  135.     del djpeg.exe
  136.     del rdjpgcom.exe
  137.     del wrjpgcom.exe
  138.     del testout.*
  139.  
  140. test: cjpeg.exe djpeg.exe
  141.     del testout.*
  142.     djpeg -dct int -ppm -outfile testout.ppm  testorig.jpg
  143.     djpeg -dct int -gif -outfile testout.gif  testorig.jpg
  144.     cjpeg -dct int -outfile testout.jpg  testimg.ppm
  145.     fc /b testimg.ppm testout.ppm
  146.     fc /b testimg.gif testout.gif
  147.     fc /b testimg.jpg testout.jpg
  148.  
  149.  
  150. jcapi.obj : jcapi.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. jcmainct.obj : jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  156. jcmarker.obj : jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  157. jcmaster.obj : jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  158. jcomapi.obj : jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  159. jcparam.obj : jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  160. jcprepct.obj : jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  161. jcsample.obj : jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  162. jdapi.obj : jdapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  163. jdatasrc.obj : jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  164. jdatadst.obj : jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  165. jdcoefct.obj : jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  166. jdcolor.obj : jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  167. jddctmgr.obj : jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  168. jdhuff.obj : jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  169. jdmainct.obj : jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  170. jdmarker.obj : jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  171. jdmaster.obj : jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  172. jdpostct.obj : jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  173. jdsample.obj : jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  174. jerror.obj : jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
  175. jutils.obj : jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  176. jfdctfst.obj : jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  177. jfdctflt.obj : jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  178. jfdctint.obj : jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  179. jidctfst.obj : jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  180. jidctflt.obj : jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  181. jidctint.obj : jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  182. jidctred.obj : jidctred.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  183. jquant1.obj : jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  184. jquant2.obj : jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  185. jdmerge.obj : jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  186. jmemmgr.obj : jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  187. jmemansi.obj : jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  188. jmemname.obj : jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  189. jmemnobs.obj : jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  190. jmemdos.obj : jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  191. cjpeg.obj : cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  192. djpeg.obj : djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  193. rdcolmap.obj : rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  194. rdppm.obj : rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  195. wrppm.obj : wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  196. rdgif.obj : rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  197. wrgif.obj : wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  198. rdtarga.obj : rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  199. wrtarga.obj : wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  200. rdbmp.obj : rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  201. wrbmp.obj : wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  202. rdrle.obj : rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  203. wrrle.obj : wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  204. rdjpgcom.obj : rdjpgcom.c jinclude.h jconfig.h
  205. wrjpgcom.obj : wrjpgcom.c jinclude.h jconfig.h
  206. jmemdosa.obj : jmemdosa.asm
  207.     tasm /mx jmemdosa.asm
  208.