home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / GRAPHICS / jpegsrc.v3.lzh / makefile.manx < prev    next >
Makefile  |  1992-07-02  |  6KB  |  144 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. CFLAGS= -MC -MD -sf -sn -sp -DAMIGA -DTWO_FILE_COMMANDLINE \
  14.     -DNEED_SIGNAL_CATCHER -Dsignal_catcher=_abort
  15.  
  16. # Link-time cc options:
  17. LDFLAGS= 
  18.  
  19. # To link any special libraries, add the necessary -l commands here.
  20. LDLIBS= -lml -lcl
  21.  
  22. # miscellaneous OS-dependent stuff
  23. # linker
  24. LN= ln
  25. # file deletion command
  26. RM= delete quiet
  27. # library (.lib) file creation command
  28. AR= lb
  29.  
  30.  
  31. # source files (independently compilable files)
  32. SOURCES= jbsmooth.c jcarith.c jccolor.c jcdeflts.c jcexpand.c jchuff.c \
  33.         jcmain.c jcmaster.c jcmcu.c jcpipe.c jcsample.c jdarith.c jdcolor.c \
  34.         jddeflts.c jdhuff.c jdmain.c jdmaster.c jdmcu.c jdpipe.c jdsample.c \
  35.         jerror.c jquant1.c jquant2.c jfwddct.c jrevdct.c jutils.c jmemmgr.c \
  36.         jrdjfif.c jrdgif.c jrdppm.c jrdrle.c jrdtarga.c jwrjfif.c jwrgif.c \
  37.         jwrppm.c jwrrle.c jwrtarga.c
  38. # virtual source files (not present in distribution file)
  39. VIRTSOURCES= jmemsys.c
  40. # system-dependent implementations of source files
  41. SYSDEPFILES= jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemdos.h \
  42.         jmemdosa.asm
  43. # files included by source files
  44. INCLUDES= jinclude.h jconfig.h jpegdata.h jversion.h jmemsys.h egetopt.c
  45. # documentation, test, and support files
  46. DOCS= README SETUP USAGE CHANGELOG cjpeg.1 djpeg.1 architecture codingrules
  47. MAKEFILES= makefile.ansi makefile.unix makefile.manx makefile.sas \
  48.         makefile.mc5 makefile.mc6 makcjpeg.lnk makdjpeg.lnk makefile.bcc \
  49.         makcjpeg.lst makdjpeg.lst makefile.pwc makcjpeg.cf makdjpeg.cf \
  50.         makljpeg.cf makefile.mms makefile.vms makvms.opt
  51. OTHERFILES= ansi2knr.c ckconfig.c example.c
  52. TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.jpg
  53. DISTFILES= $(DOCS) $(MAKEFILES) $(SOURCES) $(SYSDEPFILES) $(INCLUDES) \
  54.         $(OTHERFILES) $(TESTFILES)
  55. # objectfiles common to cjpeg and djpeg
  56. COMOBJECTS= jutils.o jerror.o jmemmgr.o jmemsys.o
  57. # compression objectfiles
  58. CLIBOBJECTS= jcmaster.o jcdeflts.o jcarith.o jccolor.o jcexpand.o jchuff.o \
  59.         jcmcu.o jcpipe.o jcsample.o jfwddct.o jwrjfif.o jrdgif.o jrdppm.o \
  60.         jrdrle.o jrdtarga.o
  61. COBJECTS= jcmain.o $(CLIBOBJECTS) $(COMOBJECTS)
  62. # decompression objectfiles
  63. DLIBOBJECTS= jdmaster.o jddeflts.o jbsmooth.o jdarith.o jdcolor.o jdhuff.o \
  64.         jdmcu.o jdpipe.o jdsample.o jquant1.o jquant2.o jrevdct.o jrdjfif.o \
  65.         jwrgif.o jwrppm.o jwrrle.o jwrtarga.o
  66. DOBJECTS= jdmain.o $(DLIBOBJECTS) $(COMOBJECTS)
  67. # These objectfiles are included in libjpeg.lib
  68. LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
  69.  
  70.  
  71. all: cjpeg djpeg
  72. # By default, libjpeg.lib is not built unless you explicitly request it.
  73. # You can add libjpeg.lib to the line above if you want it built by default.
  74.  
  75.  
  76. cjpeg: $(COBJECTS)
  77.     $(LN) $(LDFLAGS) -o cjpeg $(COBJECTS) $(LDLIBS)
  78.  
  79. djpeg: $(DOBJECTS)
  80.     $(LN) $(LDFLAGS) -o djpeg $(DOBJECTS) $(LDLIBS)
  81.  
  82. # libjpeg.lib is useful if you are including the JPEG software in a larger
  83. # program; you'd include it in your link, rather than the individual modules.
  84. libjpeg.lib: $(LIBOBJECTS)
  85.     -$(RM) libjpeg.lib
  86.     $(AR) libjpeg.lib  $(LIBOBJECTS)
  87.  
  88. clean:
  89.     -$(RM) *.o cjpeg djpeg libjpeg.lib core testout.*
  90.  
  91. distribute:
  92.     -$(RM) jpegsrc.tar*
  93.     tar cvf jpegsrc.tar $(DISTFILES)
  94.     compress -v jpegsrc.tar
  95.  
  96. test: cjpeg djpeg
  97.     -$(RM) testout.ppm testout.gif testout.jpg
  98.     djpeg testorig.jpg testout.ppm
  99.     djpeg -G testorig.jpg testout.gif
  100.     cjpeg testimg.ppm testout.jpg
  101.     cmp testimg.ppm testout.ppm
  102.     cmp testimg.gif testout.gif
  103.     cmp testimg.jpg testout.jpg
  104.  
  105.  
  106. jbsmooth.o : jbsmooth.c jinclude.h jconfig.h jpegdata.h 
  107. jcarith.o : jcarith.c jinclude.h jconfig.h jpegdata.h 
  108. jccolor.o : jccolor.c jinclude.h jconfig.h jpegdata.h 
  109. jcdeflts.o : jcdeflts.c jinclude.h jconfig.h jpegdata.h 
  110. jcexpand.o : jcexpand.c jinclude.h jconfig.h jpegdata.h 
  111. jchuff.o : jchuff.c jinclude.h jconfig.h jpegdata.h 
  112. jcmain.o : jcmain.c jinclude.h jconfig.h jpegdata.h jversion.h egetopt.c 
  113. jcmaster.o : jcmaster.c jinclude.h jconfig.h jpegdata.h 
  114. jcmcu.o : jcmcu.c jinclude.h jconfig.h jpegdata.h 
  115. jcpipe.o : jcpipe.c jinclude.h jconfig.h jpegdata.h 
  116. jcsample.o : jcsample.c jinclude.h jconfig.h jpegdata.h 
  117. jdarith.o : jdarith.c jinclude.h jconfig.h jpegdata.h 
  118. jdcolor.o : jdcolor.c jinclude.h jconfig.h jpegdata.h 
  119. jddeflts.o : jddeflts.c jinclude.h jconfig.h jpegdata.h 
  120. jdhuff.o : jdhuff.c jinclude.h jconfig.h jpegdata.h 
  121. jdmain.o : jdmain.c jinclude.h jconfig.h jpegdata.h jversion.h egetopt.c 
  122. jdmaster.o : jdmaster.c jinclude.h jconfig.h jpegdata.h 
  123. jdmcu.o : jdmcu.c jinclude.h jconfig.h jpegdata.h 
  124. jdpipe.o : jdpipe.c jinclude.h jconfig.h jpegdata.h 
  125. jdsample.o : jdsample.c jinclude.h jconfig.h jpegdata.h 
  126. jerror.o : jerror.c jinclude.h jconfig.h jpegdata.h 
  127. jquant1.o : jquant1.c jinclude.h jconfig.h jpegdata.h 
  128. jquant2.o : jquant2.c jinclude.h jconfig.h jpegdata.h 
  129. jfwddct.o : jfwddct.c jinclude.h jconfig.h jpegdata.h 
  130. jrevdct.o : jrevdct.c jinclude.h jconfig.h jpegdata.h 
  131. jutils.o : jutils.c jinclude.h jconfig.h jpegdata.h 
  132. jmemmgr.o : jmemmgr.c jinclude.h jconfig.h jpegdata.h jmemsys.h 
  133. jrdjfif.o : jrdjfif.c jinclude.h jconfig.h jpegdata.h 
  134. jrdgif.o : jrdgif.c jinclude.h jconfig.h jpegdata.h 
  135. jrdppm.o : jrdppm.c jinclude.h jconfig.h jpegdata.h 
  136. jrdrle.o : jrdrle.c jinclude.h jconfig.h jpegdata.h 
  137. jrdtarga.o : jrdtarga.c jinclude.h jconfig.h jpegdata.h 
  138. jwrjfif.o : jwrjfif.c jinclude.h jconfig.h jpegdata.h 
  139. jwrgif.o : jwrgif.c jinclude.h jconfig.h jpegdata.h 
  140. jwrppm.o : jwrppm.c jinclude.h jconfig.h jpegdata.h 
  141. jwrrle.o : jwrrle.c jinclude.h jconfig.h jpegdata.h 
  142. jwrtarga.o : jwrtarga.c jinclude.h jconfig.h jpegdata.h 
  143. jmemsys.o : jmemsys.c jinclude.h jconfig.h jpegdata.h jmemsys.h 
  144.