annotate src/Makefile.in @ 80:16ccfaf1476a

The function DEFINE_OCTAVE_ALLOCATOR and DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA are now implemented in the header file. * Makefile.in: the link between different .o file is no longer needed. * *.h: now implement the method described above. * fem_init_env.cc: include the *.h and use the function defined here instead of linking them at compile time
author gedeone-octave <marcovass89@hotmail.it>
date Sat, 03 Aug 2013 14:37:09 +0200
parents 4868e535fc8a
children 66e4aa87c9a1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
e74ff416fd54 File for the configuration and compilation of the pkg
gedeone-octave <marco.vassallo@outlook.com>
parents:
diff changeset
1 MKOCTFILE ?= mkoctfile
e74ff416fd54 File for the configuration and compilation of the pkg
gedeone-octave <marco.vassallo@outlook.com>
parents:
diff changeset
2
42
741a7999f590 New functions used to get the rhs and lhs of the variational problem.
gedeone-octave <marco.vassallo@outlook.com>
parents: 33
diff changeset
3 OCTFILES=fem_init_env.oct\
741a7999f590 New functions used to get the rhs and lhs of the variational problem.
gedeone-octave <marco.vassallo@outlook.com>
parents: 33
diff changeset
4 fem_init_mesh.oct \
741a7999f590 New functions used to get the rhs and lhs of the variational problem.
gedeone-octave <marco.vassallo@outlook.com>
parents: 33
diff changeset
5 fem_get_mesh.oct \
80
16ccfaf1476a The function DEFINE_OCTAVE_ALLOCATOR and DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA
gedeone-octave <marcovass89@hotmail.it>
parents: 56
diff changeset
6 DirichletBC.oct \
16ccfaf1476a The function DEFINE_OCTAVE_ALLOCATOR and DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA
gedeone-octave <marcovass89@hotmail.it>
parents: 56
diff changeset
7 Expression.oct \
16ccfaf1476a The function DEFINE_OCTAVE_ALLOCATOR and DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA
gedeone-octave <marcovass89@hotmail.it>
parents: 56
diff changeset
8 Function.oct \
47
fe29ca22b1ec Functions which plot and save a function object.
gedeone-octave <marco.vassallo@outlook.com>
parents: 42
diff changeset
9 fem_plot.oct \
fe29ca22b1ec Functions which plot and save a function object.
gedeone-octave <marco.vassallo@outlook.com>
parents: 42
diff changeset
10 fem_save.oct \
5
e74ff416fd54 File for the configuration and compilation of the pkg
gedeone-octave <marco.vassallo@outlook.com>
parents:
diff changeset
11
27
cb21a4ac2314 Compile also new class and functions available.
gedeone-octave <marco.vassallo@outlook.com>
parents: 15
diff changeset
12 LIBS += -ldolfin
cb21a4ac2314 Compile also new class and functions available.
gedeone-octave <marco.vassallo@outlook.com>
parents: 15
diff changeset
13
5
e74ff416fd54 File for the configuration and compilation of the pkg
gedeone-octave <marco.vassallo@outlook.com>
parents:
diff changeset
14 all: $(OCTFILES)
e74ff416fd54 File for the configuration and compilation of the pkg
gedeone-octave <marco.vassallo@outlook.com>
parents:
diff changeset
15
15
b760ffba8f63 DEFINE_OCTAVE_ALLOCATOR moved to fem_init_env.cc
gedeone-octave <marco.vassallo@outlook.com>
parents: 12
diff changeset
16 fem_init_env.oct: fem_init_env.o
b760ffba8f63 DEFINE_OCTAVE_ALLOCATOR moved to fem_init_env.cc
gedeone-octave <marco.vassallo@outlook.com>
parents: 12
diff changeset
17 $(MKOCTFILE) $(CPPFLAGS) -s fem_init_env.o -o $@ $(LDFLAGS) $(LIBS)
5
e74ff416fd54 File for the configuration and compilation of the pkg
gedeone-octave <marco.vassallo@outlook.com>
parents:
diff changeset
18
47
fe29ca22b1ec Functions which plot and save a function object.
gedeone-octave <marco.vassallo@outlook.com>
parents: 42
diff changeset
19 fem_init_env.o: fem_init_env.cc mesh.h functionspace.h boundarycondition.h function.h coefficient.h
15
b760ffba8f63 DEFINE_OCTAVE_ALLOCATOR moved to fem_init_env.cc
gedeone-octave <marco.vassallo@outlook.com>
parents: 12
diff changeset
20 $(MKOCTFILE) $(CPPFLAGS) -c fem_init_env.cc $(LDFLAGS) -o $@ -I.
5
e74ff416fd54 File for the configuration and compilation of the pkg
gedeone-octave <marco.vassallo@outlook.com>
parents:
diff changeset
21
80
16ccfaf1476a The function DEFINE_OCTAVE_ALLOCATOR and DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA
gedeone-octave <marcovass89@hotmail.it>
parents: 56
diff changeset
22 fem_init_mesh.oct: fem_init_mesh.o
16ccfaf1476a The function DEFINE_OCTAVE_ALLOCATOR and DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA
gedeone-octave <marcovass89@hotmail.it>
parents: 56
diff changeset
23 $(MKOCTFILE) $(CPPFLAGS) -s fem_init_mesh.o -o $@ $(LDFLAGS) $(LIBS)
12
b7c74c0bdabd New functions which get a (p,e,t) matrix from a mesh object
gedeone-octave <marco.vassallo@outlook.com>
parents: 5
diff changeset
24
80
16ccfaf1476a The function DEFINE_OCTAVE_ALLOCATOR and DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA
gedeone-octave <marcovass89@hotmail.it>
parents: 56
diff changeset
25 fem_init_mesh.o: fem_init_mesh.cc mesh.h
5
e74ff416fd54 File for the configuration and compilation of the pkg
gedeone-octave <marco.vassallo@outlook.com>
parents:
diff changeset
26 $(MKOCTFILE) $(CPPFLAGS) -c fem_init_mesh.cc $(LDFLAGS) -o $@ -I.
e74ff416fd54 File for the configuration and compilation of the pkg
gedeone-octave <marco.vassallo@outlook.com>
parents:
diff changeset
27
80
16ccfaf1476a The function DEFINE_OCTAVE_ALLOCATOR and DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA
gedeone-octave <marcovass89@hotmail.it>
parents: 56
diff changeset
28 fem_get_mesh.oct: fem_get_mesh.o
16ccfaf1476a The function DEFINE_OCTAVE_ALLOCATOR and DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA
gedeone-octave <marcovass89@hotmail.it>
parents: 56
diff changeset
29 $(MKOCTFILE) $(CPPFLAGS) -s fem_get_mesh.o -o $@ $(LDFLAGS) $(LIBS)
15
b760ffba8f63 DEFINE_OCTAVE_ALLOCATOR moved to fem_init_env.cc
gedeone-octave <marco.vassallo@outlook.com>
parents: 12
diff changeset
30
80
16ccfaf1476a The function DEFINE_OCTAVE_ALLOCATOR and DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA
gedeone-octave <marcovass89@hotmail.it>
parents: 56
diff changeset
31 fem_get_mesh.o: fem_get_mesh.cc
12
b7c74c0bdabd New functions which get a (p,e,t) matrix from a mesh object
gedeone-octave <marco.vassallo@outlook.com>
parents: 5
diff changeset
32 $(MKOCTFILE) $(CPPFLAGS) -c fem_get_mesh.cc $(LDFLAGS) -o $@ -I.
b7c74c0bdabd New functions which get a (p,e,t) matrix from a mesh object
gedeone-octave <marco.vassallo@outlook.com>
parents: 5
diff changeset
33
80
16ccfaf1476a The function DEFINE_OCTAVE_ALLOCATOR and DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA
gedeone-octave <marcovass89@hotmail.it>
parents: 56
diff changeset
34 DirichletBC.oct: DirichletBC.o
16ccfaf1476a The function DEFINE_OCTAVE_ALLOCATOR and DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA
gedeone-octave <marcovass89@hotmail.it>
parents: 56
diff changeset
35 $(MKOCTFILE) $(CPPFLAGS) -s DirichletBC.o -o $@ $(LDFLAGS) $(LIBS)
27
cb21a4ac2314 Compile also new class and functions available.
gedeone-octave <marco.vassallo@outlook.com>
parents: 15
diff changeset
36
80
16ccfaf1476a The function DEFINE_OCTAVE_ALLOCATOR and DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA
gedeone-octave <marcovass89@hotmail.it>
parents: 56
diff changeset
37 DirichletBC.o: DirichletBC.cc functionspace.h boundarycondition.h expression.h
16ccfaf1476a The function DEFINE_OCTAVE_ALLOCATOR and DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA
gedeone-octave <marcovass89@hotmail.it>
parents: 56
diff changeset
38 $(MKOCTFILE) $(CPPFLAGS) -c DirichletBC.cc $(LDFLAGS) -o $@ -I.
27
cb21a4ac2314 Compile also new class and functions available.
gedeone-octave <marco.vassallo@outlook.com>
parents: 15
diff changeset
39
80
16ccfaf1476a The function DEFINE_OCTAVE_ALLOCATOR and DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA
gedeone-octave <marcovass89@hotmail.it>
parents: 56
diff changeset
40 Expression.oct: Expression.o
16ccfaf1476a The function DEFINE_OCTAVE_ALLOCATOR and DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA
gedeone-octave <marcovass89@hotmail.it>
parents: 56
diff changeset
41 $(MKOCTFILE) $(CPPFLAGS) -s Expression.o -o $@ $(LDFLAGS) $(LIBS)
33
f992cee90bd6 Compile and register also the new clas expression.h
gedeone-octave <marco.vassallo@outlook.com>
parents: 27
diff changeset
42
80
16ccfaf1476a The function DEFINE_OCTAVE_ALLOCATOR and DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA
gedeone-octave <marcovass89@hotmail.it>
parents: 56
diff changeset
43 Expression.o: Expression.cc expression.h coefficient.h
16ccfaf1476a The function DEFINE_OCTAVE_ALLOCATOR and DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA
gedeone-octave <marcovass89@hotmail.it>
parents: 56
diff changeset
44 $(MKOCTFILE) $(CPPFLAGS) -c Expression.cc $(LDFLAGS) -o $@ -I.
33
f992cee90bd6 Compile and register also the new clas expression.h
gedeone-octave <marco.vassallo@outlook.com>
parents: 27
diff changeset
45
80
16ccfaf1476a The function DEFINE_OCTAVE_ALLOCATOR and DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA
gedeone-octave <marcovass89@hotmail.it>
parents: 56
diff changeset
46 Function.oct: Function.o
16ccfaf1476a The function DEFINE_OCTAVE_ALLOCATOR and DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA
gedeone-octave <marcovass89@hotmail.it>
parents: 56
diff changeset
47 $(MKOCTFILE) $(CPPFLAGS) -s Function.o -o $@ $(LDFLAGS) $(LIBS)
47
fe29ca22b1ec Functions which plot and save a function object.
gedeone-octave <marco.vassallo@outlook.com>
parents: 42
diff changeset
48
80
16ccfaf1476a The function DEFINE_OCTAVE_ALLOCATOR and DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA
gedeone-octave <marcovass89@hotmail.it>
parents: 56
diff changeset
49 Function.o: Function.cc function.h
16ccfaf1476a The function DEFINE_OCTAVE_ALLOCATOR and DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA
gedeone-octave <marcovass89@hotmail.it>
parents: 56
diff changeset
50 $(MKOCTFILE) $(CPPFLAGS) -c Function.cc $(LDFLAGS) -o $@ -I.
47
fe29ca22b1ec Functions which plot and save a function object.
gedeone-octave <marco.vassallo@outlook.com>
parents: 42
diff changeset
51
80
16ccfaf1476a The function DEFINE_OCTAVE_ALLOCATOR and DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA
gedeone-octave <marcovass89@hotmail.it>
parents: 56
diff changeset
52 fem_plot.oct: fem_plot.o
16ccfaf1476a The function DEFINE_OCTAVE_ALLOCATOR and DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA
gedeone-octave <marcovass89@hotmail.it>
parents: 56
diff changeset
53 $(MKOCTFILE) $(CPPFLAGS) -s fem_plot.o -o $@ $(LDFLAGS) $(LIBS)
47
fe29ca22b1ec Functions which plot and save a function object.
gedeone-octave <marco.vassallo@outlook.com>
parents: 42
diff changeset
54
fe29ca22b1ec Functions which plot and save a function object.
gedeone-octave <marco.vassallo@outlook.com>
parents: 42
diff changeset
55 fem_plot.o: fem_plot.cc
fe29ca22b1ec Functions which plot and save a function object.
gedeone-octave <marco.vassallo@outlook.com>
parents: 42
diff changeset
56 $(MKOCTFILE) $(CPPFLAGS) -c fem_plot.cc $(LDFLAGS) -o $@ -I.
fe29ca22b1ec Functions which plot and save a function object.
gedeone-octave <marco.vassallo@outlook.com>
parents: 42
diff changeset
57
80
16ccfaf1476a The function DEFINE_OCTAVE_ALLOCATOR and DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA
gedeone-octave <marcovass89@hotmail.it>
parents: 56
diff changeset
58 fem_save.oct: fem_save.o
16ccfaf1476a The function DEFINE_OCTAVE_ALLOCATOR and DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA
gedeone-octave <marcovass89@hotmail.it>
parents: 56
diff changeset
59 $(MKOCTFILE) $(CPPFLAGS) -s fem_save.o -o $@ $(LDFLAGS) $(LIBS)
47
fe29ca22b1ec Functions which plot and save a function object.
gedeone-octave <marco.vassallo@outlook.com>
parents: 42
diff changeset
60
fe29ca22b1ec Functions which plot and save a function object.
gedeone-octave <marco.vassallo@outlook.com>
parents: 42
diff changeset
61 fem_save.o: fem_save.cc
fe29ca22b1ec Functions which plot and save a function object.
gedeone-octave <marco.vassallo@outlook.com>
parents: 42
diff changeset
62 $(MKOCTFILE) $(CPPFLAGS) -c fem_save.cc $(LDFLAGS) -o $@ -I.
fe29ca22b1ec Functions which plot and save a function object.
gedeone-octave <marco.vassallo@outlook.com>
parents: 42
diff changeset
63
5
e74ff416fd54 File for the configuration and compilation of the pkg
gedeone-octave <marco.vassallo@outlook.com>
parents:
diff changeset
64 clean:
e74ff416fd54 File for the configuration and compilation of the pkg
gedeone-octave <marco.vassallo@outlook.com>
parents:
diff changeset
65 -rm -f *.o core octave-core *.oct *~ *.xml
e74ff416fd54 File for the configuration and compilation of the pkg
gedeone-octave <marco.vassallo@outlook.com>
parents:
diff changeset
66
15
b760ffba8f63 DEFINE_OCTAVE_ALLOCATOR moved to fem_init_env.cc
gedeone-octave <marco.vassallo@outlook.com>
parents: 12
diff changeset
67 cleanall:
47
fe29ca22b1ec Functions which plot and save a function object.
gedeone-octave <marco.vassallo@outlook.com>
parents: 42
diff changeset
68 -rm -f *.o core octave-core *.oct *~ *.xml *.status *.log \
56
4868e535fc8a Compile only functions which don't need file defined from the user.
gedeone-octave <marco.vassallo@outlook.com>
parents: 47
diff changeset
69 octave-workspace configure *.pvd *.vtu
15
b760ffba8f63 DEFINE_OCTAVE_ALLOCATOR moved to fem_init_env.cc
gedeone-octave <marco.vassallo@outlook.com>
parents: 12
diff changeset
70 -rm -r autom4te.cache
b760ffba8f63 DEFINE_OCTAVE_ALLOCATOR moved to fem_init_env.cc
gedeone-octave <marco.vassallo@outlook.com>
parents: 12
diff changeset
71 -rm -f Makefile
b760ffba8f63 DEFINE_OCTAVE_ALLOCATOR moved to fem_init_env.cc
gedeone-octave <marco.vassallo@outlook.com>
parents: 12
diff changeset
72
b760ffba8f63 DEFINE_OCTAVE_ALLOCATOR moved to fem_init_env.cc
gedeone-octave <marco.vassallo@outlook.com>
parents: 12
diff changeset
73