summaryrefslogtreecommitdiff
path: root/parse/mkfile
blob: 6be40dbf017fe0c91d5188938569278a0362b329 (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
</$objtype/mkfile
CC=pcc
LD=pcc
CFLAGS=-c -D_POSIX_SOURCE -D_SUSV2_SOURCE -D_C99_SNPRINTF_EXTENSION

LIB=libparse.a
OFILES=bitset.$O \
    dump.$O \
    gram.$O \
    htab.$O \
    infer.$O \
    names.$O \
    node.$O \
    specialize.$O \
    stab.$O \
    tok.$O \
    type.$O \
    use.$O \
    util.$O

HFILES=parse.h ../config.h
CLEANFILES=gram.c gram.h

</sys/src/cmd/mklib

install:V: $LIB
	touch $LIB

uninstall:V:
	echo nothing to uninstall

gram.c gram.h: gram.y
	yacc -d -S gram.y
    mv y.tab.c gram.c
    mv y.tab.h gram.h