- Use CXXFLAGS to pass flags to C++ compiler (not CCFLAGS) - Set CXXFLAGS based on flags that Cantera was compiled with (which will include things like -pthread and -std=c++0x as necessary - Remove incorrect / unused target for the target binary - Add the generated binary to things remove by 'make clean'
20 lines
295 B
Makefile
20 lines
295 B
Makefile
include @make_Cantera_dot_mak@
|
|
|
|
CC=@CC@
|
|
CXX=@CXX@
|
|
RM=rm -f
|
|
CXXFLAGS=@mak_compiler_flags@
|
|
CPPFLAGS=$(CANTERA_INCLUDES)
|
|
LDFLAGS=
|
|
LDLIBS=$(CANTERA_LIBS)
|
|
|
|
SRCS=@tmpl_sourcename@
|
|
OBJS=$(subst .cpp,.o,$(SRCS))
|
|
|
|
all: @tmpl_progname@
|
|
|
|
clean:
|
|
$(RM) $(OBJS) @tmpl_progname@
|
|
|
|
dist-clean: clean
|
|
$(RM) *~
|