[Trilinos-Users] Linking to Trilinos libraries

James M Willenbring jmwille at sandia.gov
Mon Nov 8 08:13:26 MST 2004


Skipped content of type multipart/alternative-------------- next part --------------
HEADER    = ./
#
# Include Trilinos header that defines pertinent compilation information
#
#include /location/SERIAL_INTEL/include/trilinos_make_macros.mak
#include /location/SERIAL_GNU/include/trilinos_make_macros.mak
include /location/LAM/include/trilinos_make_macros.mak
#
# Linear algebra object libraries
#
OLIBS = $(LAPACK_LIBS) $(BLAS_LIBS)
#
# Compilation rules
#
.c.o:
	$(CC) $(CFLAGS) -c $(DEFS) $<

.cpp.o:
	$(CXX) $(CPPFLAGS) -c $(DEFS) -I$(prefix)/include $<

all : RBGen.x

RBGen.x : RBGen.o RBGenParams.o BurkardtFileIOHandler.o netCDFFileIOHandler.o
	$(CXX) $(CXXFLAGS) -o $@ $^ -L$(prefix)/lib -lnetcdf -lepetra -lteuchos $(OLIBS) $(FLIBS)

example.x : example.o
	$(CXX) $(CXXFLAGS) -o $@ $^ -L$(prefix)/lib -lnetcdf -lepetra -lteuchos $(OLIBS) $(FLIBS)

RBGenParams.o : RBGenParams.cpp 

BurkardtFileIOHandler.o : BurkardtFileIOHandler.cpp

netCDFFileIOHandler.o : netCDFFileIOHandler.cpp

example.o : example.cpp

clean: 
	/bin/rm -f *.o core

cleanall:
	/bin/rm -f *.o *.x core


More information about the Trilinos-Users mailing list