#*=====================================================================*/ #* serrano/prgm/project/bigloo/examples/Jclass/Makefile */ #* ------------------------------------------------------------- */ #* Author : Manuel Serrano */ #* Creation : Tue Jan 30 15:19:19 1996 */ #* Last change : Mon Oct 30 17:25:20 2006 (serrano) */ #* Copyright : 1996-2006 Manuel Serrano, see LICENSE file */ #* ------------------------------------------------------------- */ #* The makefile to build socket */ #*=====================================================================*/ #*---------------------------------------------------------------------*/ #* The default configuration */ #*---------------------------------------------------------------------*/ include ../../Makefile.config #*---------------------------------------------------------------------*/ #* flags */ #*---------------------------------------------------------------------*/ BIGLOO = $(BOOTBINDIR)/bigloo BGLOPTFLAGS = -O +rm -shapem -jvm-purify BFLAGS = $(BGLOPTFLAGS) #*---------------------------------------------------------------------*/ #* Objects and sources */ #*---------------------------------------------------------------------*/ #*--- scm -------------------------------------------------------------*/ SCM_FILE = main SCM_OBJ = $(SCM_FILE:%=%.class) SCM_SRC = $(SCM_OBJ:%.class=%.scm) #*--- scm -------------------------------------------------------------*/ JVM_FILE = Point Intf JVM_OBJ = $(JVM_FILE:%=%.class) JVM_SRC = $(JVM_OBJ:%.class=%.java) #*---------------------------------------------------------------------*/ #* All objects and sources */ #*---------------------------------------------------------------------*/ OBJ = $(SCM_OBJ) $(JVM_OBJ) SRC = $(JVM_SRC) $(SCM_SRC) POPULATION = $(SRC:%=examples/Jclass/%) \ examples/Jclass/Makefile \ examples/Jclass/README #*---------------------------------------------------------------------*/ #* the goals. */ #*---------------------------------------------------------------------*/ java-test: $(OBJ) $(BIGLOO) -jvm $(OBJ) -o java-test test: java-test ./java-test pop: @ echo $(POPULATION) #*---------------------------------------------------------------------*/ #* Cleaning */ #*---------------------------------------------------------------------*/ .PHONY: clean clean: @ find . \( -name '*[~%]' \ -o -name '.??*[~%]' \ -o -name '#*#' \ -o -name '?*#' \ -o -name \*core \) \ -type f -exec $(RM) {} \; @- $(RM) -f $(OBJ) @- $(RM) -f java-test *.jas *.jast *.jar #*---------------------------------------------------------------------*/ #* Suffixes */ #*---------------------------------------------------------------------*/ .SUFFIXES: .SUFFIXES: .scm .java .class #*---------------------------------------------------------------------*/ #* .java.class */ #*---------------------------------------------------------------------*/ .java.class: @ echo $*.java: @ (export CLASSPATH=.:$(BOOTLIBDIR)/bigloo_s.zip:$$CLASSPATH; \ $(JAVAC) $(JCFLAGS) $*.java) #*---------------------------------------------------------------------*/ #* .scm.class */ #*---------------------------------------------------------------------*/ .scm.class: $(BIGLOO) $(EFLAGS) -jvm -c $(BFLAGS) $*.scm -o $*.class