# Copyright (C) 2003, 2010 International Business Machines and others. # All Rights Reserved. # This file is distributed under the Eclipse Public License. # $Id: Makefile.in 1875 2010-12-28 23:32:54Z andreasw $ ########################################################################## # You can modify this example makefile to fit for your own program. # # Usually, you only need to change the five CHANGEME entries below. # ########################################################################## # CHANGEME: This should be the name of your executable EXE = IPOPT_test # CHANGEME: Here is the name of all object files corresponding to the source # code that you wrote in order to define the problem statement OBJS = IPOPT_test.o # CHANGEME: Additional libraries ADDLIBS = # CHANGEME: Additional flags for compilation (e.g., include flags) ADDINCFLAGS = ########################################################################## # Usually, you don't have to change anything below. Note that if you # # change certain compiler options, you might have to recompile Ipopt. # ########################################################################## # Fortran Compiler options FC = ifort # Fotran Compiler options FFLAGS = -O3 -ip -cm -w90 -w95 -openmp # additional Fortran Compiler options for linking FCLINKFLAGS = -Wl,--rpath -Wl,/home/simon/projects/IPOPT/CoinIpopt/build_pardiso/lib # Include directories (we use the CYGPATH_W variables to allow compilation with Windows compilers) INCL = `PKG_CONFIG_PATH=/home/simon/projects/IPOPT/CoinIpopt/build_pardiso/lib/pkgconfig:/home/simon/projects/IPOPT/CoinIpopt/build_pardiso/share/pkgconfig: /usr/bin/pkg-config --cflags ipopt` $(ADDINCFLAGS) #INCL = -I`$(CYGPATH_W) /home/simon/projects/IPOPT/CoinIpopt/build_pardiso/include/coin` $(ADDINCFLAGS) # Linker flags LIBS = `PKG_CONFIG_PATH=/home/simon/projects/IPOPT/CoinIpopt/build_pardiso/lib/pkgconfig:/home/simon/projects/IPOPT/CoinIpopt/build_pardiso/share/pkgconfig: /usr/bin/pkg-config --libs ipopt` -lstdc++ #LIBS = -L/home/simon/projects/IPOPT/CoinIpopt/build_pardiso/lib -lipopt -qsmp=omp /home/simon/projects/pardiso/intel_64/libpardiso412-INTEL120-X86-64.so --lpardiso412-INTEL120-X86-64 -llapack -lblas -lm -ldl -lstdc++ # The following is necessary under cygwin, if native compilers are used CYGPATH_W = echo all: $(EXE) .SUFFIXES: .f90 .o .obj $(EXE): $(OBJS) bla=;\ for file in $(OBJS); do bla="$$bla `$(CYGPATH_W) $$file`"; done; \ $(FC) $(FCLINKFLAGS) $(FFLAGS) -o $@ $$bla $(ADDLIBS) $(LIBS) clean: rm -f $(EXE) $(OBJS) IPOPT.OUT .f90.o: $(FC) $(FFLAGS) $(INCL) -c -o $@ $< .f90.obj: $(FC) $(FFLAGS) $(INCL) -c -o $@ `$(CYGPATH_W) '$<'`