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 < prev    next >
Makefile  |  1995-03-10  |  10KB  |  184 lines

  1. # Makefile for Independent JPEG Group's software
  2.  
  3. # This makefile is suitable for Unix-like systems with ANSI-capable compilers.
  4. # If you have a non-ANSI compiler, makefile.unix is a better starting point.
  5.  
  6. # Read installation instructions before saying "make" !!
  7.  
  8. # The name of your C compiler:
  9. CC= gcc2
  10.  
  11. # You may need to adjust these cc options:
  12. CFLAGS= -O -o68 -I/dd/blarslib/defs -T/r0 -ucc -mcpu32 -oldlibs -Fcc2s300
  13.  
  14. # Generally, we recommend defining any configuration symbols in jconfig.h,
  15. # NOT via -D switches here.
  16.  
  17. # Link-time cc options:
  18. LDFLAGS= -oldlibs
  19. ODIR =/h0/cmds
  20.  
  21. # To link any special libraries, add the necessary -l commands here.
  22. LDLIBS= -l/dd/lib/os9lib.l
  23.  
  24. .c.r:
  25.     $(CC) $(CFLAGS) -c -o $*.r $*.c
  26.  
  27. # Put here the object file name for the correct system-dependent memory
  28. # manager file.  For Unix this is usually jmemnobs.o, but you may want
  29. # to use jmemansi.o or jmemname.o if you have limited swap space.
  30. SYSDEPMEM= jmemnobs.r
  31.  
  32. # miscellaneous OS-dependent stuff
  33. # linker
  34. LN= $(CC)
  35. # file deletion command
  36. RM= -del -f
  37. # library (.l) file creation command
  38. AR= merge
  39. # second step in .l creation (use "touch" if not needed)
  40. AR2= touch
  41.  
  42. # End of configurable options.
  43.  
  44.  
  45. # source files: JPEG library proper
  46. LIBSOURCES= jcapi.c jccoefct.c jccolor.c jcdctmgr.c jchuff.c jcmainct.c \
  47.         jcmarker.c jcmaster.c jcomapi.c jcparam.c jcprepct.c jcsample.c \
  48.         jdapi.c jdatasrc.c jdatadst.c jdcoefct.c jdcolor.c jddctmgr.c \
  49.         jdhuff.c jdmainct.c jdmarker.c jdmaster.c jdpostct.c jdsample.c \
  50.         jerror.c jutils.c jfdctfst.c jfdctflt.c jfdctint.c jidctfst.c \
  51.         jidctflt.c jidctint.c jidctred.c jquant1.c jquant2.c jdmerge.c \
  52.         jmemmgr.c jmemansi.c jmemname.c jmemnobs.c jmemdos.c
  53. # source files: cjpeg/djpeg applications, also rdjpgcom/wrjpgcom
  54. APPSOURCES= cjpeg.c djpeg.c rdcolmap.c rdppm.c wrppm.c rdgif.c wrgif.c \
  55.         rdtarga.c wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c rdjpgcom.c \
  56.         wrjpgcom.c
  57. SOURCES= $(LIBSOURCES) $(APPSOURCES)
  58. # files included by source files
  59. INCLUDES= jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h jpegint.h \
  60.         jpeglib.h jversion.h cdjpeg.h cderror.h
  61. # documentation, test, and support files
  62. DOCS= README install.doc usage.doc cjpeg.1 djpeg.1 rdjpgcom.1 wrjpgcom.1 \
  63.         example.c libjpeg.doc structure.doc coderules.doc filelist.doc \
  64.         change.log
  65. MKFILES= configure makefile.cfg makefile.ansi makefile.unix makefile.manx \
  66.         makefile.sas makcjpeg.st makdjpeg.st makljpeg.st makefile.bcc \
  67.         makefile.mc6 makefile.dj makefile.mms makefile.vms makvms.opt
  68. CONFIGFILES= jconfig.cfg jconfig.manx jconfig.sas jconfig.st jconfig.bcc \
  69.         jconfig.mc6 jconfig.dj jconfig.vms
  70. OTHERFILES= jconfig.doc ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm
  71. TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.jpg
  72. DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) \
  73.         $(OTHERFILES) $(TESTFILES)
  74. # library object files common to compression and decompression
  75. COMOBJECTS= jcomapi.r jutils.r jerror.r jmemmgr.r $(SYSDEPMEM)
  76. # compression library object files
  77. CLIBOBJECTS= jcapi.r jcparam.r jdatadst.r jcmaster.r jcmarker.r jcmainct.r \
  78.         jcprepct.r jccoefct.r jccolor.r jcsample.r jchuff.r jcdctmgr.r \
  79.         jfdctfst.r jfdctflt.r jfdctint.r
  80. # decompression library object files
  81. DLIBOBJECTS= jdapi.r jdatasrc.r jdmaster.r jdmarker.r jdmainct.r jdcoefct.r \
  82.         jdpostct.r jddctmgr.r jidctfst.r jidctflt.r jidctint.r jidctred.r \
  83.         jdhuff.r jdsample.r jdcolor.r jquant1.r jquant2.r jdmerge.r
  84. # These objectfiles are included in libjpeg.l
  85. LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
  86. # object files for cjpeg and djpeg applications (excluding library files)
  87. COBJECTS= cjpeg.r rdppm.r rdgif.r rdtarga.r rdrle.r rdbmp.r
  88. DOBJECTS= djpeg.r wrppm.r wrgif.r wrtarga.r wrrle.r wrbmp.r rdcolmap.r
  89.  
  90.  
  91. all: libjpeg.l cjpeg djpeg rdjpgcom wrjpgcom
  92.  
  93. libjpeg.l: $(LIBOBJECTS)
  94.     $(RM) libjpeg.l
  95.     $(AR) $(LIBOBJECTS) >libjpeg.l
  96.     $(AR2) libjpeg.l
  97.  
  98. cjpeg: $(COBJECTS) libjpeg.l
  99.     $(LN) $(LDFLAGS) -o cjpeg $(COBJECTS) -llibjpeg.l $(LDLIBS)
  100.  
  101. djpeg: $(DOBJECTS) libjpeg.l
  102.     $(LN) $(LDFLAGS) -o djpeg $(DOBJECTS) -llibjpeg.l $(LDLIBS)
  103.  
  104. rdjpgcom: rdjpgcom.r
  105.     $(LN) $(LDFLAGS) -o rdjpgcom rdjpgcom.r $(LDLIBS)
  106.  
  107. wrjpgcom: wrjpgcom.r
  108.     $(LN) $(LDFLAGS) -o wrjpgcom wrjpgcom.r $(LDLIBS)
  109.  
  110. jconfig.h: jconfig.doc
  111.     echo You must prepare a system-dependent jconfig.h file.
  112.     echo Please read the installation directions in install.doc.
  113.     exit 1
  114.  
  115. clean:
  116.     $(RM) *.r cjpeg djpeg libjpeg.l rdjpgcom wrjpgcom core testout.*
  117.  
  118. test: cjpeg djpeg
  119.     $(RM) testout.ppm testout.gif testout.jpg
  120.     ./djpeg -dct int -ppm -outfile testout.ppm  testorig.jpg
  121.     ./djpeg -dct int -gif -outfile testout.gif  testorig.jpg
  122.     ./cjpeg -dct int -outfile testout.jpg  testimg.ppm
  123.     cmp testimg.ppm testout.ppm
  124.     cmp testimg.gif testout.gif
  125.     cmp testimg.jpg testout.jpg
  126.  
  127.  
  128. jcapi.r : jcapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  129. jccoefct.r : jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  130. jccolor.r : jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  131. jcdctmgr.r : jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  132. jchuff.r : jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  133. jcmainct.r : jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  134. jcmarker.r : jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  135. jcmaster.r : jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  136. jcomapi.r : jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  137. jcparam.r : jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  138. jcprepct.r : jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  139. jcsample.r : jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  140. jdapi.r : jdapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  141. jdatasrc.r : jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  142. jdatadst.r : jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  143. jdcoefct.r : jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  144. jdcolor.r : jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  145. jddctmgr.r : jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  146. jdhuff.r : jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  147. jdmainct.r : jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  148. jdmarker.r : jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  149. jdmaster.r : jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  150. jdpostct.r : jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  151. jdsample.r : jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  152. jerror.r : jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
  153. jutils.r : jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  154. jfdctfst.r : jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  155. jfdctflt.r : jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  156. jfdctint.r : jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  157. jidctfst.r : jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  158. jidctflt.r : jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  159. jidctint.r : jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  160. jidctred.r : jidctred.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  161. jquant1.r : jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  162. jquant2.r : jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  163. jdmerge.r : jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  164. jmemmgr.r : jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  165. jmemansi.r : jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  166. jmemname.r : jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  167. jmemnobs.r : jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  168. jmemdos.r : jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  169. cjpeg.r : cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  170. djpeg.r : djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  171. rdcolmap.r : rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  172. rdppm.r : rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  173. wrppm.r : wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  174. rdgif.r : rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  175. wrgif.r : wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  176. rdtarga.r : rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  177. wrtarga.r : wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  178. rdbmp.r : rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  179. wrbmp.r : wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  180. rdrle.r : rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  181. wrrle.r : wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  182. rdjpgcom.r : rdjpgcom.c jinclude.h jconfig.h
  183. wrjpgcom.r : wrjpgcom.c jinclude.h jconfig.h
  184.