# Template makefile from $PTII/ptolemy/cg/kernel/generic/program/procedural/java/modular/makefile.in # $Id: makefile.in 67965 2013-12-09 22:39:03Z cxh $ # The CodeGenerator class subsitutes strings like "@modelName@" with # the value of parameters and writes the results in the directory # where the source code is created. # # To compile using this makefile after substitution, run: # make -f @modelName@.mk PTCGLIBRARIES = @PTCGLibraries@ CLASSPATHSEPARATOR=@CLASSPATHSEPARATOR@ CLASSPATH = $(PTCGLIBRARIES)$(CLASSPATHSEPARATOR).. # If the user would like to add compile time options, run with # make -f @modelName@.mk USER_CC_FLAGS=xxx USER_JAVAC_FLAGS = @modelName@.class: @modelName@.java -@PTJavaCompiler@ -classpath "$(CLASSPATH)" $(WARNING_CC_FLAGS) $(JAVAC_FLAGS) $(USER_JAVAC_FLAGS) @modelName@.java run: @modelName@.class "java" -classpath "$(CLASSPATH)" @modelName@