mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
68 lines
1.5 KiB
Makefile
Executable File
68 lines
1.5 KiB
Makefile
Executable File
#/bin/sh
|
|
###############################################################
|
|
# $Author$
|
|
# $Date$
|
|
# $Revision$
|
|
#
|
|
# Copyright 2001 California Institute of Technology
|
|
# See file License.txt for licensing information
|
|
#
|
|
###############################################################
|
|
|
|
CANTERA_LIBDIR= @buildlib@
|
|
LIB_DEPS = $(CANTERA_LIBDIR)/libcantera.a $(CANTERA_LIBDIR)/libzeroD.a \
|
|
$(CANTERA_LIBDIR)/liboneD.a \
|
|
$(CANTERA_LIBDIR)/libtransport.a
|
|
WIN_LIB_DEPS = $(CANTERA_LIBDIR)/cantera.lib $(CANTERA_LIBDIR)/zeroD.lib \
|
|
$(CANTERA_LIBDIR)/oneD.lib \
|
|
$(CANTERA_LIBDIR)/transport.lib
|
|
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 \
|
|
src/ctonedim_methods.cpp \
|
|
src/methods.h
|
|
|
|
os_is_win = @OS_IS_WIN@
|
|
|
|
all: _build
|
|
|
|
win: _winbuild
|
|
|
|
_build: $(SRCS) $(LIB_DEPS)
|
|
touch src/pycantera.cpp
|
|
(@PYTHON_CMD@ setup.py build)
|
|
echo 'ok' > _build
|
|
|
|
|
|
_winbuild: $(SRCS) $(WIN_LIB_DEPS)
|
|
touch src/pycantera.cpp
|
|
(@PYTHON_CMD@ setup.py build)
|
|
echo 'ok' > _winbuild
|
|
|
|
install:
|
|
ifeq (@local_inst@,1)
|
|
(@PYTHON_CMD@ setup.py install --prefix=@prefix@)
|
|
else
|
|
(@PYTHON_CMD@ setup.py install)
|
|
endif
|
|
|
|
clean:
|
|
@PYTHON_CMD@ setup.py clean
|
|
cd src; rm -f *.o
|
|
|
|
depends:
|
|
echo '-'
|
|
|
|
# end of file
|
|
|
|
|
|
|