Files
cantera/Cantera/python/Makefile.in

68 lines
1.5 KiB
Makefile
Raw Normal View History

2003-04-14 17:57:48 +00:00
#/bin/sh
###############################################################
# $Author$
# $Date$
# $Revision$
#
# Copyright 2001 California Institute of Technology
# See file License.txt for licensing information
#
###############################################################
2003-04-20 04:59:05 +00:00
CANTERA_LIBDIR= @buildlib@
2003-04-20 04:04:16 +00:00
LIB_DEPS = $(CANTERA_LIBDIR)/libcantera.a $(CANTERA_LIBDIR)/libzeroD.a \
2003-12-12 16:15:17 +00:00
$(CANTERA_LIBDIR)/liboneD.a \
2003-09-06 21:00:13 +00:00
$(CANTERA_LIBDIR)/libtransport.a
2004-01-04 15:49:22 +00:00
WIN_LIB_DEPS = $(CANTERA_LIBDIR)/cantera.lib $(CANTERA_LIBDIR)/zeroD.lib \
$(CANTERA_LIBDIR)/oneD.lib \
$(CANTERA_LIBDIR)/transport.lib
2003-04-20 04:04:16 +00:00
SRCS = src/ctphase_methods.cpp \
src/ctthermo_methods.cpp \
src/ctkinetics_methods.cpp \
src/cttransport_methods.cpp \
src/ctxml_methods.cpp \
src/ctfuncs.cpp \
src/ctsurf_methods.cpp \
src/ctbndry_methods.cpp \
src/ctrpath_methods.cpp \
src/ctreactor_methods.cpp \
src/ctfunc_methods.cpp \
2003-09-06 21:00:13 +00:00
src/ctonedim_methods.cpp \
2003-04-20 04:04:16 +00:00
src/methods.h
2003-09-06 21:00:13 +00:00
os_is_win = @OS_IS_WIN@
2003-09-12 11:31:48 +00:00
all: _build
win: _winbuild
2003-04-20 04:04:16 +00:00
_build: $(SRCS) $(LIB_DEPS)
2003-04-20 13:18:09 +00:00
touch src/pycantera.cpp
2003-04-21 10:23:54 +00:00
(@PYTHON_CMD@ setup.py build)
2003-09-12 11:31:48 +00:00
echo 'ok' > _build
2004-01-05 17:02:59 +00:00
_winbuild: $(SRCS) $(WIN_LIB_DEPS)
2003-09-12 11:31:48 +00:00
touch src/pycantera.cpp
2003-09-10 13:42:25 +00:00
(@PYTHON_CMD@ setup.py build)
2003-09-12 11:31:48 +00:00
echo 'ok' > _winbuild
2003-04-14 17:57:48 +00:00
install:
2003-04-20 13:18:09 +00:00
ifeq (@local_inst@,1)
2003-04-21 10:23:54 +00:00
(@PYTHON_CMD@ setup.py install --prefix=@prefix@)
2003-04-20 13:18:09 +00:00
else
2003-04-21 10:23:54 +00:00
(@PYTHON_CMD@ setup.py install)
2003-04-20 13:18:09 +00:00
endif
2003-04-14 17:57:48 +00:00
clean:
@PYTHON_CMD@ setup.py clean
cd src; rm -f *.o
depends:
echo '-'
# end of file