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.osk < prev    next >
Makefile  |  1992-07-03  |  7KB  |  157 lines

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