]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/cmd/mkfile
aux/realemu: run cpuproc in same fd group as fileserver
[plan9front.git] / sys / src / cmd / mkfile
index 4c930ab0c0cc6a822204982ef0a449f329bee027..08de8cc516da53b0cf41d8627e26262670635c8c 100644 (file)
@@ -8,12 +8,12 @@ LDFLAGS=
 YFLAGS=-d
 
 NOTSYS=sml|dup|.+\..+
-
-NOMK=$NOTSYS
+PCONLY=|vmx
+NOMK=$NOTSYS`{~ $objtype (386 amd64) || echo $PCONLY}
 
 cpuobjtype=`{sed -n 's/^O=//p' /$cputype/mkfile}
 DIRS=`{echo */mkfile | sed 's,/mkfile *,\n,g' | grep -v '^('$NOMK')$'}
-APEDIRS=awk bzip2 compress cvs eqn grap gs links-ape lp pic postscript spin \
+APEDIRS=bzip2 compress cvs eqn grap gs links-ape lp pic postscript spin \
        tex troff
 
 none:VQ:
@@ -48,7 +48,7 @@ all:V:        $PROGS dirs
 &:n:   $O.&
        mv $O.$stem $stem
 
-%.tab.h %.tab.c:       %.y
+%.tab.h %.tab.c:D:     %.y
        $YACC $YFLAGS -s $stem $prereq
 
 %.install:V: $BIN/%
@@ -82,7 +82,7 @@ nuke:V:               cleanfiles nuke.directories
 directories:V: install.directories
 
 cleanfiles:V:
-       rm -f [$OS].out *.[$OS] y.tab.? y.debug y.output [$OS].$TARG [$OS].units.tab $TARG bc.c bc.tab.h units.tab.h units.c [$OS]._cp
+       rm -f [$OS].out *.[$OS] y.tab.? y.debug y.output [$OS].$TARG [$OS].units.tab $TARG bc.c bc.tab.h units.tab.h units.c mpc.c mpc.tab.h [$OS]._cp
 
 %.clean:V:
        rm -f [$OS].$stem $stem.[$OS]
@@ -103,12 +103,12 @@ installall:V:
                mk $stem.install &
        }
        wait
-       rm -f $stem.[$OS] y.tab.? $stem.tab.? y.debug y.output [$OS].$stem bc.c bc.tab.h units.c
+       rm -f $stem.[$OS] y.tab.? $stem.tab.? y.debug y.output [$OS].$stem bc.c bc.tab.h units.c mpc.c
 
 %.acid: %.$O $HFILES
        $CC $CFLAGS -a $stem.c >$target
 
-(bc|units|mpc).c:R:    \1.tab.c
+(bc|units|mpc|pc).c:R: \1.tab.c
        mv $stem1.tab.c $stem1.c
 
 $BIN/init:     $O.init