baseo:
cd $D/base ; $(MAKE) $(MAKEOPTIONS) libo
-lacg:
+lacg: baseg contrib
cd $D/lac ; $(MAKE) $(MAKEOPTIONS) libg
-laco:
+laco: baseo contrib
cd $D/lac ; $(MAKE) $(MAKEOPTIONS) libo
-1dg:
+1dg: baseg lacg
cd $D/deal.II ; $(MAKE) $(MAKEOPTIONS) 1dg
-2dg:
+2dg: baseg lacg
cd $D/deal.II ; $(MAKE) $(MAKEOPTIONS) 2dg
-3dg:
+3dg: baseg lacg
cd $D/deal.II ; $(MAKE) $(MAKEOPTIONS) 3dg
-1do:
+1do:baseo laco
cd $D/deal.II ; $(MAKE) $(MAKEOPTIONS) 1d
-2do:
+2do:baseo laco
cd $D/deal.II ; $(MAKE) $(MAKEOPTIONS) 2d
-3do:
+3do: baseo laco
cd $D/deal.II ; $(MAKE) $(MAKEOPTIONS) 3d
deps:
$(LIBDIR)/libdeal_II_1d.g.so: $(go-files-1d)
@echo "=====deal.II====1d====debug======$(MT)== Linking library: $(@F)"
- @$(SHLIBLD) $(LDFLAGS) -shared -o $@ $(go-files-1d)
+ @$(SHLIBLD) $(LDFLAGS) -shared -o $@ $(go-files-1d) $(lib-lac.g) $(lib-base.g)
$(LIBDIR)/libdeal_II_1d.so: $(o-files-1d)
@echo "=====deal.II====1d====optimized==$(MT)== Linking library: $(@F)"
- @$(SHLIBLD) $(LDFLAGS) -shared -o $@ $(o-files-1d)
+ @$(SHLIBLD) $(LDFLAGS) -shared -o $@ $(o-files-1d) $(lib-lac.o) $(lib-base.o)
$(LIBDIR)/libdeal_II_2d.g.so: $(go-files-2d)
@echo "=====deal.II====2d====debug======$(MT)== Linking library: $(@F)"
- @$(SHLIBLD) $(LDFLAGS) -shared -o $@ $(go-files-2d)
+ @$(SHLIBLD) $(LDFLAGS) -shared -o $@ $(go-files-2d) $(lib-lac.g) $(lib-base.g)
$(LIBDIR)/libdeal_II_2d.so: $(o-files-2d)
@echo "=====deal.II====2d====optimized==$(MT)== Linking library: $(@F)"
- @$(SHLIBLD) $(LDFLAGS) -shared -o $@ $(o-files-2d)
+ @$(SHLIBLD) $(LDFLAGS) -shared -o $@ $(o-files-2d) $(lib-lac.o) $(lib-base.o)
$(LIBDIR)/libdeal_II_3d.g.so: $(go-files-3d)
@echo "=====deal.II====3d====debug======$(MT)== Linking library: $(@F)"
- @$(SHLIBLD) $(LDFLAGS) -shared -o $@ $(go-files-3d)
+ @$(SHLIBLD) $(LDFLAGS) -shared -o $@ $(go-files-3d) $(lib-lac.g) $(lib-base.g)
$(LIBDIR)/libdeal_II_3d.so: $(o-files-3d)
@echo "=====deal.II====3d====optimized==$(MT)== Linking library: $(@F)"
- @$(SHLIBLD) $(LDFLAGS) -shared -o $@ $(o-files-3d)
+ @$(SHLIBLD) $(LDFLAGS) -shared -o $@ $(o-files-3d) $(lib-lac.o) $(lib-base.o)
libo: $(LIBDIR)/liblac.a
endif
+# if we use HSL, then we need to link against libhsl.so. if we don't, then
+# don't set this variable
+ifeq ($(USE_CONTRIB_HSL),yes)
+ LIBHSL=$(lib-contrib-hsl)
+else
+ LIBHSL=
+endif
+
$(LIBDIR)/liblac.a: $(o-files)
@echo "=====lac==============optimized==$(MT)== Linking library: $(@F)"
@ar ru $@ $(o-files)
$(LIBDIR)/liblac.so: $(o-files)
@echo "=====lac==============optimized==$(MT)== Linking library: $(@F)"
- @$(SHLIBLD) $(LDFLAGS) -shared -o $@ $(o-files)
+ @$(SHLIBLD) $(LDFLAGS) -shared -o $@ $(o-files) $(lib-base.o) $(LIBHSL)
$(LIBDIR)/liblac.g.so: $(go-files)
@echo "=====lac==============debug======$(MT)== Linking library: $(@F)"
- @$(SHLIBLD) $(LDFLAGS) -shared -o $@ $(go-files)
+ @$(SHLIBLD) $(LDFLAGS) -shared -o $@ $(go-files) $(lib-base.g) $(LIBHSL)