home *** CD-ROM | disk | FTP | other *** search
/ Graphics 16,000 / graphics-16000.iso / amiga / jpeg / jpegv4.lha / jpegv4 / src / makefile.dice < prev   
Encoding:
Makefile  |  1993-06-10  |  6.3 KB  |  152 lines

  1. .c.o:   $<
  2.     $(CC) $(CFLAGS) -c $*.c
  3.  
  4. # Makefile for Independent JPEG Group's software
  5.  
  6. # This makefile is suitable for Unix-like systems with ANSI-capable compilers.
  7. # If you have a non-ANSI compiler, makefile.unix is a better starting point.
  8.  
  9. # Read SETUP instructions before saying "make" !!
  10.  
  11. # The name of your C compiler:
  12. CC= dcc
  13.  
  14. # You may need to adjust these cc options:
  15. DEFS=   -DNEED_SIGNAL_CATCHER -DNO_MKTEMP # -DSHORTxSHORT_32
  16. CFLAGS= -E DCC_ERRORS -gs -ms -proto -r $(DEFS)
  17. # In particular:
  18. #   Add -DBSD if on a pure BSD system (see jinclude.h).
  19. #   Add -DMEM_STATS to enable gathering of memory usage statistics.
  20. #   You may also want to add -DTWO_FILE_COMMANDLINE or -D switches for other
  21. #   symbols listed in jconfig.h, if you prefer not to change jconfig.h.
  22.  
  23. # Link-time cc options:
  24. LDFLAGS= -E DCC_ERRORS -gs -ms -proto -r
  25.  
  26. # To link any special libraries, add the necessary -l commands here.
  27. # In particular, on some versions of HP-UX (and probably other SysV-derived
  28. # systems) there is a faster alternate malloc(3) library that you can use
  29. # by adding "-lmalloc" to this line.
  30. LDLIBS=
  31.  
  32. # miscellaneous OS-dependent stuff
  33. # linker
  34. LN= $(CC)
  35. # file deletion command
  36. RM= delete
  37.  
  38.  
  39. # source files (independently compilable files)
  40. SOURCES= jbsmooth.c jcarith.c jccolor.c jcdeflts.c jcexpand.c jchuff.c \
  41.         jcmain.c jcmaster.c jcmcu.c jcpipe.c jcsample.c jdarith.c jdcolor.c \
  42.         jddeflts.c jdhuff.c jdmain.c jdmaster.c jdmcu.c jdpipe.c jdsample.c \
  43.         jerror.c jquant1.c jquant2.c jfwddct.c jrevdct.c jutils.c jmemmgr.c \
  44.         jrdjfif.c jrdgif.c jrdppm.c jrdrle.c jrdtarga.c jwrjfif.c jwrgif.c \
  45.         jwrppm.c jwrrle.c jwrtarga.c
  46. # virtual source files (not present in distribution file, see SETUP)
  47. VIRTSOURCES= jmemsys.c
  48. # system-dependent implementations of virtual source files
  49. SYSDEPFILES= jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemdos.h \
  50.         jmemdosa.asm
  51. # files included by source files
  52. INCLUDES= jinclude.h jconfig.h jpegdata.h jversion.h jmemsys.h
  53. # documentation, test, and support files
  54. DOCS= README SETUP USAGE CHANGELOG cjpeg.1 djpeg.1 architecture codingrules
  55. MAKEFILES= makefile.ansi makefile.unix makefile.manx makefile.sas \
  56.         makcjpeg.st makdjpeg.st makljpeg.st makefile.mc5 makefile.mc6 \
  57.         makefile.bcc makefile.mms makefile.vms makvms.opt
  58. OTHERFILES= ansi2knr.c ckconfig.c example.c
  59. TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.jpg
  60. DISTFILES= $(DOCS) $(MAKEFILES) $(SOURCES) $(SYSDEPFILES) $(INCLUDES) \
  61.         $(OTHERFILES) $(TESTFILES)
  62. # objectfiles common to cjpeg and djpeg
  63. COMOBJECTS= jutils.o jerror.o jmemmgr.o jmemsys.o
  64. # compression objectfiles
  65. CLIBOBJECTS= jcmaster.o jcdeflts.o jcarith.o jccolor.o jcexpand.o jchuff.o \
  66.         jcmcu.o jcpipe.o jcsample.o jfwddct.o jwrjfif.o jrdgif.o jrdppm.o \
  67.         jrdrle.o jrdtarga.o
  68. COBJECTS= jcmain.o $(CLIBOBJECTS) $(COMOBJECTS)
  69. # decompression objectfiles
  70. DLIBOBJECTS= jdmaster.o jddeflts.o jbsmooth.o jdarith.o jdcolor.o jdhuff.o \
  71.         jdmcu.o jdpipe.o jdsample.o jquant1.o jquant2.o jrevdct.o jrdjfif.o \
  72.         jwrgif.o jwrppm.o jwrrle.o jwrtarga.o
  73. DOBJECTS= jdmain.o $(DLIBOBJECTS) $(COMOBJECTS)
  74. # These objectfiles are included in libjpeg.a
  75. LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
  76.  
  77.  
  78. all: cjpeg djpeg
  79. # By default, libjpeg.a is not built unless you explicitly request it.
  80. # You can add libjpeg.a to the line above if you want it built by default.
  81.  
  82.  
  83. cjpeg: $(COBJECTS)
  84.         $(LN) $(LDFLAGS) -o cjpeg $(COBJECTS) $(LDLIBS)
  85.  
  86. djpeg: $(DOBJECTS)
  87.         $(LN) $(LDFLAGS) -o djpeg $(DOBJECTS) $(LDLIBS)
  88.  
  89. # libjpeg.a is useful if you are including the JPEG software in a larger
  90. # program; you'd include it in your link, rather than the individual modules.
  91. libjpeg.lib: $(LIBOBJECTS)
  92.         -$(RM) libjpeg.lib
  93.         join $(LIBOBJECTS) to libjpeg.lib
  94.  
  95. jmemsys.c:
  96.         echo You must select a system-dependent jmemsys.c file.
  97.         echo Please read the SETUP directions.
  98.         exit 1
  99.  
  100. clean:
  101.         -$(RM) \#?.o cjpeg djpeg libjpeg.lib testout.\#?
  102.  
  103. test: cjpeg djpeg
  104.         -$(RM) testout.ppm testout.gif testout.jpg
  105.         djpeg testorig.jpg >testout.ppm
  106.         djpeg -gif testorig.jpg >testout.gif
  107.         cjpeg testimg.ppm >testout.jpg
  108.         diff testimg.ppm testout.ppm
  109.         diff testimg.gif testout.gif
  110.         diff testimg.jpg testout.jpg
  111.  
  112.  
  113. jbsmooth.o : jbsmooth.c jinclude.h jconfig.h jpegdata.h
  114. jcarith.o : jcarith.c jinclude.h jconfig.h jpegdata.h
  115. jccolor.o : jccolor.c jinclude.h jconfig.h jpegdata.h
  116. jcdeflts.o : jcdeflts.c jinclude.h jconfig.h jpegdata.h
  117. jcexpand.o : jcexpand.c jinclude.h jconfig.h jpegdata.h
  118. jchuff.o : jchuff.c jinclude.h jconfig.h jpegdata.h
  119. jcmain.o : jcmain.c jinclude.h jconfig.h jpegdata.h jversion.h
  120. jcmaster.o : jcmaster.c jinclude.h jconfig.h jpegdata.h
  121. jcmcu.o : jcmcu.c jinclude.h jconfig.h jpegdata.h
  122. jcpipe.o : jcpipe.c jinclude.h jconfig.h jpegdata.h
  123. jcsample.o : jcsample.c jinclude.h jconfig.h jpegdata.h
  124. jdarith.o : jdarith.c jinclude.h jconfig.h jpegdata.h
  125. jdcolor.o : jdcolor.c jinclude.h jconfig.h jpegdata.h
  126. jddeflts.o : jddeflts.c jinclude.h jconfig.h jpegdata.h
  127. jdhuff.o : jdhuff.c jinclude.h jconfig.h jpegdata.h
  128. jdmain.o : jdmain.c jinclude.h jconfig.h jpegdata.h jversion.h
  129. jdmaster.o : jdmaster.c jinclude.h jconfig.h jpegdata.h
  130. jdmcu.o : jdmcu.c jinclude.h jconfig.h jpegdata.h
  131. jdpipe.o : jdpipe.c jinclude.h jconfig.h jpegdata.h
  132. jdsample.o : jdsample.c jinclude.h jconfig.h jpegdata.h
  133. jerror.o : jerror.c jinclude.h jconfig.h jpegdata.h
  134. jquant1.o : jquant1.c jinclude.h jconfig.h jpegdata.h
  135. jquant2.o : jquant2.c jinclude.h jconfig.h jpegdata.h
  136. jfwddct.o : jfwddct.c jinclude.h jconfig.h jpegdata.h
  137. jrevdct.o : jrevdct.c jinclude.h jconfig.h jpegdata.h
  138. jutils.o : jutils.c jinclude.h jconfig.h jpegdata.h
  139. jmemmgr.o : jmemmgr.c jinclude.h jconfig.h jpegdata.h jmemsys.h
  140. jrdjfif.o : jrdjfif.c jinclude.h jconfig.h jpegdata.h
  141. jrdgif.o : jrdgif.c jinclude.h jconfig.h jpegdata.h
  142. jrdppm.o : jrdppm.c jinclude.h jconfig.h jpegdata.h
  143. jrdrle.o : jrdrle.c jinclude.h jconfig.h jpegdata.h
  144. jrdtarga.o : jrdtarga.c jinclude.h jconfig.h jpegdata.h
  145. jwrjfif.o : jwrjfif.c jinclude.h jconfig.h jpegdata.h
  146. jwrgif.o : jwrgif.c jinclude.h jconfig.h jpegdata.h
  147. jwrppm.o : jwrppm.c jinclude.h jconfig.h jpegdata.h
  148. jwrrle.o : jwrrle.c jinclude.h jconfig.h jpegdata.h
  149. jwrtarga.o : jwrtarga.c jinclude.h jconfig.h jpegdata.h
  150. jmemsys.o : jmemsys.c jinclude.h jconfig.h jpegdata.h jmemsys.h
  151.  
  152.