view src/Makefile.in @ 42:741a7999f590

New functions used to get the rhs and lhs of the variational problem. * fem_rhs.cc: take as input the functionspace, a list of coefficients (optional) a list of bc (optional) and return a sparse matrix * fem_lhs.cc: as above burt return a vector * Makefile.in: compile also fem_rhs.cc fem_lhs.cc
author gedeone-octave <marco.vassallo@outlook.com>
date Sat, 20 Jul 2013 23:49:23 +0200
parents f992cee90bd6
children fe29ca22b1ec
line wrap: on
line source

MKOCTFILE ?= mkoctfile

OCTFILES=fem_init_env.oct\
             fem_init_mesh.oct \
             fem_get_mesh.oct \
             fem_fs.oct \
             fem_bc.oct \
             fem_coeff.oct \
             fem_lhs.oct \
             fem_rhs.oct \

LIBS += -ldolfin

all: $(OCTFILES)

fem_init_env.oct: fem_init_env.o
	$(MKOCTFILE) $(CPPFLAGS) -s fem_init_env.o -o $@ $(LDFLAGS) $(LIBS)

fem_init_env.o:  fem_init_env.cc mesh.h functionspace.h boundarycondition.h
	$(MKOCTFILE) $(CPPFLAGS) -c fem_init_env.cc $(LDFLAGS) -o $@ -I.

fem_init_mesh.oct: mesh.o fem_init_mesh.o fem_init_env.o
	$(MKOCTFILE) $(CPPFLAGS) -s mesh.o fem_init_env.o fem_init_mesh.o -o $@ $(LDFLAGS) $(LIBS)

mesh.o: mesh.cc mesh.h
	$(MKOCTFILE) $(CPPFLAGS) -c mesh.cc $(LDFLAGS) -o $@ -I.

fem_init_mesh.o: fem_init_mesh.cc mesh.cc mesh.h
	$(MKOCTFILE) $(CPPFLAGS) -c fem_init_mesh.cc $(LDFLAGS) -o $@ -I.

fem_get_mesh.oct: mesh.o fem_get_mesh.o fem_init_env.o
	$(MKOCTFILE) $(CPPFLAGS) -s mesh.o fem_init_env.o fem_get_mesh.o -o $@ $(LDFLAGS) $(LIBS)

fem_get_mesh.o: fem_get_mesh.cc mesh.o
	$(MKOCTFILE) $(CPPFLAGS) -c fem_get_mesh.cc $(LDFLAGS) -o $@ -I.

fem_fs.oct: mesh.o fem_fs.o fem_init_env.o
	$(MKOCTFILE) $(CPPFLAGS) -s mesh.o fem_init_env.o fem_fs.o -o $@ $(LDFLAGS) $(LIBS)

fem_fs.o: fem_fs.cc functionspace.h Laplace.h
	$(MKOCTFILE) $(CPPFLAGS) -c fem_fs.cc $(LDFLAGS) -o $@ -I.

fem_bc.oct: fem_bc.o fem_init_env.o
	$(MKOCTFILE) $(CPPFLAGS) -s fem_init_env.o fem_bc.o -o $@ $(LDFLAGS) $(LIBS)

fem_bc.o: fem_bc.cc functionspace.h boundarycondition.h expression.h
	$(MKOCTFILE) $(CPPFLAGS) -c fem_bc.cc $(LDFLAGS) -o $@ -I.

fem_coeff.oct: fem_coeff.o fem_init_env.o
	$(MKOCTFILE) $(CPPFLAGS) -s fem_init_env.o fem_coeff.o -o $@ $(LDFLAGS) $(LIBS)

fem_coeff.o: fem_coeff.cc expression.h coefficient.h
	$(MKOCTFILE) $(CPPFLAGS) -c fem_coeff.cc $(LDFLAGS) -o $@ -I.

fem_lhs.oct: fem_lhs.o fem_init_env.o
	$(MKOCTFILE) $(CPPFLAGS) -s fem_init_env.o fem_lhs.o -o $@ $(LDFLAGS) $(LIBS)

fem_lhs.o: fem_lhs.cc expression.h Laplace.h
	$(MKOCTFILE) $(CPPFLAGS) -c fem_lhs.cc $(LDFLAGS) -o $@ -I.

fem_rhs.oct: fem_rhs.o fem_init_env.o
	$(MKOCTFILE) $(CPPFLAGS) -s fem_init_env.o fem_rhs.o -o $@ $(LDFLAGS) $(LIBS)

fem_rhs.o: fem_rhs.cc expression.h Laplace.h
	$(MKOCTFILE) $(CPPFLAGS) -c fem_rhs.cc $(LDFLAGS) -o $@ -I.

Laplace.h: Laplace.ufl
	ffc -l dolfin Laplace.ufl

clean:
	-rm -f *.o core octave-core *.oct *~ *.xml

cleanall:
	-rm -f *.o core octave-core *.oct *~ *.xml *.status *.log octave-workspace configure Laplace.h
	-rm -r autom4te.cache
	-rm -f Makefile