aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/fossil/mkfile
blob: 6c75b6fc2d70fa86ea540ce4d13a0ea0fe349d69 (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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<$PLAN9/src/mkhdr
BIN=$BIN/fossil

TARG=fossil flchk flfmt conf last view

LIBFILES=\
	9p\
	9auth\
	9dir\
	9excl\
	9fid\
	9fsys\
	9lstn\
	9proc\
	9srv\
	9user\
	Ccmd\
	Ccli\
	Ccons\
	Clog\
	archive\
	nobwatch\
	cache\
	check\
	disk\
	error\
	file\
	fs\
	pack\
	periodic\
	source\
	vac\
	walk\

LIBCFILES=${LIBFILES:%=%.c}
LIBOFILES=${LIBFILES:%=%.$O}
LIB=libfs.a

HFILES=\
	$PLAN9/include/venti.h\
	stdinc.h\
	vac.h\
	dat.h\
	fns.h\
	fs.h\
	error.h\
	9.h\
	flfmt9660.h\

CFILES=${TARG:%=%.c} $LIBCFILES flfmt9660.c

UPDATE=\
	mkfile\
	$CFILES\
	$HFILES\

default:V: all

<$PLAN9/src/mkmany

$LIB(%.$O):N: %.$O
$LIB:	${LIBOFILES:%=$LIB(%)}
	$AR rsc $LIB $newmember

$O.flfmt: flfmt9660.$O

flfmt%.$O: flfmt9660.h

$O.conf:DQ: conf.rc
	{
		echo '#!/usr/local/plan9/bin/rc'
		echo '# THIS FILE IS AUTOMATICALLY GENERATED'
		echo '# FROM /usr/local/plan9/src/cmd/fossil/conf.rc.  DO NOT EDIT.'
		echo 
		sed 1d conf.rc
	} >$target && chmod +x $target

clean:
	rm -f $LIB

nuke: clean