source: trunk/Jgraph/makefile@ 418

Last change on this file since 418 was 418, checked in by Nicholas Riley, 16 years ago

Jgraph 8.3 from http://www.cs.utk.edu/~plank/plank/jgraph/jgraph.tar.gz

File size: 1.8 KB
Line 
1# If you're running this on a NeXT machine (or with an ansi-c compiler),
2# you should make sure that
3# cc is run with -DLCC. This makes sure that macro LCC is defined, and
4# should make sure that <stdlib.h> is included.
5
6# Also, before installing, you should change the string "JGRAPH_DIR" in
7# jgraph.1 to be the directory containing the example jgraphs.
8
9CC = gcc -LCC
10
11OBJS = draw.o \
12 edit.o \
13 jgraph.o \
14 list.o \
15 printline.o \
16 prio_list.o \
17 process.o \
18 show.o \
19 token.o
20
21EXAMPLES = \
22 acc.jps \
23 acc.eps \
24 alb.jps \
25 ad.jps \
26 bailey.jps \
27 ebars.jps \
28 ex1.jps \
29 ex2.jps \
30 g8.jps \
31 g8col.jps \
32 g9n10.jps \
33 gpaper.jps \
34 hypercube.jps \
35 mab2.jps \
36 nr.jps \
37 sin.jps \
38 sin1.jps \
39 sin2.jps \
40 sin3.jps \
41 tree1.jps \
42 tree2.jps \
43 wortman.jps
44
45
46all: jgraph
47
48examples: $(EXAMPLES)
49
50.SUFFIXES: .c .o .h .jgr .jps .eps .tex .dvi
51
52.jgr.jps:
53 jgraph -P < $*.jgr > $*.jps
54
55.jgr.eps:
56 jgraph < $*.jgr > $*.eps
57
58.tex.dvi:
59 latex $*.tex
60.c.o:
61 $(CC) -c -g $*.c
62
63
64jgraph: $(OBJS)
65 $(CC) -g $(OBJS) -lm -o jgraph
66
67sin: sin.o
68 cc -o sin sin.o -lm
69
70ad.jps: cube.eps disk.eps
71bailey.jps: bailey.pts
72ex2.jps: data.txt
73mab2.jps: mab2.times
74sin.jps: sin
75sin2.jps: sin2.pts
76sin3.jps: sin3.pts
77tree1.jps: tree.awk
78 ( echo "4 3" | nawk -f tree.awk ; echo "xaxis size 5.4" ) | \
79 jgraph -P > tree1.jps
80tree2.jps: tree.awk
81 ( echo "5 2" | nawk -f tree.awk ; echo "xaxis size 5.4" ) | \
82 jgraph -P > tree2.jps
83
84
85###
86draw.o: draw.c jgraph.h list.h prio_list.h
87edit.o: edit.c jgraph.h list.h prio_list.h
88jgraph.o: jgraph.c jgraph.h list.h prio_list.h
89list.o: list.c list.h
90printline.o: printline.c jgraph.h list.h prio_list.h
91prio_list.o: prio_list.c list.h prio_list.h
92process.o: process.c jgraph.h list.h prio_list.h
93show.o: show.c jgraph.h list.h prio_list.h
94token.o: token.c list.h
95clean:
96 rm -f *.o a.out *.jps
Note: See TracBrowser for help on using the repository browser.