home *** CD-ROM | disk | FTP | other *** search
/ Photo CD Demo 1 / Demo.bin / compresn / jpegv3sr / makefile.sas < prev    next >
Makefile  |  1992-03-17  |  6KB  |  164 lines

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