summaryrefslogtreecommitdiff
path: root/parse/mkfile
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-02-26 15:24:14 -0800
committerOri Bernstein <ori@eigenstate.org>2016-02-26 15:24:14 -0800
commit6e5b64b5b225a3a491cc07dbb6f300bd4a5994b2 (patch)
treecee6ace7ea4b55724894d7299a7abfdde994ed8e /parse/mkfile
parent2a76c9fc491ab08492491ddce7fb26d953879791 (diff)
downloadmc-6e5b64b5b225a3a491cc07dbb6f300bd4a5994b2.tar.gz
Fix compile of C code
Diffstat (limited to 'parse/mkfile')
-rw-r--r--parse/mkfile32
1 files changed, 15 insertions, 17 deletions
diff --git a/parse/mkfile b/parse/mkfile
index 14bc160..0dd62fc 100644
--- a/parse/mkfile
+++ b/parse/mkfile
@@ -1,25 +1,23 @@
</$objtype/mkfile
CC=pcc
LD=pcc
-CFLAGS=-c -D_POSIX_SOURCE -D_SUSV2_SOURCE -D_C99_SNPRINTF_EXTENSION
+CFLAGS=-c -D_POSIX_SOURCE -D_SUSV2_SOURCE -D_C99_SNPRINTF_EXTENSION -I../util
LIB=libparse.a
-OFILES=bitset.$O \
- dump.$O \
- fold.$O\
+OFILES= \
+ dump.$O \
+ fold.$O\
gram.$O \
- htab.$O \
- infer.$O \
- names.$O \
- node.$O \
- specialize.$O \
- stab.$O \
- tok.$O \
- type.$O \
- use.$O \
- util.$O
+ infer.$O \
+ names.$O \
+ node.$O \
+ specialize.$O \
+ stab.$O \
+ tok.$O \
+ type.$O \
+ use.$O \
-HFILES=parse.h ../config.h
+HFILES=parse.h ../util/util.h ../config.h
CLEANFILES=gram.c gram.h
</sys/src/cmd/mklib
@@ -32,5 +30,5 @@ uninstall:V:
gram.c gram.h: gram.y
yacc -d -S gram.y
- mv y.tab.c gram.c
- mv y.tab.h gram.h
+ mv y.tab.c gram.c
+ mv y.tab.h gram.h