source: trunk/Jgraph/makefile@ 565

Last change on this file since 565 was 420, checked in by Nicholas Riley, 17 years ago

Jgraph: my changes - ANSIfication, few minor bug fixes; works on OS X 10.5 now

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 -DLCC -Wall
10
11OBJS = draw.o \
12 edit.o \
13 list.o \
14 printline.o \
15 prio_list.o \
16 process.o \
17 show.o \
18 token.o
19
20EXAMPLES = \
21 acc.jps \
22 acc.eps \
23 alb.jps \
24 ad.jps \
25 bailey.jps \
26 ebars.jps \
27 ex1.jps \
28 ex2.jps \
29 g8.jps \
30 g8col.jps \
31 g9n10.jps \
32 gpaper.jps \
33 hypercube.jps \
34 mab2.jps \
35 nr.jps \
36 sin.jps \
37 sin1.jps \
38 sin2.jps \
39 sin3.jps \
40 tree1.jps \
41 tree2.jps \
42 wortman.jps
43
44LOADLIBES = -lm
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" | awk -f tree.awk ; echo "xaxis size 5.4" ) | \
79 jgraph -P > tree1.jps
80tree2.jps: tree.awk
81 ( echo "5 2" | awk -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 *.eps jgraph sin
Note: See TracBrowser for help on using the repository browser.