diff options
| author | bhgv <bhgv.empire@gmail.com> | 2018-03-01 16:54:45 +0200 |
|---|---|---|
| committer | bhgv <bhgv.empire@gmail.com> | 2018-03-01 16:54:45 +0200 |
| commit | b786f20bbab5a59046aa78a2c6c2a11536497202 (patch) | |
| tree | 0851ecdec889eb9b7ba3751cc04d4f0b474e4a9e /mkfiles/mksyslib-nt | |
inferno-os tree was separated from the inferno-os-android (separated from the Android driver)
Diffstat (limited to 'mkfiles/mksyslib-nt')
| -rw-r--r-- | mkfiles/mksyslib-nt | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/mkfiles/mksyslib-nt b/mkfiles/mksyslib-nt new file mode 100644 index 0000000..89f6457 --- /dev/null +++ b/mkfiles/mksyslib-nt @@ -0,0 +1,54 @@ +# +# Rules for updating a library with Nt rcsh +# +LIBDIR=$ROOT/$OBJDIR/lib +LIBRARY=$LIBDIR/$LIB +LIBOBJ=${OFILES:%=$LIBRARY(%)} + +default:V: all + +all install:V: $LIBRARY + +installall:V: + for (objtype in $CPUS) + mk $MKFLAGS install + +clean:V: clean-std + +nuke:V: nuke-std + +LIB1=${LIBRARY:%=$ARPREFIX%} + +$LIBRARY: $LIBOBJ $OFILES + $AR $ARFLAGS $LIB1 $OFILES + +$LIBRARY(%.$O):N: %.$O + +%.$O: $HFILES # don't combine with following %.$O rules + +%.$O: %.c + $CC $CFLAGS $stem.c + +%.$O: %.s + $AS $ASFLAGS $stem.S + +y.tab.h y.tab.c: $YFILES + $YACC $YFLAGS $prereq + +clean-std:V: + rm -f *.$O y.tmp.* + rm -f y.tab.? y.output y.error *.pdb *.pch + +nuke-std:V: clean-std + rm -f y.tab.? y.output y.error *.pdb *.pch + rm -f $LIBRARY + +#nuke-std:V: clean-std $LIBDIR/fake.lib +# rm -f y.tab.? y.output y.error *.pdb *.pch +# cp $LIBDIR/fake.lib $LIBRARY +# +#$LIBDIR/fake.lib: +# echo 'void axzzzzzzz(void) { return; }' > fooxx.c +# $CC $CFLAGS fooxx.c +# $AR $ARFLAGS -out:$target fooxx.obj +# rm -f fooxx.* |
