# If you're running this on a NeXT machine (or with an ansi-c compiler), # you should make sure that # cc is run with -DLCC. This makes sure that macro LCC is defined, and # should make sure that is included. # Also, before installing, you should change the string "JGRAPH_DIR" in # jgraph.1 to be the directory containing the example jgraphs. CC = cc OBJS = draw.o \ edit.o \ jgraph.o \ list.o \ printline.o \ prio_list.o \ process.o \ show.o \ token.o EXAMPLE_SRC = \ acc.jgr \ ad.jgr \ alb.jgr \ bailey.jgr \ cube.jgr \ disk.jgr \ ebars.jgr \ ex1.jgr \ ex2.jgr \ data.txt \ g8.jgr \ g8col.jgr \ g9n10.jgr \ gpaper.jgr \ hypercube.jgr \ mab2.jgr \ mab2.times \ nr.jgr \ sin.pts \ sin1.jgr \ sin2.pts \ sin2.jgr \ sin3.pts \ sin3.jgr \ wortman.jgr EXAMPLES = \ acc.jps \ acc.eps \ alb.jps \ ad.jps \ bailey.jps \ ebars.jps \ ex1.jps \ ex2.jps \ g8.jps \ g8col.jps \ g9n10.jps \ gpaper.jps \ hypercube.jps \ mab2.jps \ nr.jps \ sin.jps \ sin1.jps \ sin2.jps \ sin3.jps \ tree1.jps \ tree2.jps \ wortman.jps all: jgraph examples: $(EXAMPLES) .SUFFIXES: .c .o .h .jgr .jps .eps .tex .dvi .jgr.jps: jgraph -P < $*.jgr > $*.jps .jgr.eps: jgraph < $*.jgr > $*.eps .tex.dvi: latex $*.tex .c.o: $(CC) -c $(CFLAGS) $*.c jgraph: $(OBJS) $(CC) $(CFLAGS) $(OBJS) -lm -o jgraph sin: sin.o cc -o sin sin.o -lm install: jgraph install -c -m 555 -o bin -g bin jgraph ${PREFIX}/bin install -c -m 444 -o bin -g bin jgraph.1 ${PREFIX}/man/man1 -mkdir -p -m 755 ${PREFIX}/share/jgraph install -c -m 444 -o bin -g bin $(EXAMPLE_SRC) ${PREFIX}/share/jgraph ad.jps: cube.eps disk.eps bailey.jps: bailey.pts ex2.jps: data.txt mab2.jps: mab2.times sin.jps: sin sin2.jps: sin2.pts sin3.jps: sin3.pts tree1.jps: tree.awk ( echo "4 3" | nawk -f tree.awk ; echo "xaxis size 5.4" ) | \ jgraph -P > tree1.jps tree2.jps: tree.awk ( echo "5 2" | nawk -f tree.awk ; echo "xaxis size 5.4" ) | \ jgraph -P > tree2.jps ### draw.o: draw.c jgraph.h list.h prio_list.h edit.o: edit.c jgraph.h list.h prio_list.h jgraph.o: jgraph.c jgraph.h list.h prio_list.h list.o: list.c list.h printline.o: printline.c jgraph.h list.h prio_list.h prio_list.o: prio_list.c list.h prio_list.h process.o: process.c jgraph.h list.h prio_list.h show.o: show.c jgraph.h list.h prio_list.h token.o: token.c list.h clean: rm -f *.o a.out *.jps