mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
42 lines
985 B
Makefile
42 lines
985 B
Makefile
#/bin/sh
|
|
|
|
LIBDIR = @buildlib@
|
|
INCDIR = @ctroot@/build/include/cantera
|
|
BINDIR = @ctroot@/bin
|
|
build_ck = @BUILD_CK@
|
|
|
|
LCXX_FLAGS = -L$(LIBDIR) @CXXFLAGS@
|
|
LOCAL_LIBS = -lcantera -lckreader @math_libs@ @LAPACK_LIBRARY@ @BLAS_LIBRARY@ -lctcxx
|
|
|
|
LCXX_END_LIBS = @LCXX_END_LIBS@
|
|
|
|
OBJS = mdp_allo.o csvdiff.o tok_input_util.o
|
|
DEPENDS = $(OBJS:.o=.d)
|
|
|
|
# Optimization is turned off (-O0) because a strange interal compiler
|
|
# error results when using g++ 3.0 on Mac OS X. Optimization should
|
|
# not be needed here anyway.
|
|
|
|
.cpp.o:
|
|
@CXX@ -c $< @DEFS@ -I$(INCDIR) @CXXFLAGS@ $(CXX_FLAGS) -O0
|
|
|
|
all: $(BINDIR)/csvdiff
|
|
|
|
$(BINDIR)/csvdiff: mdp_allo.o csvdiff.o tok_input_util.o
|
|
@CXX@ -o $(BINDIR)/csvdiff mdp_allo.o csvdiff.o tok_input_util.o \
|
|
$(LCXX_FLAGS) $(LCXX_END_LIBS)
|
|
|
|
clean:
|
|
$(RM) *.o *.*~ csvdiff
|
|
|
|
%.d:
|
|
@CXX@ -MM -I$(INCDIR) @CXXFLAGS@ $(CXX_FLAGS) $*.cpp > $*.d
|
|
|
|
depends: $(DEPENDS)
|
|
cat *.d &> .depends
|
|
$(RM) $(DEPENDS)
|
|
|
|
ifeq ($(wildcard .depends), .depends)
|
|
include .depends
|
|
endif
|