1 |
# $Id$ |
2 |
|
3 |
# Locate all source code files and define related Makefile variables |
4 |
|
5 |
# C Source |
6 |
# Find all .c files in source directory, and define matching .o and .lo files |
7 |
CC_SRC := ${patsubst ${L_SRC_DIR}/%, %, ${shell find ${L_SRC_DIR} -name \*.c | grep -v '-'}} |
8 |
CC_OBJ := ${patsubst %.c, %.o, ${CC_SRC}} |
9 |
CC_SHOBJ := ${patsubst %.c, %.lo, ${CC_SRC}} |
10 |
|
11 |
# C++ Source |
12 |
# Find all .cpp files in source directory, and define matching .o and .lo files |
13 |
CPP_SRC := ${patsubst ${L_SRC_DIR}/%, %, ${shell find ${L_SRC_DIR} -name \*.cpp | grep -v '-'}} |
14 |
CPP_OBJ := ${patsubst %.cpp, %.o, ${CPP_SRC}} |
15 |
CPP_SHOBJ := ${patsubst %.cpp, %.lo, ${CPP_SRC}} |
16 |
|
17 |
# Swig Source |
18 |
# Find all .i files in source directory, and define matching .cpp, .py, .o and .lo files |
19 |
SWIG_SRC := ${patsubst ${L_SRC_DIR}/%, %, ${shell find ${L_SRC_DIR} -name \*.i | grep -v '-'}} |
20 |
SWIG_CPP_SRC := ${patsubst %.i, %.cpp, ${SWIG_SRC}} |
21 |
SWIG_PY_SRC := ${patsubst %.i, %.py, ${SWIG_SRC}} |
22 |
SWIG_OBJ := ${patsubst %.i, %.o, ${SWIG_SRC}} |
23 |
SWIG_SHOBJ := ${patsubst %.i, %.lo, ${SWIG_SRC}} |
24 |
|
25 |
# Python Source |
26 |
# Find all .py files in source directory, and define matching .pyc files |
27 |
PYTHON_SRC := ${patsubst ${L_SRC_DIR}/%, %, ${shell find ${L_SRC_DIR} -name \*.py | grep -v '-'}} |
28 |
PYTHON_BYTE := ${patsubst %.py, %.pyc, ${PYTHON_SRC}} |
29 |
|
30 |
# Search Paths |
31 |
# define locations to search for each file type |
32 |
vpath %.c ${L_SRC_DIR} |
33 |
vpath %.cpp ${L_SRC_DIR} |
34 |
vpath %.i ${L_SRC_DIR} |
35 |
vpath %.py ${L_SRC_DIR} |
36 |
vpath %.o ${L_OBJ_DIR} |
37 |
vpath %.lo ${L_OBJ_DIR} |
38 |
vpath %.a ${L_LIB_DIR} |
39 |
vpath %.so ${L_LIB_DIR} |
40 |
vpath %.pyc ${L_LIB_DIR} |
41 |
|
42 |
# $Log$ |
43 |
# Revision 1.2 2005/06/09 05:38:03 jgs |
44 |
# Merge of development branch back to main trunk on 2005-06-09 |
45 |
# |
46 |
# Revision 1.1.1.1.2.1 2005/05/17 01:31:15 jgs |
47 |
# set L_INSTLIB_DIR and L_PYTH_DIR defaults relative to ESYS_ROOT |
48 |
# |
49 |
# Revision 1.1.1.1 2004/10/26 06:53:58 jgs |
50 |
# initial import of project esys2 |
51 |
# |
52 |
# Revision 1.2 2004/09/23 01:48:46 jgs |
53 |
# make: augmented Makefiles with comments throughout |
54 |
# |
55 |
# Makefile.default - changed order of includes for clarity |
56 |
# Makfile.phony - reordered phony targets |
57 |
# - added target "all" - now first target to be encountered |
58 |
# |
59 |
# Revision 1.1.1.1 2004/06/24 04:00:39 johng |
60 |
# Initial version of eys using boost-python. |
61 |
# |
62 |
# Revision 1.1.1.1 2003/08/21 00:58:20 davies |
63 |
# Imported sources from Lutz Gross. |
64 |
# |