home *** CD-ROM | disk | FTP | other *** search
- # Makefile to construct the hippo library
-
- # Paul Rensing, Mar 1, 1991
-
- # $Id: make.vms,v 1.7 1992/04/10 23:12:48 rensing Rel $
-
- # Copyright (C) 1991 The Board of Trustees of The Leland Stanford
- # Junior University. All Rights Reserved.
-
- .First
- @ delete == "delete/noconf"
- @ define rpc multinet_root:[multinet.include.rpc]
- @ define netinet multinet_root:[multinet.include.netinet]
- @ define sys multinet_root:[multinet.include.sys]
- @ nt2text == "$ $home:[hippo]nt2text"
- @ text2nt == "$ $home:[hippo]text2nt"
-
- .Suffixes .f
-
- .f.obj
- $(FORT) $(FFLAGS) $<
-
- .obj.olb
- If "''F$Search("$@")'" .EQS. "" Then LIBRARY/Create $@
- $(LIBR) $(LIBRFLAGS) $@ $<
- delete/noconfirm $<;*
-
- NAME=hippoX11
-
- # location of primary source code
- SRC_DIR =
-
- # location to install libs and include files
- LIB_INSTALLDIR =
- INC_INSTALLDIR =
-
- # files to install
- INSTALL_INCS = hippo.h hippostruct.h
- INSTALL_LIBS = $(NAME).olb $(NAME)_debug.olb
-
- CFLAGS = /define=("DEF_PLOT_DRVR=PLOTX11")
- CFLAGS_DEB = /debug/nooptimize$(CFLAGS)
-
- LIBRARY = $(LIB_DIR)$(NAME).olb
-
- MACH_DEP_MEMS = $(LIBRARY)(hippoplotX11.obj)
- DRVR_INCS = hippoplotX11.h
-
- LIBMEMS = $(LIBRARY)(-
- hippontuple.obj, -
- hippodisplay.obj, -
- hippoplot.obj, -
- hippoprint.obj, -
- hippoio.obj, -
- hippoutil.obj, -
- ntuple-parse.obj, -
- hippoxdr.obj, -
- fhippo.obj, -
- hippoplotPS.obj, -
- iparrayfill=hippof.obj) -
- $(MACH_DEP_MEMS)
-
-
- # Targets
-
- libs :
- @ $(MMS) $(MMSQUALIFIERS)/skip hippoX11.olb
-
- all : libs debuglibs
- ! done
-
- debuglibs :
- $(MMS) $(MMSQUALIFIERS)/skip -
- /macro=("NAME=$(NAME)X11_debug", "CFLAGS=$(CFLAGS_DEB)") -
- hippoX11_debug.olb
-
- util : text2nt.exe nt2text.exe
- ! done
-
- clean :
- delete/noconfirm *.obj;*
-
- help :
- @echo ' lib: makes $(NAME).olb'
- @echo ' debug: makes $(NAME)_debug.olb'
- @echo ' util: makes utilities nt2text.exe and text2nt.exe'
- @echo ' clean: removes all .obj files'
- @echo ' install: installs libraries and include files'
-
-
- test : util h_test.exe
- run h_test
- diff h_test.out h_test.out2
- text2nt example.hiptxt example.hippo2
- nt2text example.hippo2 example.hiptxt2
- diff example.hiptxt example.hiptxt2
- # diff/mode=hex example.hippo example.hippo2
- delete/noconfirm h_test.out2;*,example.hippo2;*,example.hiptxt2;*
-
- # When copying or moving files to installation directory, copy to
- # temp file then overwrite original. This solves some pathological
- # cases where you are moving a link onto its parent file.
- install :
-
-
- $(LIBRARY) : $(LIBMEMS)
- ! done
-
- nt2text.exe : nt2text.c libs
- $(CC) $(CFLAGS) nt2text.c
- link nt2text.obj,hippo/opt
- delete/noconf nt2text.obj;*
- purge nt2text.exe
-
- text2nt.exe : text2nt.c libs
- $(CC) $(CFLAGS) text2nt.c
- link text2nt.obj,hippo/opt
- delete/noconf text2nt.obj;*
- purge text2nt.exe
-
- h_test.exe : h_test.c libs
- $(CC) $(CFLAGS) h_test.c
- link h_test.obj,hippo/opt
- delete/noconf h_test.obj;*
- purge h_test.exe
-
- hippontuple.obj : hippontuple.c hippo.h hippostruct.h hippoutil.h
- hippodisplay.obj : hippodisplay.c hippo.h hippostruct.h hippoutil.h
- hippoplot.obj : hippoplot.c hippo.h hippostruct.h hippoutil.h
- hippoprint.obj : hippoprint.c hippo.h hippostruct.h hippoutil.h
- hippoio.obj : hippoio.c hippo.h hippostruct.h hippoutil.h
- hippoutil.obj : hippoutil.c hippo.h hippostruct.h hippoutil.h
- ntuple-parse.obj : ntuple-parse.c hippo.h hippostruct.h hippoutil.h
- hippoxdr.obj : hippoxdr.c hippo.h hippostruct.h hippoutil.h
- fhippo.obj : fhippo.c hippo.h hippostruct.h hippoutil.h
-
- hippof.obj : hippof.f
-
- hippoio.obj hippoxdr.obj : hippoxdr.h
-
- # plot drivers:
- hippoplot.obj : $(DRVR_INCS) hippoplotPS.h
-
- hippoplotUP.obj : hippoplotUP.c hippoplotUP.h
- hippoplotUP.obj : hippo.h hippostruct.h hippoutil.h
-
- hippoplotXIV.obj : hippoplotXIV.cc hippoplotXIV.h
- hippoplotXIV.obj : hippo.h hippostruct.h hippoutil.h
-
- hippoplotX11.o : hippoplotX11.c hippoplotX11.h
- hippoplotX11.o : hippo.h hippostruct.h hippoutil.h
-
- hippoplotPS.o : hippoplotPS.c hippoplotPS.h
- hippoplotPS.o : hippo.h hippostruct.h hippoutil.h
-
- hippowrapsps.obj : hippowrapsps.c
- hippowrapsps.c hippowrapsps.h : hippowrapsps.psw
-
-