Make-rules 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. SUFFIXES = .java .class .scm .el .lisp
  2. javadir=$(datadir)/java/$(subdir)
  3. CLASSPATH = $(JAVAROOT)$(CLASSPATH_SEPARATOR)$(srcdir)@filesep@$(JAVAROOT)$(CLASSPATH_SEPARATOR)@conf_classpath@$$CLASSPATH
  4. CLASSPATH_ENV = CLASSPATH="$(CLASSPATH)"
  5. JAVAROOT = $(top_builddir)
  6. JAR = fastjar
  7. TO_TOPDIR = $(top_builddir)
  8. java_Java= $(java_BUILT) $(java_sources)
  9. DISTFILES = $(DIST_COMMON) $(java_sources) $(java_SCM) $(TEXINFOS) $(EXTRA_DIST)
  10. CLEANFILES = $(java_BUILT) *.class *.stamp *.jar $(EXTRA_CLEAN)
  11. java-classes.stamp: $(java_Java)
  12. $(JAVAC) -d $(JAVAROOT) -classpath "$(CLASSPATH)" $(JAVACFLAGS) $?
  13. echo timestamp > java-classes.stamp
  14. echo timestamp > $(TO_TOPDIR)/kawa-jar.stamp
  15. KAWA_COMPILER = $(JAVA) -classpath "$(CLASSPATH)" kawa.repl -d $(top_builddir) \
  16. -P `echo $(PACKAGE_FNAME)|sed -e s/-/./g`.
  17. scm-classes.stamp: $(java_SCM)
  18. $(KAWA_COMPILER) --module-static-run $(SCM_COMPILE_FLAGS) -C $?
  19. echo timestamp > scm-classes.stamp
  20. echo timestamp > $(TO_TOPDIR)/kawa-jar.stamp
  21. clisp-classes.stamp: $(java_CLISP)
  22. $(KAWA_COMPILER) --clisp -C $?
  23. echo timestamp > clisp-classes.stamp
  24. echo timestamp > $(TO_TOPDIR)/kawa-jar.stamp
  25. elisp-classes.stamp: $(java_ELISP)
  26. $(KAWA_COMPILER) --elisp -C $?
  27. echo timestamp > elisp-classes.stamp
  28. echo timestamp > $(TO_TOPDIR)/kawa-jar.stamp