summaryrefslogtreecommitdiff
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
parent2a76c9fc491ab08492491ddce7fb26d953879791 (diff)
downloadmc-6e5b64b5b225a3a491cc07dbb6f300bd4a5994b2.tar.gz
Fix compile of C code
-rw-r--r--6/mkfile2
-rw-r--r--mi/mkfile5
-rw-r--r--mkfile13
-rw-r--r--muse/mkfile2
-rw-r--r--parse/mkfile32
5 files changed, 27 insertions, 27 deletions
diff --git a/6/mkfile b/6/mkfile
index 6be6629..1806454 100644
--- a/6/mkfile
+++ b/6/mkfile
@@ -1,7 +1,7 @@
</$objtype/mkfile
CC=pcc
-CFLAGS=-c -D_POSIX_SOURCE -D_SUSV2_SOURCE -D_C99_SNPRINTF_EXTENSION -I../parse -I../mi
+CFLAGS=-c -D_POSIX_SOURCE -D_SUSV2_SOURCE -D_C99_SNPRINTF_EXTENSION -I../parse -I../mi -I../util
LDFLAGS=-L../parse -lparse -L../mi -lmi
TARG=6m
diff --git a/mi/mkfile b/mi/mkfile
index 5cf0c3b..edec038 100644
--- a/mi/mkfile
+++ b/mi/mkfile
@@ -1,13 +1,14 @@
</$objtype/mkfile
CC=pcc
LD=pcc
-CFLAGS=-c -D_POSIX_SOURCE -D_SUSV2_SOURCE -D_C99_SNPRINTF_EXTENSION -I../parse
+CFLAGS=-c -D_POSIX_SOURCE -D_SUSV2_SOURCE -D_C99_SNPRINTF_EXTENSION -I../parse -I../util
LIB=libmi.a
OFILES=\
cfg.$O\
- match.$O\
dfcheck.$O\
+ flatten.$O\
+ match.$O\
reaching.$O\
HFILES=mi.h ../config.h ../parse/parse.h
diff --git a/mkfile b/mkfile
index 81d6926..bc51ea1 100644
--- a/mkfile
+++ b/mkfile
@@ -1,11 +1,12 @@
</$objtype/mkfile
-SUB = parse \
- mi \
- 6 \
- muse \
- rt \
- doc
+SUB = util \
+ parse \
+ mi \
+ 6 \
+ muse \
+ rt \
+ doc
all:V: $SUB config.h
for(dir in $SUB)@{
diff --git a/muse/mkfile b/muse/mkfile
index c6d1df8..20e8eb5 100644
--- a/muse/mkfile
+++ b/muse/mkfile
@@ -1,6 +1,6 @@
</$objtype/mkfile
CC=pcc
-CFLAGS=-c -D_POSIX_SOURCE -D_SUSV2_SOURCE -D_C99_SNPRINTF_EXTENSION -I../parse -I../
+CFLAGS=-c -D_POSIX_SOURCE -D_SUSV2_SOURCE -D_C99_SNPRINTF_EXTENSION -I../util -I../parse -I../
LDFLAGS=-L../parse -lparse
TARG=muse
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