Debian Codegraph @

debian/external_deps/fetk/gamer/swig/Makefile.simple

raw
1 ### ##########################################################################
2 ### MC = < Manifold Code >
3 ### Copyright (C) 1994-- Michael Holst
4 ###
5 ### This library is free software; you can redistribute it and/or
6 ### modify it under the terms of the GNU Lesser General Public
7 ### License as published by the Free Software Foundation; either
8 ### version 2.1 of the License, or (at your option) any later version.
9 ###
10 ### This library is distributed in the hope that it will be useful,
11 ### but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 ### Lesser General Public License for more details.
14 ###
15 ### You should have received a copy of the GNU Lesser General Public
16 ### License along with this library; if not, write to the Free Software
17 ### Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 ###
19 ### rcsid="$Id: Makefile.simple,v 1.1 2010/12/08 09:48:16 fetk Exp $"
20 ### ##########################################################################
21
22 ## ###########################################################################
23 ## File: Makefile.simple
24 ##
25 ## Purpose: Simple makefile for building FEtk tools without using autoconf.
26 ##
27 ## Notes: Edit as needed and then invoke via "make -f Makefile.simple"
28 ##
29 ## Author: Michael Holst
30 ## ###########################################################################
31
32 ARCH = x86_64-apple-darwin10.5.0
33 #ARCH = x86_64-unknown-linux-gnu
34
35 include ../../build/${ARCH}/fetk-env
36
37 DMAL =
38 #DMAL = -ldmalloc
39
40 SYS_INC = -I/usr/include/python2.6/ -I/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/numpy/core/include/
41 #SYS_INC = -I/usr/include/python2.6/
42
43 SYS_LIB = -L/usr/lib -lpython2.6 -L/usr/X11R6/lib -L/sw/lib -lm ${DMAL}
44 #SYS_LIB = -L/usr/lib -lpython2.6 -lm ${DMAL}
45
46 FETK_INC = -I${FETK_INCLUDE}
47 FETK_LIB = -L${FETK_LIBRARY} -lgamer -lpunc -lmaloc -lsuperlu -lumfpack -lamd ${DMAL}
48
49 default : _cgamer.so
50
51 _cgamer.so :
52 swig ${FETK_INC} -I./src -python -o cgamer_wrap.cc -oh cgamer_wrap.h ./src/gamer.i
53 g++ -fPIC -c -o cgamer_wrap.o ${SYS_INC} ${FETK_INC} cgamer_wrap.cc
54 g++ ${FETK_LIB} -shared -lgamer -ltetgen ${SYS_LIB} -o _cgamer.so cgamer_wrap.o
55
56 setdmal :
57 dmalloc -l logfile -i 100 high
58
59 clean :
60 -rm -f *.o cgamer.py cgamer_wrap.cc cgamer_wrap.h _cgamer.so .gdb_history
61