mkjava 872 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. BINTARG=${TARG:%=$DISBIN/%}
  2. MODDIR=$ROOT/module
  3. SYS_MODULE=${SYSMODULES:%=$MODDIR/%}
  4. JROOT=$ROOT/java
  5. LIMBOINCL=-I$MODDIR -I$JROOT/module
  6. LIMBOFLAGS=-C
  7. JPATH=$JROOT/pkg
  8. CLASSPATH= # make sure it's not set
  9. all:V: $TARG
  10. install:V: $BINTARG
  11. installall:V: install
  12. clean:V: clean-std
  13. nuke:V: nuke-std
  14. $DISBIN/%.dis: %.dis
  15. rm -f $DISBIN/$stem.dis && cp $stem.dis $DISBIN/$stem.dis
  16. %.dis: $MODULES $SYS_MODULE
  17. %.dis: %.b
  18. limbo $LIMBOFLAGS $LIMBOINCL -gw $stem.b
  19. #%.s: %.b
  20. # limbo $LIMBOFLAGS $LIMBOINCL -w -G -S $stem.b
  21. %.class: %.java
  22. $JAVAC -classpath $JPATH $stem.java
  23. %.dis: %.class
  24. j2d $stem.class
  25. %.install:V: $DISBIN/%.dis
  26. %.installall:V: $DISBIN/%.dis
  27. clean-std:V:
  28. rm -f *.dis *.sbl *.s *.class
  29. nuke-std:V: clean-std nuke-std-$SHELLTYPE
  30. nuke-std-rc nuke-std-nt:V:
  31. rm -f $BINTARG
  32. nuke-std-sh:V:
  33. for j in $TARG
  34. do
  35. rm -f $DISBIN/$j
  36. done