home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / NETWORK / netpbm_src.lzh / NETPBM / PGM / Makefile.mms < prev    next >
Makefile  |  1996-11-18  |  7KB  |  194 lines

  1. # MMS Description file for pgm tools.
  2. #
  3. # Copyright (C) 1989 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. # Written by Rick Dyson (dyson@iowasp.physics.uiowa.edu) 10-NOV-1991
  13. # originally based on one by Terry Poot (tp@mccall.com)
  14. #
  15.  
  16. # Default values
  17. INSTALLBINARIES =    PBMplus_Root:[Exe]
  18. INSTALLMANUALS  =    PBMplus_Root:[TeX]
  19.  
  20. # PBM is required, don't comment these lines out.
  21. PBMDIR =    [-.pbm]
  22. PBMLIB =    $(PBMDIR)libpbm.olb
  23. PBMINC =    $(PBMDIR)pbm.h [-]pbmplus.h
  24. PBMLIBDEF =    $(PBMDIR)libpbm.h
  25.  
  26. PGMLIB =    libpgm.olb
  27. LIBS =          $(PGMLIB)/Library,$(PBMLIB)/Library
  28. OPT =        [-]PBMplusSHR.OPT/Option
  29. CFLAGS =     $(CFLAGS) /Define = (PBMPLUS_RAWBITS,LIBTIFF) /Include_Directory = ([-.pbm],[-])
  30.  
  31. BINARIES =    fstopgm.exe hipstopgm.exe lispmtopgm.exe \
  32.         pgmbentley.exe pgmcrater.exe pgmedge.exe pgmenhance.exe \
  33.         pgmhist.exe pgmnoise.exe pgmnorm.exe pgmoil.exe pgmramp.exe \
  34.         pgmkernel.exe \
  35.         pgmtofs.exe pgmtolispm.exe pgmtopbm.exe psidtopgm.exe \
  36.         rawtopgm.exe pgmtexture.exe asciitopgm.exe bioradtopgm.exe \
  37.         pbmtopgm.exe spottopgm.exe
  38.  
  39. MANUALS1 =    fstopgm.tex hipstopgm.tex lispmtopgm.tex \
  40.         pgmbentley.tex pgmcrater.tex pgmedge.tex pgmenhance.tex \
  41.         pgmhist.tex pgmnoise.tex pgmnorm.tex pgmoil.tex pgmramp.tex \
  42.         pgmtofs.tex pgmtolispm.tex pgmtopbm.tex psidtopgm.tex \
  43.         rawtopgm.tex pgmtexture.tex asciitopgm.exe bioradtopgm.tex \
  44.         pbmtopgm.tex spottopgm.tex pgmkernel.tex 
  45. MANUALS3 =    libpgm.tex
  46. MANUALS5 =    pgm.tex
  47.  
  48. MANUALS =     $(MANUALS1) $(MANUALS3) $(MANUALS5)
  49.  
  50. .suffixes :    .tex .1 .3 .5
  51.  
  52. .first
  53.     @ PBMPLUS_PATH = F$Element (0, "]", F$Environment ("DEFAULT")) - ".PGM" + ".]"
  54.     @ If F$TrnLnm ("PBMplus_Root") .eqs. "" Then -
  55.     Define /Translation_Attributes = Concealed PBMplus_Root "''PBMPLUS_PATH'"
  56.     @ If F$TrnLnm ("PBMplus_Dir") .eqs. "" Then -
  57.     Define PBMplus_Dir PBMplus_Root:[000000]
  58.     @ If F$TrnLnm ("Sys") .eqs. "" Then Define Sys Sys$Library
  59.  
  60. all :        binaries
  61.     @ continue
  62.  
  63. install :    installbinaries
  64.     @ continue
  65.  
  66. binaries :    $(PGMLIB) $(PBMLIB) $(BINARIES)
  67.     @ Set Protection = (System:RWE, Owner:RWE, Group:RE, World:RE) *.exe
  68.  
  69. installbinaries :    $(BINARIES)
  70.     @- Set Protection = (System:RWE, Owner:RWED, Group:RE, World:RE) *.exe
  71.     @- Rename /Log *.exe $(INSTALLBINARIES)
  72.     @- Set Protection = Owner:RWE PBMplus_Root:[Exe]*.exe
  73.  
  74. manual :    TeX $(MANUALS)
  75.     @ Set Protection = (System:RWE, Owner:RWE, Group:RE, World:RE) *.tex
  76.  
  77. installmanual :
  78.     @- Set Protection = (System:RWE, Owner:RWED, Group:RE, World:RE) *.tex
  79.     @- Rename *.tex $(INSTALLMANUALS)
  80.     @- Set Protection = Owner:RWE PBMplus_Root:[TeX]*.tex
  81.  
  82. TeX :
  83.     SETUP TeX
  84.  
  85. # Rules for creating TeX documentation from troff files.
  86. .1.tex :
  87.     tr2TeX -m -t -o $*.tex $*.1
  88. .3.tex :
  89.     tr2TeX -m -t -o $*.tex $*.3
  90. .5.tex :
  91.     tr2TeX -m -t -o $*.tex $*.5
  92.  
  93. # Rule for plain programs.
  94. .obj.exe :
  95.     $(LINK) $(LINKFLAGS) $*.obj,$(OPT)
  96. #    $(LINK) $(LINKFLAGS) $*.obj,$(LIBS),$(OPT)
  97.  
  98. # And libraries.
  99. lib :        $(PGMLIB)
  100.     @ Continue
  101.  
  102. $(PGMLIB) :    libpgm1.obj libpgm2.obj
  103.     Library /Create $(PGMLIB) libpgm%.obj
  104.  
  105. libpgm1.obj :    libpgm1.c pgm.h $(PBMINC) libpgm.h
  106. libpgm2.obj :    libpgm2.c pgm.h $(PBMINC) libpgm.h $(PBMLIBDEF)
  107.  
  108. $(PBMLIB) :
  109.     Set Default [-.pbm]
  110.     $(MMS) $(MMSQUALIFIERS) /Description = Makefile.MMS lib
  111.     Set Default [-.pgm]
  112.  
  113. # Object file dependencies
  114. fstopgm.obj :        fstopgm.c pgm.h $(PBMINC)
  115. hipstopgm.obj :        hipstopgm.c pgm.h $(PBMINC)
  116. lispmtopgm.obj :    lispmtopgm.c pgm.h $(PBMINC)
  117. pgmbentley.obj :    pgmbentley.c pgm.h $(PBMINC)
  118. pgmcrater.obj :        pgmcrater.c pgm.h $(PBMINC)
  119. pgmedge.obj :        pgmedge.c pgm.h $(PBMINC)
  120. pgmenhance.obj :    pgmenhance.c pgm.h $(PBMINC)
  121. pgmhist.obj :        pgmhist.c pgm.h $(PBMINC)
  122. pgmkernel.obj :        pgmkernel.c pgm.h $(PBMINC)
  123. pgmnoise.obj :        pgmnoise.c pgm.h $(PBMINC)
  124. pgmnorm.obj :        pgmnorm.c pgm.h $(PBMINC)
  125. pgmoil.obj :        pgmoil.c pgm.h $(PBMINC)
  126. pgmramp.obj :        pgmramp.c pgm.h $(PBMINC)
  127. pgmtexture.obj :    pgmtexture.c pgm.h $(PBMINC)
  128. pgmtofs.obj :        pgmtofs.c pgm.h $(PBMINC)
  129. pgmtopbm.obj :        pgmtopbm.c dithers.h $(PBMINC) pgm.h
  130. pgmtolispm.obj :    pgmtolispm.c pgm.h $(PBMINC)
  131. psidtopgm.obj :        psidtopgm.c pgm.h $(PBMINC)
  132. rawtopgm.obj :        rawtopgm.c pgm.h $(PBMINC)
  133. asciitopgm.obj :        asciitopgm.c pgm.h $(PBMINC)
  134. bioradtopgm.obj :       bioradtopgm.c pgm.h $(PBMINC)
  135. pbmtopgm.obj :          pbmtopgm.c pgm.h $(PBMINC)
  136. spottopgm.obj :         spottopgm.c pgm.h $(PBMINC)
  137.  
  138. # Binary dependencies, someone may want to build just a single image
  139. fstopgm.exe :        fstopgm.obj $(PGMLIB) $(PBMLIB)
  140. hipstopgm.exe :        hipstopgm.obj $(PGMLIB) $(PBMLIB)
  141. lispmtopgm.exe :    lispmtopgm.obj $(PGMLIB) $(PBMLIB)
  142. pgmbentley.exe :    pgmbentley.obj $(PGMLIB) $(PBMLIB)
  143. pgmcrater.exe :        pgmcrater.obj $(PGMLIB) $(PBMLIB)
  144. pgmedge.exe :        pgmedge.obj pgm.h $(PBMINC)
  145. pgmenhance.exe :    pgmenhance.obj $(PGMLIB) $(PBMLIB)
  146. pgmhist.exe :        pgmhist.obj $(PGMLIB) $(PBMLIB)
  147. pgmkernel.exe :        pgmkernel.obj $(PGMLIB) $(PBMLIB)
  148. pgmnoise.exe :        pgmnoise.obj $(PGMLIB) $(PBMLIB)
  149. pgmnorm.exe :        pgmnorm.obj $(PGMLIB) $(PBMLIB)
  150. pgmoil.exe :        pgmoil.obj $(PGMLIB) $(PBMLIB)
  151. pgmramp.exe :        pgmramp.obj $(PGMLIB) $(PBMLIB)
  152. pgmtexture.exe :    pgmtexture.obj $(PGMLIB) $(PBMLIB)
  153. pgmtofs.exe :        pgmtofs.obj $(PGMLIB) $(PBMLIB)
  154. pgmtopbm.exe :        pgmtopbm.obj $(PGMLIB) $(PBMLIB)
  155. pgmtolispm.exe :    pgmtolispm.obj $(PGMLIB) $(PBMLIB)
  156. psidtopgm.exe :        psidtopgm.obj $(PGMLIB) $(PBMLIB)
  157. rawtopgm.exe :        rawtopgm.obj $(PGMLIB) $(PBMLIB)
  158. asciitopgm.exe :        asciitopgm.obj $(PGMLIB) $(PBMLIB)
  159. bioradtopgm.exe :       bioradtopgm.obj $(PGMLIB) $(PBMLIB)
  160. pbmtopgm.exe :          pbmtopgm.obj $(PGMLIB) $(PBMLIB)
  161. spottopgm.exe :         spottopgm.obj $(PGMLIB) $(PBMLIB)
  162.  
  163. # TeX documentation dependencies
  164. fstopgm.tex :        fstopgm.1
  165. hipstopgm.tex :        hipstopgm.1
  166. lispmtopgm.tex :    lispmtopgm.1
  167. pgmbentley.tex :    pgmbentley.1
  168. pgmcrater.tex :        pgmcrater.1
  169. pgmedge.tex :        pgmedge.1
  170. pgmenhance.tex :    pgmenhance.1
  171. pgmhist.tex :        pgmhist.1
  172. pgmkernel.tex :        pgmkernel.1
  173. pgmnoise.tex :        pgmnoise.1
  174. pgmnorm.tex :        pgmnorm.1
  175. pgmoil.tex :        pgmoil.1
  176. pgmramp.tex :        pgmramp.1
  177. pgmtexture.tex :    pgmtexture.1
  178. pgmtofs.tex :        pgmtofs.1
  179. pgmtopbm.tex :        pgmtopbm.1
  180. pgmtolispm.tex :    pgmtolispm.1
  181. psidtopgm.tex :        psidtopgm.1
  182. rawtopgm.tex :        rawtopgm.1
  183. libpgm.tex :        libpgm.3
  184. pgm.tex :        pgm.5
  185. asciitopgm.tex :        asciitopgm.1
  186. bioradtopgm.tex :       bioradtopgm.1
  187. pbmtopgm.tex :          pbmtopgm.1
  188. spottopgm.tex :         spottopgm.1
  189.  
  190. clean :
  191.     - Set Protection = Owner:RWED *.obj;*,*.*;-1
  192.     - Purge /NoLog /NoConfirm *.*
  193.     - Delete /NoLog /NoConfirm *.obj;
  194.