Skip to content

Commit

Permalink
implement install-src target in the src/ module
Browse files Browse the repository at this point in the history
  • Loading branch information
Expander authored and Expander committed Apr 16, 2014
1 parent b0d5c31 commit 706d087
Showing 1 changed file with 78 additions and 0 deletions.
78 changes: 78 additions & 0 deletions src/module.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
DIR := src
MODNAME := flexisusy

LIBFLEXI_MK := \
$(DIR)/module.mk

LIBFLEXI_SRC := \
$(DIR)/betafunction.cpp \
$(DIR)/build_info.cpp \
Expand All @@ -23,12 +26,68 @@ LIBFLEXI_SRC := \
$(DIR)/utils.cpp \
$(DIR)/wrappers.cpp

LIBFLEXI_HDR := \
$(DIR)/betafunction.hpp \
$(DIR)/build_info.hpp \
$(DIR)/command_line_options.hpp \
$(DIR)/compound_constraint.hpp \
$(DIR)/constraint.hpp \
$(DIR)/consts.hpp \
$(DIR)/convergence_tester.hpp \
$(DIR)/coupling_monitor.hpp \
$(DIR)/def.h \
$(DIR)/dilog.h \
$(DIR)/error.hpp \
$(DIR)/ew_input.hpp \
$(DIR)/gsl_utils.hpp \
$(DIR)/gut_scale_calculator.hpp \
$(DIR)/initial_guesser.hpp \
$(DIR)/linalg2.hpp \
$(DIR)/linalg.h \
$(DIR)/logger.hpp \
$(DIR)/lowe.h \
$(DIR)/matching.hpp \
$(DIR)/mathdefs.hpp \
$(DIR)/minimizer.hpp \
$(DIR)/mssm_twoloophiggs.h \
$(DIR)/mycomplex.h \
$(DIR)/nmssm2loop.h \
$(DIR)/nmssm_twoloophiggs.h \
$(DIR)/numerics.h \
$(DIR)/numerics.hpp \
$(DIR)/problems.hpp \
$(DIR)/rge.h \
$(DIR)/rg_flow.hpp \
$(DIR)/rk.hpp \
$(DIR)/root_finder.hpp \
$(DIR)/scan.hpp \
$(DIR)/sfermions.hpp \
$(DIR)/slha_io.hpp \
$(DIR)/small_matrices.hpp \
$(DIR)/spectrum_generator_settings.hpp \
$(DIR)/utils.h \
$(DIR)/wrappers.hpp \
$(DIR)/xpr-base.h \
$(DIR)/xpr-matrix.h \
$(DIR)/xpr-vector.h

ifneq ($(findstring two_scale,$(ALGORITHMS)),)
LIBFLEXI_SRC += \
$(DIR)/two_scale_composite_convergence_tester.cpp \
$(DIR)/two_scale_convergence_tester.cpp \
$(DIR)/two_scale_running_precision.cpp \
$(DIR)/two_scale_solver.cpp

LIBFLEXI_HDR += \
$(DIR)/two_scale_composite_convergence_tester.hpp \
$(DIR)/two_scale_constraint.hpp \
$(DIR)/two_scale_convergence_tester.hpp \
$(DIR)/two_scale_convergence_tester_skeleton.hpp \
$(DIR)/two_scale_initial_guesser.hpp \
$(DIR)/two_scale_matching.hpp \
$(DIR)/two_scale_model.hpp \
$(DIR)/two_scale_running_precision.hpp \
$(DIR)/two_scale_solver.hpp
endif

ifneq ($(findstring lattice,$(ALGORITHMS)),)
Expand All @@ -39,6 +98,17 @@ LIBFLEXI_SRC += \
$(DIR)/lattice_solver.cpp \
$(DIR)/SM.cpp \
$(DIR)/fortran_utils.f

LIBFLEXI_HDR += \
$(DIR)/lattice_compound_constraint.hpp \
$(DIR)/lattice_constraint.hpp \
$(DIR)/lattice_convergence_tester.hpp \
$(DIR)/lattice_foreign_constraint.hpp \
$(DIR)/lattice_initial_guesser.hpp \
$(DIR)/lattice_model.hpp \
$(DIR)/lattice_numerical_constraint.hpp \
$(DIR)/lattice_solver.hpp \
$(DIR)/SM.hpp
endif

LIBFLEXI_OBJ := \
Expand All @@ -50,10 +120,18 @@ LIBFLEXI_DEP := \

LIBFLEXI := $(DIR)/lib$(MODNAME)$(LIBEXT)

LIBFLEXI_INSTALL_DIR := $(INSTALL_DIR)/$(DIR)

.PHONY: all-$(MODNAME) clean-$(MODNAME) distclean-$(MODNAME)

all-$(MODNAME): $(LIBFLEXI)

install-src::
mkdir -p $(LIBFLEXI_INSTALL_DIR)
cp $(LIBFLEXI_SRC) $(LIBFLEXI_INSTALL_DIR)
cp $(LIBFLEXI_HDR) $(LIBFLEXI_INSTALL_DIR)
cp $(LIBFLEXI_MK) $(LIBFLEXI_INSTALL_DIR)

clean-$(MODNAME)-dep:
-rm -f $(LIBFLEXI_DEP)

Expand Down

0 comments on commit 706d087

Please sign in to comment.