1 |
# $Id$ |
2 |
|
3 |
# This makefile automatically finds, calculates dependencies, compiles |
4 |
# and makes a static library from all C++ files found in the directories |
5 |
# under ${L_SRC_DIR} (see below). Files and even whole directory trees |
6 |
# under ${L_SRC_DIR} can be skipped by postfixing the name with a "-". |
7 |
|
8 |
# Matt Davies 04/08/03 |
9 |
|
10 |
DEFAULT_TARGET := libfinleyC.a libfinleycpp.so pyc |
11 |
|
12 |
ifeq ($(strip $(L_PYTH_DIR)),) |
13 |
L_PYTH_DIR := $(ESYS_ROOT)/esys |
14 |
endif |
15 |
|
16 |
L_PYTH_DIR := $(L_PYTH_DIR)/finley |
17 |
|
18 |
INSTALL_PYTH := ./lib/py_src/__init__.pyc ./lib/py_src/finley.pyc |
19 |
|
20 |
INSTALL_LIB := ./lib/libfinleycpp.so |
21 |
|
22 |
PACKAGES := escript esysUtils python boost paso scsl mkl umfpack mmio |
23 |
|
24 |
L_SRC_DIR := ./src/finleyC ./src/CPPAdapter ./py_src |
25 |
|
26 |
# determine solver packages to use |
27 |
ifeq ($(strip $(USE_GCC)),) |
28 |
HOSTNAME := ${shell hostname | sed -e 's/\..*//'} |
29 |
else |
30 |
HOSTNAME := gcc |
31 |
endif |
32 |
|
33 |
include $(ESYS_ROOT)/make/Makefile.default |