Commit 6951ea4c authored by Kevin Dugan's avatar Kevin Dugan
Browse files

Adding nek library local to example

parent a8dad671
......@@ -61,14 +61,24 @@ jl_cgs_obj := $(addprefix $(nek_objdir)/, $(patsubst %, $(jl_prefix)%.$(obj-
nek_clib_obj := $(nek_core_c_obj) $(jl_core_obj) $(jl_interp_obj) $(jl_cgs_obj)
giraffe_nek_LIB := $(GIRAFFE_EXAMPLE)/lib/libnek-$(CASENAME)-$(METHOD).la
# == MOOSE app flags and objects ==================================================================
ADDITIONAL_CPPFLAGS := $(ADDITIONAL_CPPFLAGS) $(libmesh_CPPFLAGS) @DEFS@ # Used by pattern rules in moose/framework/build.mk
ADDITIONAL_INCLUDES := $(ADDITIONAL_INCLUDES) $(nek_INCLUDES) # Used by pattern rules in moose/framework/build.mk (through app_INCLUDES)
ADDITIONAL_LIBS := $(ADDITIONAL_LIBS) $(nek_LIBS) $(nek_FLIBS) # Used during linking in moose/framework/app.mk
ADDITIONAL_APP_OBJECTS := $(ADDITIONAL_APP_OBJECTS) $(nek_flib_obj) $(nek_clib_obj) # Added to dependencies in moose/framework/app.mk
ADDITIONAL_CPPFLAGS := $(ADDITIONAL_CPPFLAGS) $(libmesh_CPPFLAGS) @DEFS@ # Used by pattern rules in moose/framework/build.mk
ADDITIONAL_INCLUDES := $(ADDITIONAL_INCLUDES) $(nek_INCLUDES) # Used by pattern rules in moose/framework/build.mk (through app_INCLUDES)
ADDITIONAL_LIBS := $(ADDITIONAL_LIBS) -L$(GIRAFFE_EXAMPLE)/lib nek-$(CASENAME)-$(METHOD) # Used during linking in moose/framework/app.mk
# == Rules =========================================================================================
all:: $(giraffe_nek_LIB)
$(giraffe_nek_LIB): curr_objs := $(nek_flib_obj) $(nek_clib_obj)
$(giraffe_nek_LIB): $(nek_flib_obj) $(nek_clib_obj)
@echo "Linking Nek5000 Library "$@"..."
@$(libmesh_LIBTOOL) --tag=CXX $(LIBTOOLFLAGS) --mode=link --quiet \
$(libmesh_CXX) $(libmesh_CXXFLAGS) -o $@ $(curr_objs) $(libmesh_LIBS) $(libmesh_LDFLAGS) -rpath $(GIRAFFE_EXAMPLE)/lib $(nek_LDFLAGS)
@$(libmesh_LIBTOOL) --mode=install --quiet install -c $@ $(GIRAFFE_EXAMPLE)/lib
nek5000: $(nek_drive_obj) $(nek_flib_obj) $(nek_clib_obj)
@echo "Linking Executable "$@"..."
@$(libmesh_LIBTOOL) --tag=F77 $(LIBTOOLFLAGS) --mode=link --quiet \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment