blob: 2cd3de3fa18b6463b8a92b63c4fea769ed7c0cf9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
--- makefile.orig 2015-05-15 15:48:34 UTC
+++ makefile
@@ -18,6 +18,34 @@ OBJS = draw.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 \
@@ -58,15 +86,21 @@ examples: $(EXAMPLES)
.tex.dvi:
latex $*.tex
.c.o:
- $(CC) -c -g $*.c
+ $(CC) -c $(CFLAGS) $*.c
jgraph: $(OBJS)
- $(CC) -g $(OBJS) -lm -o jgraph
+ $(CC) $(CFLAGS) $(OBJS) -lm -o jgraph
sin: sin.o
cc -o sin sin.o -lm
+install: jgraph
+ ${BSD_INSTALL_PROGRAM} jgraph ${DESTDIR}${PREFIX}/bin
+ ${BSD_INSTALL_MAN} jgraph.1 ${DESTDIR}${PREFIX}/share/man/man1
+ -mkdir -p -m 755 ${DESTDIR}${DATADIR}
+ ${BSD_INSTALL_DATA} $(EXAMPLE_SRC) ${DESTDIR}${DATADIR}
+
ad.jps: cube.eps disk.eps
bailey.jps: bailey.pts
ex2.jps: data.txt
|