1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
# Copyright (C) 2007, 2011 International Business Machines and others.
# All Rights Reserved.
# This file is distributed under the Eclipse Public License.
#
# Author: Andreas Waechter 2007-10-08 IBM
# NOTE: We assume here that there are no spaces in paths.
# If you are on Windows and have Java in a path like C:\Program Files\Java,
# try setting JAVA_HOME to the DOS equivalent C:\Progra~1 or similar.
# Java compiler
JAVAC = @JAVAC@
# Java runtime
JAVA = @JAVA@
# Ipopt JAR
prefix = @prefix@
exec_prefix = @exec_prefix@
IPOPTJAR = @libdir@/org.coinor.ipopt.jar
# Directory to the sources for the (example) problem definition files
SRCDIR = @srcdir@
VPATH = @srcdir@
##########################################################################
.SUFFIXES: .java .class
.java.class:
$(JAVAC) -cp $(IPOPTJAR):. `test -f '$<' || echo '$(SRCDIR)/'`$< -d $(PWD)
all : SolveProblem.class
SolveProblem.class : LuksanVlcek1.class
LuksanVlcek1.class : Scalable.class
test : SolveProblem.class
$(JAVA) -cp $(IPOPTJAR):. -Djava.library.path=@libdir@ SolveProblem LukVlI1 100
clean :
rm -rf *.class
|