Add the #goo to allow use in C++.
Silence a few more warnings. Strip down the mkfiles more. Fix bug in X11 mouse handling, note groups.
This commit is contained in:
parent
dc13c29ed1
commit
f7012583e9
41 changed files with 300 additions and 163 deletions
35
src/mkone
35
src/mkone
|
|
@ -2,43 +2,16 @@ PROG=$O.$TARG
|
|||
|
||||
all:V: $PROG
|
||||
|
||||
$O.$TARG: $OFILES $LIB
|
||||
$PROG: $OFILES $LIB
|
||||
$LD -o $target $prereq $LDFLAGS
|
||||
|
||||
%.$O: $HFILES # don't combine with following %.$O rules
|
||||
|
||||
%.$O: %.c
|
||||
$CC $CFLAGS $stem.c
|
||||
|
||||
%.$O: %.s
|
||||
$AS $AFLAGS $stem.s
|
||||
|
||||
y.tab.h y.tab.c: $YFILES
|
||||
$YACC $YFLAGS $prereq
|
||||
|
||||
install:V: $TARG.install
|
||||
%.install:V: $BIN/%
|
||||
|
||||
$BIN/%: $O.%
|
||||
$INSTALL $O.$stem $BIN/$stem
|
||||
|
||||
%.installall:V:
|
||||
for (objtype in $CPUS)
|
||||
mk $stem.install
|
||||
NUKEFILES=$NUKEFILES $BIN/$TARG
|
||||
|
||||
install:V: $TARG.install
|
||||
<$PLAN9/src/mkcommon
|
||||
|
||||
installall:V:
|
||||
for(objtype in $CPUS)
|
||||
mk $MKFLAGS install
|
||||
|
||||
nuke:V:
|
||||
rm -f *.[$OS] y.tab.? y.debug y.output [$OS].* *.acid $TARG $NUKEFILES
|
||||
|
||||
clean:V:
|
||||
rm -f *.[$OS] y.tab.? y.debug y.output [$OS].* $TARG $CLEANFILES
|
||||
|
||||
%.clean:V:
|
||||
rm -f $stem.[$OS] [$OS].$stem $stem.acid $stem
|
||||
|
||||
%.acid: %.$O $HFILES
|
||||
$CC $CFLAGS -a $stem.c >$target
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue