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

  1. # Makefile for Independent JPEG Group's software
  2.  
  3. # This makefile is for Amiga systems using Manx Aztec C ver 5.x.
  4. # Use jmemname.c as the system-dependent memory manager.
  5. # Thanks to D.J. James (djjames@cup.portal.com) for this version.
  6.  
  7. # Read SETUP instructions before saying "make" !!
  8.  
  9. # The name of your C compiler:
  10. CC= cc
  11.  
  12. # You may need to adjust these cc options:
  13. # uncomment for generic 68000 code (will work on any Amiga)
  14. ARCHFLAGS= -sn
  15.  
  16. # uncomment for 68020/68030 code (faster, but won't run on 68000 CPU)
  17. #ARCHFLAGS= -c2
  18.  
  19. CFLAGS= -MC -MD -DAMIGA -DTWO_FILE_COMMANDLINE -DNEED_SIGNAL_CATCHER \
  20.     -Dsignal_catcher=_abort -DSHORTxSHORT_32 $(ARCHFLAGS) -spfam -r4
  21.  
  22. # Link-time cc options:
  23. LDFLAGS= -g
  24.  
  25. # To link any special libraries, add the necessary -l commands here.
  26. LDLIBS= -lml -lcl
  27.  
  28. # miscellaneous OS-dependent stuff
  29. # linker
  30. LN= ln
  31. # file deletion command
  32. RM= delete quiet
  33. # library (.lib) file creation command
  34. AR= lb
  35.  
  36.  
  37. # source files (independently compilable files)
  38. SOURCES= jbsmooth.c jcarith.c jccolor.c jcdeflts.c jcexpand.c jchuff.c \
  39.         jcmain.c jcmaster.c jcmcu.c jcpipe.c jcsample.c jdarith.c jdcolor.c \
  40.         jddeflts.c jdhuff.c jdmain.c jdmaster.c jdmcu.c jdpipe.c jdsample.c \
  41.         jerror.c jquant1.c jquant2.c jfwddct.c jrevdct.c jutils.c jmemmgr.c \
  42.         jrdjfif.c jrdgif.c jrdppm.c jrdrle.c jrdtarga.c jwrjfif.c jwrgif.c \
  43.         jwrppm.c jwrrle.c jwrtarga.c
  44. # virtual source files (not present in distribution file, see SETUP)
  45. VIRTSOURCES= jmemsys.c
  46. # system-dependent implementations of virtual source files
  47. SYSDEPFILES= jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemdos.h \
  48.         jmemdosa.asm
  49. # files included by source files
  50. INCLUDES= jinclude.h jconfig.h jpegdata.h jversion.h jmemsys.h
  51. # documentation, test, and support files
  52. DOCS= README SETUP USAGE CHANGELOG cjpeg.1 djpeg.1 architecture codingrules
  53. MAKEFILES= makefile.ansi makefile.unix makefile.manx makefile.sas \
  54.         makcjpeg.st makdjpeg.st makljpeg.st makefile.mc5 makefile.mc6 \
  55.         makefile.bcc makefile.icc makljpeg.icc makefile.mms makefile.vms \
  56.         makvms.opt
  57. OTHERFILES= ansi2knr.c ckconfig.c example.c
  58. TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.jpg
  59. DISTFILES= $(DOCS) $(MAKEFILES) $(SOURCES) $(SYSDEPFILES) $(INCLUDES) \
  60.         $(OTHERFILES) $(TESTFILES)
  61. # objectfiles common to cjpeg and djpeg
  62. COMOBJECTS= jutils.o jerror.o jmemmgr.o jmemsys.o
  63. # compression objectfiles
  64. CLIBOBJECTS= jcmaster.o jcdeflts.o jcarith.o jccolor.o jcexpand.o jchuff.o \
  65.         jcmcu.o jcpipe.o jcsample.o jfwddct.o jwrjfif.o jrdgif.o jrdppm.o \
  66.         jrdrle.o jrdtarga.o
  67. COBJECTS= jcmain.o $(CLIBOBJECTS) $(COMOBJECTS)
  68. # decompression objectfiles
  69. DLIBOBJECTS= jdmaster.o jddeflts.o jbsmooth.o jdarith.o jdcolor.o jdhuff.o \
  70.         jdmcu.o jdpipe.o jdsample.o jquant1.o jquant2.o jrevdct.o jrdjfif.o \
  71.         jwrgif.o jwrppm.o jwrrle.o jwrtarga.o
  72. DOBJECTS= jdmain.o $(DLIBOBJECTS) $(COMOBJECTS)
  73. # These objectfiles are included in libjpeg.lib
  74. LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
  75.  
  76.  
  77. all: cjpeg djpeg
  78. # By default, libjpeg.lib is not built unless you explicitly request it.
  79. # You can add libjpeg.lib to the line above if you want it built by default.
  80.  
  81.  
  82. cjpeg: $(COBJECTS)
  83.     $(LN) $(LDFLAGS) -o cjpeg $(COBJECTS) $(LDLIBS)
  84.  
  85. djpeg: $(DOBJECTS)
  86.     $(LN) $(LDFLAGS) -o djpeg $(DOBJECTS) $(LDLIBS)
  87.  
  88. # libjpeg.lib is useful if you are including the JPEG software in a larger
  89. # program; you'd include it in your link, rather than the individual modules.
  90. libjpeg.lib: $(LIBOBJECTS)
  91.     -$(RM) libjpeg.lib
  92.     $(AR) libjpeg.lib  $(LIBOBJECTS)
  93.  
  94. jmemsys.c:
  95.     echo You must select a system-dependent jmemsys.c file.
  96.     echo Please read the SETUP directions.
  97.     exit 1
  98.  
  99. clean:
  100.     -$(RM) *.o cjpeg djpeg libjpeg.lib core testout.*
  101.  
  102. distribute:
  103.     -$(RM) jpegsrc.tar*
  104.     tar cvf jpegsrc.tar $(DISTFILES)
  105.     compress -v jpegsrc.tar
  106.  
  107. test: cjpeg djpeg
  108.     -$(RM) testout.ppm testout.gif testout.jpg
  109.     djpeg -outfile testout.ppm  testorig.jpg
  110.     djpeg -gif -outfile testout.gif  testorig.jpg
  111.     cjpeg -outfile testout.jpg  testimg.ppm
  112.     cmp testimg.ppm testout.ppm
  113.     cmp testimg.gif testout.gif
  114.     cmp testimg.jpg testout.jpg
  115.  
  116.  
  117. jbsmooth.o : jbsmooth.c jinclude.h jconfig.h jpegdata.h 
  118. jcarith.o : jcarith.c jinclude.h jconfig.h jpegdata.h 
  119. jccolor.o : jccolor.c jinclude.h jconfig.h jpegdata.h 
  120. jcdeflts.o : jcdeflts.c jinclude.h jconfig.h jpegdata.h 
  121. jcexpand.o : jcexpand.c jinclude.h jconfig.h jpegdata.h 
  122. jchuff.o : jchuff.c jinclude.h jconfig.h jpegdata.h 
  123. jcmain.o : jcmain.c jinclude.h jconfig.h jpegdata.h jversion.h 
  124. jcmaster.o : jcmaster.c jinclude.h jconfig.h jpegdata.h 
  125. jcmcu.o : jcmcu.c jinclude.h jconfig.h jpegdata.h 
  126. jcpipe.o : jcpipe.c jinclude.h jconfig.h jpegdata.h 
  127. jcsample.o : jcsample.c jinclude.h jconfig.h jpegdata.h 
  128. jdarith.o : jdarith.c jinclude.h jconfig.h jpegdata.h 
  129. jdcolor.o : jdcolor.c jinclude.h jconfig.h jpegdata.h 
  130. jddeflts.o : jddeflts.c jinclude.h jconfig.h jpegdata.h 
  131. jdhuff.o : jdhuff.c jinclude.h jconfig.h jpegdata.h 
  132. jdmain.o : jdmain.c jinclude.h jconfig.h jpegdata.h jversion.h 
  133. jdmaster.o : jdmaster.c jinclude.h jconfig.h jpegdata.h 
  134. jdmcu.o : jdmcu.c jinclude.h jconfig.h jpegdata.h 
  135. jdpipe.o : jdpipe.c jinclude.h jconfig.h jpegdata.h 
  136. jdsample.o : jdsample.c jinclude.h jconfig.h jpegdata.h 
  137. jerror.o : jerror.c jinclude.h jconfig.h jpegdata.h 
  138. jquant1.o : jquant1.c jinclude.h jconfig.h jpegdata.h 
  139. jquant2.o : jquant2.c jinclude.h jconfig.h jpegdata.h 
  140. jfwddct.o : jfwddct.c jinclude.h jconfig.h jpegdata.h 
  141. jrevdct.o : jrevdct.c jinclude.h jconfig.h jpegdata.h 
  142. jutils.o : jutils.c jinclude.h jconfig.h jpegdata.h 
  143. jmemmgr.o : jmemmgr.c jinclude.h jconfig.h jpegdata.h jmemsys.h 
  144. jrdjfif.o : jrdjfif.c jinclude.h jconfig.h jpegdata.h 
  145. jrdgif.o : jrdgif.c jinclude.h jconfig.h jpegdata.h 
  146. jrdppm.o : jrdppm.c jinclude.h jconfig.h jpegdata.h 
  147. jrdrle.o : jrdrle.c jinclude.h jconfig.h jpegdata.h 
  148. jrdtarga.o : jrdtarga.c jinclude.h jconfig.h jpegdata.h 
  149. jwrjfif.o : jwrjfif.c jinclude.h jconfig.h jpegdata.h 
  150. jwrgif.o : jwrgif.c jinclude.h jconfig.h jpegdata.h 
  151. jwrppm.o : jwrppm.c jinclude.h jconfig.h jpegdata.h 
  152. jwrrle.o : jwrrle.c jinclude.h jconfig.h jpegdata.h 
  153. jwrtarga.o : jwrtarga.c jinclude.h jconfig.h jpegdata.h 
  154. jmemsys.o : jmemsys.c jinclude.h jconfig.h jpegdata.h jmemsys.h 
  155.