home *** CD-ROM | disk | FTP | other *** search
/ Encyclopedia of Graphics File Formats Companion / GFF_CD.ISO / software / unix / jpeg / jpegv4a.tar / makefile.sas < prev    next >
Makefile  |  1993-02-18  |  7KB  |  173 lines

  1. # Makefile for Independent JPEG Group's software
  2.  
  3. # This makefile is for Amiga systems using SAS C 6.0 and up.
  4. # Thanks to Ed Hanway, Mark Rinfret, and Jim Zepeda.
  5.  
  6. # Read SETUP instructions before saying "make" !!
  7. # Use jmemname.c as the system-dependent memory manager.
  8.  
  9. # The name of your C compiler:
  10. CC= sc
  11.  
  12. # Uncomment the following lines for generic 680x0 version
  13. ARCHFLAGS= cpu=any
  14. SUFFIX=
  15.  
  16. # Uncomment the following lines for 68030-only version
  17. #ARCHFLAGS= cpu=68030
  18. #SUFFIX=.030
  19.  
  20. # You may need to adjust these cc options:
  21. CFLAGS= nostackcheck data=near parms=register optimize $(ARCHFLAGS) \
  22.     ignore=104 ignore=304 ignore=306 \
  23.     define HAVE_STDC define INCLUDES_ARE_ANSI \
  24.     define AMIGA define TWO_FILE_COMMANDLINE \
  25.     define NO_MKTEMP define NEED_SIGNAL_CATCHER define SHORTxSHORT_32
  26. # ignore=104 disables warnings for mismatched const qualifiers
  27. # ignore=304 disables warnings for variables being optimized out
  28. # ignore=306 disables warnings for the inlining of functions
  29.  
  30. # Link-time cc options:
  31. LDFLAGS= SC SD ND BATCH
  32.  
  33. # To link any special libraries, add the necessary commands here.
  34. LDLIBS= LIB LIB:scm.lib LIB:sc.lib
  35.  
  36. # miscellaneous OS-dependent stuff
  37. # linker
  38. LN= slink
  39. # file deletion command
  40. RM= delete quiet
  41. # library (.lib) file creation command
  42. AR= oml
  43.  
  44.  
  45. # source files (independently compilable files)
  46. SOURCES= jbsmooth.c jcarith.c jccolor.c jcdeflts.c jcexpand.c jchuff.c \
  47.         jcmain.c jcmaster.c jcmcu.c jcpipe.c jcsample.c jdarith.c jdcolor.c \
  48.         jddeflts.c jdhuff.c jdmain.c jdmaster.c jdmcu.c jdpipe.c jdsample.c \
  49.         jerror.c jquant1.c jquant2.c jfwddct.c jrevdct.c jutils.c jmemmgr.c \
  50.         jrdjfif.c jrdgif.c jrdppm.c jrdrle.c jrdtarga.c jwrjfif.c jwrgif.c \
  51.         jwrppm.c jwrrle.c jwrtarga.c
  52. # virtual source files (not present in distribution file, see SETUP)
  53. VIRTSOURCES= jmemsys.c
  54. # system-dependent implementations of virtual source files
  55. SYSDEPFILES= jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemdos.h \
  56.         jmemdosa.asm
  57. # files included by source files
  58. INCLUDES= jinclude.h jconfig.h jpegdata.h jversion.h jmemsys.h
  59. # documentation, test, and support files
  60. DOCS= README SETUP USAGE CHANGELOG cjpeg.1 djpeg.1 architecture codingrules
  61. MAKEFILES= makefile.ansi makefile.unix makefile.manx makefile.sas \
  62.         makcjpeg.st makdjpeg.st makljpeg.st makefile.mc5 makefile.mc6 \
  63.         makefile.bcc makefile.icc makljpeg.icc makefile.mms makefile.vms \
  64.         makvms.opt
  65. OTHERFILES= ansi2knr.c ckconfig.c example.c
  66. TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.jpg
  67. DISTFILES= $(DOCS) $(MAKEFILES) $(SOURCES) $(SYSDEPFILES) $(INCLUDES) \
  68.         $(OTHERFILES) $(TESTFILES)
  69. # objectfiles common to cjpeg and djpeg
  70. COMOBJECTS= jutils.o jerror.o jmemmgr.o jmemsys.o
  71. # compression objectfiles
  72. CLIBOBJECTS= jcmaster.o jcdeflts.o jcarith.o jccolor.o jcexpand.o jchuff.o \
  73.         jcmcu.o jcpipe.o jcsample.o jfwddct.o jwrjfif.o jrdgif.o jrdppm.o \
  74.         jrdrle.o jrdtarga.o
  75. COBJECTS= jcmain.o $(CLIBOBJECTS) $(COMOBJECTS)
  76. # decompression objectfiles
  77. DLIBOBJECTS= jdmaster.o jddeflts.o jbsmooth.o jdarith.o jdcolor.o jdhuff.o \
  78.         jdmcu.o jdpipe.o jdsample.o jquant1.o jquant2.o jrevdct.o jrdjfif.o \
  79.         jwrgif.o jwrppm.o jwrrle.o jwrtarga.o
  80. DOBJECTS= jdmain.o $(DLIBOBJECTS) $(COMOBJECTS)
  81. # These objectfiles are included in libjpeg.lib
  82. LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
  83.  
  84.  
  85. all: cjpeg$(SUFFIX) djpeg$(SUFFIX)
  86. # By default, libjpeg.lib is not built unless you explicitly request it.
  87. # You can add libjpeg.lib to the line above if you want it built by default.
  88.  
  89.  
  90. cjpeg$(SUFFIX): $(COBJECTS)
  91.     $(LN) <WITH <
  92. $(LDFLAGS)
  93. TO cjpeg$(SUFFIX)
  94. FROM LIB:c.o $(COBJECTS)
  95. $(LDLIBS)
  96. <
  97.  
  98. djpeg$(SUFFIX): $(DOBJECTS)
  99.     $(LN) <WITH <
  100. $(LDFLAGS)
  101. TO djpeg$(SUFFIX)
  102. FROM LIB:c.o $(DOBJECTS)
  103. $(LDLIBS)
  104. <
  105.  
  106. # libjpeg.lib is useful if you are including the JPEG software in a larger
  107. # program; you'd include it in your link, rather than the individual modules.
  108. libjpeg.lib: $(LIBOBJECTS)
  109.     -$(RM) libjpeg.lib
  110.     $(AR) libjpeg.lib r $(LIBOBJECTS)
  111.  
  112. jmemsys.c:
  113.     echo You must select a system-dependent jmemsys.c file.
  114.     echo Please read the SETUP directions.
  115.     exit 1
  116.  
  117. clean:
  118.     -$(RM) *.o cjpeg djpeg cjpeg.030 djpeg.030 libjpeg.lib core testout.*
  119.  
  120. distribute:
  121.     -$(RM) jpegsrc.tar*
  122.     tar cvf jpegsrc.tar $(DISTFILES)
  123.     compress -v jpegsrc.tar
  124.  
  125. test: cjpeg djpeg
  126.     -$(RM) testout.ppm testout.gif testout.jpg
  127.     djpeg -outfile testout.ppm  testorig.jpg
  128.     djpeg -gif -outfile testout.gif  testorig.jpg
  129.     cjpeg -outfile testout.jpg  testimg.ppm
  130.     cmp testimg.ppm testout.ppm
  131.     cmp testimg.gif testout.gif
  132.     cmp testimg.jpg testout.jpg
  133.  
  134.  
  135. jbsmooth.o : jbsmooth.c jinclude.h jconfig.h jpegdata.h 
  136. jcarith.o : jcarith.c jinclude.h jconfig.h jpegdata.h 
  137. jccolor.o : jccolor.c jinclude.h jconfig.h jpegdata.h 
  138. jcdeflts.o : jcdeflts.c jinclude.h jconfig.h jpegdata.h 
  139. jcexpand.o : jcexpand.c jinclude.h jconfig.h jpegdata.h 
  140. jchuff.o : jchuff.c jinclude.h jconfig.h jpegdata.h 
  141. jcmain.o : jcmain.c jinclude.h jconfig.h jpegdata.h jversion.h 
  142. jcmaster.o : jcmaster.c jinclude.h jconfig.h jpegdata.h 
  143. jcmcu.o : jcmcu.c jinclude.h jconfig.h jpegdata.h 
  144. jcpipe.o : jcpipe.c jinclude.h jconfig.h jpegdata.h 
  145. jcsample.o : jcsample.c jinclude.h jconfig.h jpegdata.h 
  146. jdarith.o : jdarith.c jinclude.h jconfig.h jpegdata.h 
  147. jdcolor.o : jdcolor.c jinclude.h jconfig.h jpegdata.h 
  148. jddeflts.o : jddeflts.c jinclude.h jconfig.h jpegdata.h 
  149. jdhuff.o : jdhuff.c jinclude.h jconfig.h jpegdata.h 
  150. jdmain.o : jdmain.c jinclude.h jconfig.h jpegdata.h jversion.h 
  151. jdmaster.o : jdmaster.c jinclude.h jconfig.h jpegdata.h 
  152. jdmcu.o : jdmcu.c jinclude.h jconfig.h jpegdata.h 
  153. jdpipe.o : jdpipe.c jinclude.h jconfig.h jpegdata.h 
  154. jdsample.o : jdsample.c jinclude.h jconfig.h jpegdata.h 
  155. jerror.o : jerror.c jinclude.h jconfig.h jpegdata.h 
  156. jquant1.o : jquant1.c jinclude.h jconfig.h jpegdata.h 
  157. jquant2.o : jquant2.c jinclude.h jconfig.h jpegdata.h 
  158. jfwddct.o : jfwddct.c jinclude.h jconfig.h jpegdata.h 
  159. jrevdct.o : jrevdct.c jinclude.h jconfig.h jpegdata.h 
  160. jutils.o : jutils.c jinclude.h jconfig.h jpegdata.h 
  161. jmemmgr.o : jmemmgr.c jinclude.h jconfig.h jpegdata.h jmemsys.h 
  162. jrdjfif.o : jrdjfif.c jinclude.h jconfig.h jpegdata.h 
  163. jrdgif.o : jrdgif.c jinclude.h jconfig.h jpegdata.h 
  164. jrdppm.o : jrdppm.c jinclude.h jconfig.h jpegdata.h 
  165. jrdrle.o : jrdrle.c jinclude.h jconfig.h jpegdata.h 
  166. jrdtarga.o : jrdtarga.c jinclude.h jconfig.h jpegdata.h 
  167. jwrjfif.o : jwrjfif.c jinclude.h jconfig.h jpegdata.h 
  168. jwrgif.o : jwrgif.c jinclude.h jconfig.h jpegdata.h 
  169. jwrppm.o : jwrppm.c jinclude.h jconfig.h jpegdata.h 
  170. jwrrle.o : jwrrle.c jinclude.h jconfig.h jpegdata.h 
  171. jwrtarga.o : jwrtarga.c jinclude.h jconfig.h jpegdata.h 
  172. jmemsys.o : jmemsys.c jinclude.h jconfig.h jpegdata.h jmemsys.h 
  173.