1
0

mksyslib-nt 975 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #
  2. # Rules for updating a library with Nt rcsh
  3. #
  4. LIBDIR=$ROOT/$OBJDIR/lib
  5. LIBRARY=$LIBDIR/$LIB
  6. LIBOBJ=${OFILES:%=$LIBRARY(%)}
  7. default:V: all
  8. all install:V: $LIBRARY
  9. installall:V:
  10. for (objtype in $CPUS)
  11. mk $MKFLAGS install
  12. clean:V: clean-std
  13. nuke:V: nuke-std
  14. LIB1=${LIBRARY:%=$ARPREFIX%}
  15. $LIBRARY: $LIBOBJ $OFILES
  16. $AR $ARFLAGS $LIB1 $OFILES
  17. $LIBRARY(%.$O):N: %.$O
  18. %.$O: $HFILES # don't combine with following %.$O rules
  19. %.$O: %.c
  20. $CC $CFLAGS $stem.c
  21. %.$O: %.s
  22. $AS $ASFLAGS $stem.s
  23. y.tab.h y.tab.c: $YFILES
  24. $YACC $YFLAGS $prereq
  25. clean-std:V:
  26. rm -f *.$O y.tmp.*
  27. rm -f y.tab.? y.output y.error *.pdb *.pch
  28. nuke-std:V: clean-std
  29. rm -f y.tab.? y.output y.error *.pdb *.pch
  30. rm -f $LIBRARY
  31. #nuke-std:V: clean-std $LIBDIR/fake.lib
  32. # rm -f y.tab.? y.output y.error *.pdb *.pch
  33. # cp $LIBDIR/fake.lib $LIBRARY
  34. #
  35. #$LIBDIR/fake.lib:
  36. # echo 'void axzzzzzzz(void) { return; }' > fooxx.c
  37. # $CC $CFLAGS fooxx.c
  38. # $AR $ARFLAGS -out:$target fooxx.obj
  39. # rm -f fooxx.*