home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / APPS / macutils.lzh / MACUTILS / UTIL / makefile.2 < prev    next >
Makefile  |  1996-01-13  |  5KB  |  150 lines

  1. # Makefile for ppm tools.
  2. #
  3. # Copyright (C) 1989, 1991 by Jef Poskanzer.
  4. #
  5. # Permission to use, copy, modify, and distribute this software and its
  6. # documentation for any purpose and without fee is hereby granted, provided
  7. # that the above copyright notice appear in all copies and that both that
  8. # copyright notice and this permission notice appear in supporting
  9. # documentation.  This software is provided "as is" without express or
  10. # implied warranty.
  11.  
  12. # Default values, usually overridden by top-level Makefile.
  13. CC =    cc
  14. RDIR = ./RELS
  15. CFLAGS =    -r=$(RDIR) -dOSK
  16.  
  17. INCLUDETOP = -V=..
  18.  
  19. BLARSDIR = /dd/blarsdefs
  20. INCLUDEBLARS = -V=$(BLARSDIR)
  21.  
  22. PGMDIR =    ../PGM
  23. INCLUDEPGM =    -V=$(PGMDIR)
  24. LIBPGM =    -L=$(PGMDIR)/libpgm.l
  25. DEFPGM =    $(PGMDIR)/pgm.h
  26. DEFLIBPGM =    $(PGMDIR)/libpgm.h
  27.  
  28. PBMDIR =    ../PBM
  29. INCLUDEPBM =    -V=$(PBMDIR)
  30. LIBPBM =    -L=$(PBMDIR)/libpbm.l
  31. DEFPBM =    $(PBMDIR)/pbm.h 
  32. DEFLIBPBM =    $(PBMDIR)/libpbm.h
  33.  
  34. INCLUDE =    $(INCLUDEPGM) $(INCLUDEPBM) $(INCLUDETOP) $(INCLUDEBLARS)
  35. ALLCFLAGS =    $(CFLAGS) $(INCLUDE)
  36. LIBPPM =    -L=libppm.l
  37.  
  38. PORTBINARIES =    giftoppm
  39. # ppmtogif
  40. # gouldtoppm ilbmtoppm imgtoppm mtvtoppm \
  41. #        pcxtoppm pgmtoppm pi1toppm picttoppm \
  42. #        pjtoppm ppmdither ppmhist ppmmake \
  43. #        ppmquant ppmrelief ppmtoacad ppmtogif ppmtoicr \
  44. #        ppmtoilbm ppmtopcx ppmtopgm ppmtopi1 ppmtopict \
  45. #        ppmtopj ppmtopuzz ppmtorgb3 ppmtosixel \
  46. #        ppmtotga ppmtouil ppmtoxpm ppmtoyuv qrttoppm \
  47. #        rawtoppm rgb3toppm sldtoppm spctoppm sputoppm \
  48. #        tgatoppm ximtoppm xpmtoppm yuvtoppm
  49. #MATHBINARIES =    ppmforge ppmpat
  50. #BINARIES =    $(PORTBINARIES) $(MATHBINARIES)
  51. #SCRIPTS =    ppmquantall
  52.  
  53. #OBJECTS =    giftoppm.r ppmtogif.r
  54. # gouldtoppm.r ilbmtoppm.r imgtoppm.r mtvtoppm.r \
  55. #        pcxtoppm.r pgmtoppm.r pi1toppm.r picttoppm.r \
  56. #        pjtoppm.r ppmdither.r ppmhist.r ppmmake.r \
  57. #        ppmquant.r ppmrelief.r ppmtoacad.r ppmtogif.r ppmtoicr.r \
  58. #        ppmtoilbm.r ppmtopcx.r ppmtopgm.r ppmtopi1.r ppmtopict.r \
  59. #        ppmtopj.r ppmtopuzz.r ppmtorgb3.r ppmtosixel.r \
  60. #        ppmtotga.r ppmtouil.r ppmtoxpm.r ppmtoyuv.r qrttoppm.r \
  61. #        rawtoppm.r rgb3toppm.r sldtoppm.r spctoppm.r sputoppm.r \
  62. #        tgatoppm.r ximtoppm.r xpmtoppm.r yuvtoppm.r \
  63. #        ppmforge.r ppmpat.r
  64. #
  65.  
  66. _GIFTOPPM = giftoppm.r    ppm.h $(DEFPGM) $(DEFPBM) $(LIBPPM) $(LIBPGM)\                     $(LIBPBM) 
  67. giftoppm: $(CC) -fd=/r0/giftoppm -dOSK $(INCLUDE) $(_GIFTOPPM) 
  68.  
  69. # Rule for plain programs.
  70. #$(PORTBINARIES):    ppm.h $(DEFPGM) $(DEFPBM) $(LIBPPM) $(LIBPGM) $(LIBPBM)
  71. #    $(CC) $(ALLCFLAGS) $(LIBPPM) $(LIBPGM) $(LIBPBM)
  72.  
  73. # Rule for math-dependent programs.
  74. #$(MATHBINARIES):    ppm.h $(DEFPGM) $(DEFPBM) $(LIBPPM) $(LIBPGM) $(LIBPBM)
  75. #    $(CC) $(ALLCFLAGS) $(LDFLAGS) -o $@ $@.c -lm $(LIBPPM) $(LIBPGM) $(LIBPBM)
  76.  
  77. # Rule for objects.
  78. #$(OBJECTS):    ppm.h $(DEFPGM) $(DEFPBM)
  79. #    $(CC) $(ALLCFLAGS)
  80. # "-Dmain=$*_main" -c $*.c
  81.  
  82. # And libraries.
  83. #$(LIBPBM):
  84. #    cd $(PBMDIR) ; make lib
  85. #$(LIBPGM):
  86. #    cd $(PGMDIR) ; make lib
  87. lib: libppm1.r libppm2.r libppm3.r libppm4.r libppm5.r
  88.      merge $(RDIR)/libppm1.r $(RDIR)/libppm2.r $(RDIR)/libppm3.r \
  89.          $(RDIR)/libppm4.r $(RDIR)/libppm5.r >libppm.l
  90.  
  91. libppm1.r:    ppm.h $(DEFPGM) $(DEFPBM) libppm.h libppm1.c
  92.     $(CC) $(ALLCFLAGS)  libppm1.c
  93. libppm2.r:    ppm.h $(DEFPGM) $(DEFPBM) libppm.h libppm2.c $(DEFLIBPGM) \
  94.         $(DEFLIBPBM)
  95.     $(CC) $(ALLCFLAGS)  libppm2.c
  96. libppm3.r:    ppm.h $(DEFPGM) $(DEFPBM) ppmcmap.h libppm.h libppm3.c
  97.     $(CC) $(ALLCFLAGS)  libppm3.c
  98. libppm4.r:    ppm.h $(DEFPGM) $(DEFPBM) libppm4.c
  99.     $(CC) $(ALLCFLAGS)  libppm4.c
  100. libppm5.r:    ppm.h $(DEFPGM) $(DEFPBM) ppmdraw.h libppm5.c
  101.     $(CC) $(ALLCFLAGS)  libppm5.c
  102.  
  103. # Other dependencies.
  104. giftoppm.r :giftoppm.c
  105. #gouldtoppm gouldtoppm.r:    gouldtoppm.c
  106. #ilbmtoppm ilbmtoppm.r:        ilbmtoppm.c ilbm.h
  107. #imgtoppm imgtoppm.r:        imgtoppm.c
  108. #mtvtoppm mtvtoppm.r:        mtvtoppm.c
  109. #pcxtoppm pcxtoppm.r:        pcxtoppm.c
  110. #pgmtoppm pgmtoppm.r:        pgmtoppm.c
  111. #pi1toppm pi1toppm.r:        pi1toppm.c
  112. #picttoppm picttoppm.r:        picttoppm.c
  113. #pjtoppm pjtoppm.r:        pjtoppm.c
  114. #ppmdither ppmdither.r:        ppmdither.c
  115. #ppmforge ppmforge.r:        ppmforge.c
  116. #ppmhist ppmhist.r:        ppmhist.c ppmcmap.h
  117. #ppmmake ppmmake.r:        ppmmake.c
  118. #ppmpat ppmpat.r:        ppmpat.c ppmdraw.h
  119. #ppmquant ppmquant.r:        ppmquant.c $(PGMDIR)/dithers.h ppmcmap.h
  120. #ppmrelief ppmrelief.r:        ppmrelief.c
  121. #ppmtoacad ppmtoacad.r:        ppmtoacad.c ppmcmap.h autocad.h
  122. ppmtogif.r:        ppmtogif.c ppmcmap.h
  123. #ppmtoicr ppmtoicr.r:        ppmtoicr.c ppmcmap.h
  124. #ppmtoilbm ppmtoilbm.r:        ppmtoilbm.c ilbm.h ppmcmap.h
  125. #ppmtopcx ppmtopcx.r:        ppmtopcx.c ppmcmap.h
  126. #ppmtopgm ppmtopgm.r:        ppmtopgm.c
  127. #ppmtopi1 ppmtopi1.r:        ppmtopi1.c ppmcmap.h
  128. #ppmtopict ppmtopict.r:        ppmtopict.c ppmcmap.h
  129. #ppmtopj ppmtopj.r:        ppmtopj.c
  130. #ppmtopuzz ppmtopuzz.r:        ppmtopuzz.c ppmcmap.h
  131. #ppmtorgb3 ppmtorgb3.r:        ppmtorgb3.c
  132. #ppmtosixel ppmtosixel.r:    ppmtosixel.c ppmcmap.h
  133. #ppmtotga ppmtotga.r:        ppmtotga.c ppmcmap.h
  134. #ppmtouil ppmtouil.r:        ppmtouil.c ppmcmap.h
  135. #ppmtoxpm ppmtoxpm.r:        ppmtoxpm.c ppmcmap.h
  136. #ppmtoyuv ppmtoyuv.r:        ppmtoyuv.c
  137. #qrttoppm qrttoppm.r:        qrttoppm.c
  138. #rawtoppm rawtoppm.r:        rawtoppm.c
  139. #rgb3toppm rgb3toppm.r:        rgb3toppm.c
  140. #sldtoppm sldtoppm.r:        sldtoppm.c ppmdraw.h autocad.h
  141. #spctoppm spctoppm.r:        spctoppm.c
  142. #sputoppm sputoppm.r:        sputoppm.c
  143. #tgatoppm tgatoppm.r:        tgatoppm.c tga.h
  144. #ximtoppm ximtoppm.r:        ximtoppm.c xim.h
  145. #xpmtoppm xpmtoppm.r:        xpmtoppm.c
  146. #yuvtoppm yuvtoppm.r:        yuvtoppm.c
  147.  
  148. #clean:
  149. #    -rm -f *.r *.a *.cat core $(BINARIES) ppmmerge
  150.