home *** CD-ROM | disk | FTP | other *** search
/ Education Sampler 1992 [NeXTSTEP] / Education_1992_Sampler.iso / Programming / Source / HippoDraw / hippo / make.vms < prev    next >
Encoding:
Text File  |  1992-04-28  |  4.1 KB  |  159 lines

  1. #  Makefile to construct the hippo library
  2.  
  3. #  Paul Rensing, Mar 1, 1991
  4.  
  5. # $Id: make.vms,v 1.7 1992/04/10 23:12:48 rensing Rel $
  6.  
  7. # Copyright (C)  1991  The Board of Trustees of The Leland Stanford
  8. # Junior University.  All Rights Reserved.
  9.  
  10. .First
  11.     @ delete == "delete/noconf"
  12.     @ define rpc     multinet_root:[multinet.include.rpc]
  13.     @ define netinet multinet_root:[multinet.include.netinet]
  14.     @ define sys     multinet_root:[multinet.include.sys]
  15.     @ nt2text == "$ $home:[hippo]nt2text"
  16.     @ text2nt == "$ $home:[hippo]text2nt"
  17.  
  18. .Suffixes .f
  19.  
  20. .f.obj
  21.     $(FORT) $(FFLAGS) $<
  22.  
  23. .obj.olb
  24.     If "''F$Search("$@")'" .EQS. "" Then LIBRARY/Create $@
  25.     $(LIBR) $(LIBRFLAGS) $@ $<
  26.     delete/noconfirm $<;*
  27.     
  28. NAME=hippoX11
  29.  
  30. # location of primary source code
  31. SRC_DIR = 
  32.  
  33. # location to install libs and include files
  34. LIB_INSTALLDIR = 
  35. INC_INSTALLDIR = 
  36.  
  37. # files to install
  38. INSTALL_INCS = hippo.h hippostruct.h
  39. INSTALL_LIBS = $(NAME).olb $(NAME)_debug.olb
  40.  
  41. CFLAGS = /define=("DEF_PLOT_DRVR=PLOTX11")
  42. CFLAGS_DEB = /debug/nooptimize$(CFLAGS)
  43.  
  44. LIBRARY = $(LIB_DIR)$(NAME).olb
  45.  
  46. MACH_DEP_MEMS = $(LIBRARY)(hippoplotX11.obj)
  47. DRVR_INCS = hippoplotX11.h
  48.  
  49. LIBMEMS = $(LIBRARY)(-
  50.           hippontuple.obj, -
  51.           hippodisplay.obj, -
  52.           hippoplot.obj, -
  53.           hippoprint.obj, -
  54.           hippoio.obj, -
  55.           hippoutil.obj, -
  56.           ntuple-parse.obj, -
  57.           hippoxdr.obj, -
  58.           fhippo.obj, -
  59.           hippoplotPS.obj, -
  60.           iparrayfill=hippof.obj) -
  61.           $(MACH_DEP_MEMS)
  62.  
  63.  
  64. # Targets
  65.  
  66. libs : 
  67.     @ $(MMS) $(MMSQUALIFIERS)/skip hippoX11.olb
  68.  
  69. all   : libs debuglibs
  70.     ! done
  71.  
  72. debuglibs :
  73.     $(MMS) $(MMSQUALIFIERS)/skip -
  74.          /macro=("NAME=$(NAME)X11_debug", "CFLAGS=$(CFLAGS_DEB)") -
  75.          hippoX11_debug.olb
  76.  
  77. util : text2nt.exe nt2text.exe
  78.     ! done
  79.  
  80. clean :
  81.     delete/noconfirm *.obj;*
  82.  
  83. help :
  84.     @echo ' lib:     makes $(NAME).olb'
  85.     @echo ' debug:   makes $(NAME)_debug.olb'
  86.     @echo ' util:    makes utilities nt2text.exe and text2nt.exe'
  87.     @echo ' clean:   removes all .obj files'
  88.     @echo ' install: installs libraries and include files'
  89.  
  90.  
  91. test : util h_test.exe
  92.     run h_test 
  93.     diff h_test.out h_test.out2
  94.     text2nt example.hiptxt example.hippo2
  95.     nt2text example.hippo2 example.hiptxt2
  96.     diff example.hiptxt example.hiptxt2
  97. #    diff/mode=hex example.hippo example.hippo2
  98.     delete/noconfirm h_test.out2;*,example.hippo2;*,example.hiptxt2;*
  99.  
  100. # When copying or moving files to installation directory, copy to
  101. #  temp file then overwrite original. This solves some pathological 
  102. #  cases where you are moving a link onto its parent file.
  103. install :
  104.  
  105.  
  106. $(LIBRARY) : $(LIBMEMS)
  107.     ! done
  108.  
  109. nt2text.exe : nt2text.c libs
  110.     $(CC) $(CFLAGS) nt2text.c
  111.     link nt2text.obj,hippo/opt
  112.     delete/noconf nt2text.obj;*
  113.     purge nt2text.exe
  114.  
  115. text2nt.exe : text2nt.c libs
  116.     $(CC) $(CFLAGS) text2nt.c
  117.     link text2nt.obj,hippo/opt
  118.     delete/noconf text2nt.obj;*
  119.     purge text2nt.exe
  120.  
  121. h_test.exe : h_test.c libs
  122.     $(CC) $(CFLAGS) h_test.c
  123.     link h_test.obj,hippo/opt
  124.     delete/noconf h_test.obj;*
  125.     purge h_test.exe
  126.  
  127. hippontuple.obj  : hippontuple.c  hippo.h hippostruct.h hippoutil.h
  128. hippodisplay.obj : hippodisplay.c hippo.h hippostruct.h hippoutil.h
  129. hippoplot.obj    : hippoplot.c    hippo.h hippostruct.h hippoutil.h
  130. hippoprint.obj   : hippoprint.c   hippo.h hippostruct.h hippoutil.h
  131. hippoio.obj      : hippoio.c      hippo.h hippostruct.h hippoutil.h
  132. hippoutil.obj    : hippoutil.c    hippo.h hippostruct.h hippoutil.h
  133. ntuple-parse.obj : ntuple-parse.c hippo.h hippostruct.h hippoutil.h
  134. hippoxdr.obj     : hippoxdr.c     hippo.h hippostruct.h hippoutil.h
  135. fhippo.obj       : fhippo.c       hippo.h hippostruct.h hippoutil.h
  136.  
  137. hippof.obj : hippof.f
  138.  
  139. hippoio.obj hippoxdr.obj : hippoxdr.h
  140.  
  141. # plot drivers: 
  142. hippoplot.obj    : $(DRVR_INCS) hippoplotPS.h
  143.  
  144. hippoplotUP.obj : hippoplotUP.c hippoplotUP.h
  145. hippoplotUP.obj : hippo.h hippostruct.h hippoutil.h
  146.  
  147. hippoplotXIV.obj : hippoplotXIV.cc hippoplotXIV.h
  148. hippoplotXIV.obj : hippo.h hippostruct.h hippoutil.h
  149.  
  150. hippoplotX11.o : hippoplotX11.c hippoplotX11.h
  151. hippoplotX11.o : hippo.h hippostruct.h hippoutil.h
  152.  
  153. hippoplotPS.o : hippoplotPS.c hippoplotPS.h
  154. hippoplotPS.o : hippo.h hippostruct.h hippoutil.h
  155.  
  156. hippowrapsps.obj : hippowrapsps.c
  157. hippowrapsps.c hippowrapsps.h : hippowrapsps.psw
  158.  
  159.