/[escript]/trunk/esys2/make/Makefile.source
ViewVC logotype

Annotation of /trunk/esys2/make/Makefile.source

Parent Directory Parent Directory | Revision Log Revision Log


Revision 82 - (hide annotations)
Tue Oct 26 06:53:54 2004 UTC (18 years, 5 months ago) by jgs
File size: 2114 byte(s)
Initial revision

1 jgs 82 # $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.1 2004/10/26 06:53:58 jgs
44     # Initial revision
45     #
46     # Revision 1.2 2004/09/23 01:48:46 jgs
47     # make: augmented Makefiles with comments throughout
48     #
49     # Makefile.default - changed order of includes for clarity
50     # Makfile.phony - reordered phony targets
51     # - added target "all" - now first target to be encountered
52     #
53     # Revision 1.1.1.1 2004/06/24 04:00:39 johng
54     # Initial version of eys using boost-python.
55     #
56     # Revision 1.1.1.1 2003/08/21 00:58:20 davies
57     # Imported sources from Lutz Gross.
58     #
59    

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26