-
Notifications
You must be signed in to change notification settings - Fork 1
/
mkfile
112 lines (95 loc) · 1.63 KB
/
mkfile
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
</$objtype/mkfile
BIN=$home/bin/$objtype
VERSION=0.8.15
TARG=\
strangepg\
DIRS=\
strawk\
OFILES=\
strpg.$O\
cmd/awkprog.$O\
cmd/cmd.$O\
draw/color.$O\
draw/draw.$O\
fs/em.$O\
fs/fs.$O\
fs/gfa.$O\
fs/layout.$O\
fs/load.$O\
fs/metacsv.$O\
graph/graph.$O\
layout/circ.$O\
layout/fr.$O\
layout/layout.$O\
layout/linear.$O\
layout/pfr.$O\
plan9/draw.$O\
plan9/fs.$O\
plan9/nanosec.$O\
plan9/sys.$O\
plan9/threads.$O\
plan9/ui.$O\
ui/ui.$O\
util/print.$O\
OCOARSEN=\
coarsen.$O\
fs/em.$O\
fs/fs.$O\
plan9/fs.$O\
plan9/nanosec.$O\
plan9/sys.$O\
plan9/threads.$O\
util/print.$O\
HFILES=\
dat.h\
fns.h\
cmd/cmd.h\
draw/drw.h\
fs/em.h\
fs/fs.h\
graph/graph.h\
layout/layout.h\
lib/khashl.h\
plan9/strpg.h\
plan9/threads.h\
ui/ui.h\
util/dynar.h\
</sys/src/cmd/mkmany
CFLAGS=$CFLAGS -p -D__plan9__ -D__${objtype}__ \
-I/sys/include/npe -Iplan9 \
-I. -Icmd -Idraw -Ifs -Igraph -Ilayout -Irend -Iui -Iutil \
-DVERSION="$VERSION" \
#LDFLAGS=$LDFLAGS -p
%.$O: %.c
$CC $CFLAGS -o $target $stem.c
$O.strangepg: $OFILES
$LD $LDFLAGS -o $target $prereq
$O.coarsen: $OCOARSEN
$LD $LDFLAGS -o $target $prereq
cmd/awkprog.c: cmd/main.awk
n/awk2c.rc <$prereq >$target
CLEANFILES=$OFILES
all:V: dirall
install:V: dirinstall
dirinstall:V:
for (i in $DIRS) @{
cd $i
mk install
}
dirall:V:
for (i in $DIRS) @{
cd $i
mk all
}
clean:
for(i in $DIRS test) @{
cd $i
mk clean
}
rm -f *.[$OS] *.a[$OS] y.tab.? lex.yy.c y.debug y.output [$OS].* $TARG $CLEANFILES
nuke:
for(i in $DIRS test) @{
cd $i
mk nuke
}
rm -f *.[$OS] *.a[$OS] y.tab.? lex.yy.c y.debug y.output [$OS].* $TARG $CLEANFILES cmd/awkprog.c