1
#####################################################################
2
## Example Makefile for a user application that does not use autoconf
3
## - Uses lapack concrete instations for group and vector
4
## - Must use gnu-make (gmake) if the "shell" command is invoked
5
#####################################################################
8
## Set the Trilinos install directory
10
TRILINOS_INSTALL_DIR = /home/rppawlo/trilinos_local
13
## Include any direct Trilinos library dependencies - in this case only nox
15
include $(TRILINOS_INSTALL_DIR)/include/Makefile.export.nox.macros
16
include $(TRILINOS_INSTALL_DIR)/include/Makefile.export.nox
19
## Use one of the following lines (2nd line is for non-gnumake platforms)
21
COMPILE_FLAGS = $(shell perl $(TRILINOS_INSTALL_DIR)/include/strip_dup_incl_paths.pl $(NOX_CXXFLAGS) $(NOX_DEFS) $(NOX_CPPFLAGS) $(NOX_INCLUDES))
23
#COMPILE_FLAGS = $(NOX_CXXFLAGS) $(NOX_DEFS) $(NOX_CPPFLAGS) $(NOX_INCLUDES)
26
## Use one of the following lines (2nd line is for non-gnumake platforms)
28
LINK_FLAGS = $(shell perl $(TRILINOS_INSTALL_DIR)/include/strip_dup_libs.pl $(NOX_LIBS))
30
#LINK_FLAGS = $(NOX_LIBS)
33
## Build your application code
36
Rosenbrock.exe: Rosenbrock.o
37
$(NOX_CXXLD) $(NOX_CXXFLAGS) -o Rosenbrock.exe Rosenbrock.o $(LINK_FLAGS)
40
$(NOX_CXX) $(COMPILE_FLAGS) -c Rosenbrock.C
43
rm -f *.o Rosenbrock.exe *~