Limbo 3.5.4
Loading...
Searching...
No Matches
FindLPSolve.mk
Go to the documentation of this file.
1## @file FindLPSolve.mk
2## @brief find lpsolve library given LPSOLVE_DIR, set LPSOLVE_LINK_LIB
3##
4## It checks the version of lpsolve and generates linking flag.
5## Use following command in the Makefile to view the results
6##
7## $(info LPSolve: LPSOLVE_VERSION = $(LPSOLVE_VERSION), LPSOLVE_LINK_LIB = $(LPSOLVE_LINK_LIB))
8##
9## @author Yibo Lin
10## @date Dec 2018 11:18:47 AM CST
11##
12## @param LPSOLVE_VERSION version of lpsolve
13## @param LPSOLVE_LINK_LIB link to lpsolve
14
15## @cond
16
17LPSOLVE_VERSION = $(subst .so,,$(subst liblpsolve,,$(notdir $(wildcard $(LPSOLVE_DIR)/liblpsolve*.so))))
18LPSOLVE_LINK_LIB = -Wl,-rpath,$(LPSOLVE_DIR) -L $(LPSOLVE_DIR) -llpsolve$(LPSOLVE_VERSION)
19
20
21## @endcond