# Generated automatically from Makefile.in by configure.
.SUFFIXES:.cc .lo .exe


PREFIX=/home/elflord/rumba
#	We only do this because rumba isn't installed yet. Usually use 
#	$(RUMBA_LIBS) instead.
EXTRA_LIBS=../librumba/librumba.la -L$(PREFIX)/lib -lnetcdf 
SOURCES=test_parse.cc  test_rumba_system.cc test_find_modules.cc test_dl_init.cc test_parse_csv.cc
LIBOBJS=test_parse.lo test_rumba_system.lo test_find_modules.lo test_dl_init.lo test_parse_csv.lo
HEADERS=
SUPPORT_HEADERS=
STATIC=
CXX=g++
CXXFLAGS=-O2 -fno-check-new
#----------------------------------------------------
# if you compile with no implicit templates, then 
# put instantiations in specialisations.o and set 
# the following two vars.
NO_IMPLICIT_TEMPLATES=-fno-implicit-templates
SPEC_OBJ=specialisations.lo
#----------------------------------------------------
RUMBA=/usr/local/rumba
RUMBA_INCLUDES=-I/usr/local/rumba/include
RUMBA_LIBS=-L/usr/local/rumba/lib -lrumba -lnetcdf
RUMBA_DEMOS=/usr/local/rumba/bin

SHELL=/bin/sh
top_builddir=/home/elflord/rumba/rumba-manifold
LIBTOOL=$(SHELL) $(top_builddir)/libtool


# use this if you dont want to include rumba headers
ALL_INCLUDES=-I.. -I. -I../base -I../manifold -I../manifoldfile \
	-I ../manifoldfile/filetypes -I../arghandler  -I$(PREFIX)/include

# use this if you want to include rumba headers
# ALL_INCLUDES=-I.  $(RUMBA_INCLUDES)

# use this if you don't link to rumba.
ALL_LIBS= $(EXTRA_LIBS) -ldl
# use this if you need to link against rumba:
# ALL_LIBS= $(RUMBA_LIBS) $(EXTRA_LIBS)

PROGS=test_parse.exe test_rumba_system.exe test_find_modules.exe test_dl_init.exe test_parse_csv.exe



INSTALL=/usr/bin/install -c

all: $(SPEC_OBJ) link 

.cc.lo:
	$(LIBTOOL) $(CXX) $(CXXFLAGS) $(NO_IMPLICIT_TEMPLATES) $(ALL_INCLUDES) -c $<

specialisations.lo:
	if test -f specialisations.cc; then \
		$(LIBTOOL) $(CXX) $(CXXFLAGS) $(ALL_INCLUDES) -c specialisations.cc; \
	fi


build: $(LIBOBJS)


link: $(PROGS)

.lo.exe:
	$(LIBTOOL) $(CXX)  -export-dynamic -o $@ $<  $(SPEC_OBJ) $(ALL_LIBS)

clean:
	rm -rf *.o *.lo $(PROGS) .libs

install: link
	test -d $(PREFIX)/demos || mkdir -p $(PREFIX)/demos
	$(LIBTOOL) $(INSTALL) -m 755 $(PROGS)  $(PREFIX)/demos
