You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

39 lines
1.1 KiB

################################################
# NB: This Makefile is designed to be called #
# from the main PRISM Makefile. It won't #
# work on its own because it needs #
# various options to be passed in #
################################################
ifeq ($(OSTYPE),linux)
LPSOLVE55_BUILD=ccc
endif
ifeq ($(OSTYPE),darwin)
ifeq ($(ARCH),x86_64)
LPSOLVE55_BUILD=ccc.osx64
else
LPSOLVE55_BUILD=ccc.osx32
endif
endif
default: all
all: checks ../../lib/$(LIBPREFIX)lpsolve55$(LIBSUFFIX)
# Try and prevent accidental makes (i.e. called manually, not from top-level Makefile)
checks:
@if [ "$(LIBSUFFIX)" = "" ]; then \
(echo "Error: This Makefile is designed to be called from the main PRISM Makefile"; exit 1) \
fi;
../../lib/$(LIBPREFIX)lpsolve55$(LIBSUFFIX):
@(cd src/lp_solve_5.5/lpsolve55 && \
c=$(C) sh $(LPSOLVE55_BUILD) \
) && mv lib/$(LIBPREFIX)lpsolve55$(LIBSUFFIX) ../../lib
clean: checks
rm -f lib/$(LIBPREFIX)lpsolve55$(LIBSUFFIX) ../../lib/$(LIBPREFIX)lpsolve55$(LIBSUFFIX)
celan: clean
#################################################