source: stable/2.4/ADOL-C/examples/additional_examples/ipopt/LuksanVlcek1/Makefile

Last change on this file was 78, checked in by awalther, 9 years ago

new examples for the coupling of ADOL-C and Ipopt with exploitation of sparsity

File size: 2.0 KB
Line 
1# ----------------------------------------------------------------------------
2# ADOL-C -- Automatic Differentiation by Overloading in C++
3# File:     Makefile
4# Revision: $$
5# Contents: Makefile for class myADOLC_NPL to interface ADOL-C with Ipopt
6#
7# Copyright (c) Andrea Walther
8#   
9# This file is part of ADOL-C. This software is provided as open source.
10# Any use, reproduction, or distribution of the software constitutes
11# recipient's acceptance of the terms of the accompanying license file.
12#
13# This code is based on the corresponding makefile contained in the
14# Ipopt package with the author Andreas Waechter   
15#---------------------------------------------------------------------------
16
17##########################################################################
18#    You can modify this example makefile to fit for your own program.   #
19#    Usually, you only need to change the five CHANGE entries below.     #
20##########################################################################
21
22# CHANGEME: This should be the name of your executable
23EXE = cpp_example
24
25# CHANGEME: Here is the name of all object files corresponding to the source
26#           code that you wrote in order to define the problem statement
27OBJS =  cpp_example.o \
28        ADOL-C_NLP.o
29
30# Definitions for ADOL-C
31# CHANGE THIS TO YOUR ADOL-C BASE DIRECTORY
32ADPATH = $(HOME)/AD/ADOL-C/adolc_base_coin/include/adolc
33ADLIBDIR = $(HOME)/AD/ADOL-C/adolc_base_coin/lib
34
35# CHANGEME: Additional libraries
36ADDLIBS = -Wl,--rpath -Wl,$(ADLIBDIR) -L$(ADLIBDIR) -ladolc  $(HOME)/AD/ADOL-C/adolc_base_coin/lib/libColPack.a
37
38# CHANGEME: Additional flags for compilation (e.g., include flags)
39ADDINCFLAGS = -I$(ADPATH) 
40
41##########################################################################
42#  Usually, you don't have to change anything below.  Note that if you   #
43#  change certain compiler options, you might have to recompile Ipopt.   #
44##########################################################################
45
46
47
48HERE YOU SHOULD USE THE SETTING OF YOUR IPOPT INSTALLATION
49
50THIS SHOULD WORK WITH COPY AND PASTE
Note: See TracBrowser for help on using the repository browser.