summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--6/mkfile4
-rw-r--r--doc/mkfile4
-rw-r--r--libstd/mkfile5
-rw-r--r--mi/mkfile2
-rw-r--r--muse/mkfile1
-rw-r--r--myrbuild/mkfile1
-rw-r--r--parse/mkfile6
-rw-r--r--rt/mkfile9
8 files changed, 29 insertions, 3 deletions
diff --git a/6/mkfile b/6/mkfile
index 5be56c4..f894742 100644
--- a/6/mkfile
+++ b/6/mkfile
@@ -1,4 +1,5 @@
</$objtype/mkfile
+
CC=pcc
CFLAGS=-c -D_POSIX_SOURCE -D_SUSV2_SOURCE -D_C99_SNPRINTF_EXTENSION -I../parse -I../mi
LDFLAGS=-L../parse -lparse -L../mi -lmi
@@ -17,4 +18,7 @@ OFILES=\
LIB=../parse/libparse.a ../mi/libmi.a
+HFILES=asm.h ../parse/parse.h ../mi/mi.h ../config.h
+
+BIN=/$objtype/bin
</sys/src/cmd/mkone
diff --git a/doc/mkfile b/doc/mkfile
index 9c93aaa..2d94395 100644
--- a/doc/mkfile
+++ b/doc/mkfile
@@ -4,3 +4,7 @@ MANS=\
myrbuild.1 \
all:V: $MANS
+
+install:V:
+ echo -n ''
+
diff --git a/libstd/mkfile b/libstd/mkfile
index 0b6a6ba..e403f18 100644
--- a/libstd/mkfile
+++ b/libstd/mkfile
@@ -69,6 +69,11 @@ STDSRC= \
all:V: lib$STDLIB.a lib$SYSLIB.a
+install:V: all
+ mkdir -p /$objtype/lib/myr/
+ cp lib$STDLIB.a lib$SYSLIB.a /$objtype/lib/myr/
+ cp $STDLIB $SYSLIB /$objtype/lib/myr/
+
lib$STDLIB.a: $STDSRC $ASMSRC lib$SYSLIB.a
../myrbuild/$O.out -I. -C../6/$O.out -M../muse/$O.out -l $STDLIB $STDSRC $STDASMSRC
diff --git a/mi/mkfile b/mi/mkfile
index 060ce31..c443c0b 100644
--- a/mi/mkfile
+++ b/mi/mkfile
@@ -10,7 +10,7 @@ OFILES=\
match.$O\
df.$O\
-HFILES=mi.h
+HFILES=mi.h ../config.h ../parse/parse.h
</sys/src/cmd/mklib
diff --git a/muse/mkfile b/muse/mkfile
index 654cf8f..9f55de9 100644
--- a/muse/mkfile
+++ b/muse/mkfile
@@ -9,4 +9,5 @@ OFILES=\
LIB=../parse/libparse.a
+BIN=/$objtype/bin
</sys/src/cmd/mkone
diff --git a/myrbuild/mkfile b/myrbuild/mkfile
index 52b1bea..6074efe 100644
--- a/myrbuild/mkfile
+++ b/myrbuild/mkfile
@@ -7,4 +7,5 @@ TARG=myrbuild
OFILES=myrbuild.$O
LIB=../parse/libparse.a
+BIN=/$objtype/bin
</sys/src/cmd/mkone
diff --git a/parse/mkfile b/parse/mkfile
index d2053e8..415cae3 100644
--- a/parse/mkfile
+++ b/parse/mkfile
@@ -18,11 +18,15 @@ OFILES=bitset.$O \
use.$O \
util.$O
-HFILES=parse.h
+HFILES=parse.h ../config.h
CLEANFILES=gram.c gram.h
</sys/src/cmd/mklib
+install:V: $LIB
+ touch $LIB
+
+
gram.c gram.h: gram.y
yacc -d -S gram.y
mv y.tab.c gram.c
diff --git a/rt/mkfile b/rt/mkfile
index 18e4310..880da21 100644
--- a/rt/mkfile
+++ b/rt/mkfile
@@ -1,6 +1,13 @@
</$objtype/mkfile
+all:V: _myrrt.$O
+
_myrrt.$O: _myrrt-plan9.s
$AS -o _myrrt.$O _myrrt-plan9.s
-</sys/src/cmd/mkone
+install:V:
+ mkdir -p /$objtype/lib/myr
+ cp _myrrt.$O /$objtype/lib/myr
+
+clean:V:
+ rm -f _myrrt.$O \ No newline at end of file