Introduction
It offers various small makefile utilities to find compilers and external packages with suitable linking flags.
Examples
Example of usage in Makefile (assuming BOOST_DIR and LIMBO_DIR are exported as the environment variable to the path where Boost and limbo library are installed)
7 UNAME_S = $(shell uname -s)
8 ifeq ($(UNAME_S), Linux)
9 STATIC_LINK_FLAG = -Wl,-Bstatic
10 DYNAMIC_LINK_FLAG = -Wl,-Bdynamic
12 ifeq ($(UNAME_S), Darwin)
22 include $(LIMBO_DIR)/include/limbo/makeutils/FindCompiler.mk
24 include $(LIMBO_DIR)/include/limbo/makeutils/FindBoost.mk
27 $(info Compilers: CC = $(CC), CXX = $(CXX), FC = $(FC), AR = $(AR))
28 $(info Boost: BOOST_LINK_FLAG = $(BOOST_LINK_FLAG))
34 $(CXX) -o $@ $< -I $(BOOST_DIR) $(BOOST_LINK_FLAG) -L $(BOOST_DIR)/lib -lboost_iostreams $(DYNAMIC_LINK_FLAG)
References