Last change
on this file since 452 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
|
Rev | Line | |
---|
[418] | 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 |
|
---|
[420] | 9 | CC = gcc -DLCC -Wall
|
---|
[418] | 10 |
|
---|
| 11 | OBJS = 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 |
|
---|
| 20 | EXAMPLES = \
|
---|
| 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 |
|
---|
[419] | 44 | LOADLIBES = -lm
|
---|
[418] | 45 |
|
---|
| 46 | all: jgraph
|
---|
| 47 |
|
---|
| 48 | examples: $(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
|
---|
[419] | 60 | #.c.o:
|
---|
| 61 | # $(CC) -c -g $*.c
|
---|
[418] | 62 |
|
---|
| 63 |
|
---|
| 64 | jgraph: $(OBJS)
|
---|
[419] | 65 | # $(CC) -g $(OBJS) -lm -o jgraph
|
---|
[418] | 66 |
|
---|
| 67 | sin: sin.o
|
---|
| 68 | cc -o sin sin.o -lm
|
---|
| 69 |
|
---|
| 70 | ad.jps: cube.eps disk.eps
|
---|
| 71 | bailey.jps: bailey.pts
|
---|
| 72 | ex2.jps: data.txt
|
---|
| 73 | mab2.jps: mab2.times
|
---|
| 74 | sin.jps: sin
|
---|
| 75 | sin2.jps: sin2.pts
|
---|
| 76 | sin3.jps: sin3.pts
|
---|
| 77 | tree1.jps: tree.awk
|
---|
[419] | 78 | ( echo "4 3" | awk -f tree.awk ; echo "xaxis size 5.4" ) | \
|
---|
[418] | 79 | jgraph -P > tree1.jps
|
---|
| 80 | tree2.jps: tree.awk
|
---|
[419] | 81 | ( echo "5 2" | awk -f tree.awk ; echo "xaxis size 5.4" ) | \
|
---|
[418] | 82 | jgraph -P > tree2.jps
|
---|
| 83 |
|
---|
| 84 |
|
---|
| 85 | ###
|
---|
| 86 | draw.o: draw.c jgraph.h list.h prio_list.h
|
---|
| 87 | edit.o: edit.c jgraph.h list.h prio_list.h
|
---|
| 88 | jgraph.o: jgraph.c jgraph.h list.h prio_list.h
|
---|
| 89 | list.o: list.c list.h
|
---|
| 90 | printline.o: printline.c jgraph.h list.h prio_list.h
|
---|
| 91 | prio_list.o: prio_list.c list.h prio_list.h
|
---|
| 92 | process.o: process.c jgraph.h list.h prio_list.h
|
---|
| 93 | show.o: show.c jgraph.h list.h prio_list.h
|
---|
| 94 | token.o: token.c list.h
|
---|
| 95 | clean:
|
---|
[420] | 96 | rm -f *.o a.out *.jps *.eps jgraph sin
|
---|
Note:
See
TracBrowser
for help on using the repository browser.