Add in CPPFLAGS and LDFLAGS to examples/test-suite
- Split current usage of CXXFLAGS into the conventional CPPFLAGS CXXFLAGS and LDFLAGS - Split current usage of CFLAGS into the conventional CPPFLAGS CFLAGS and LDFLAGS - This restores 'make whatever CXXFLAGS=-g' which stopped working during the recently added suppport for out of source builds. - LDFLAGS is currently empty, but is there for future use
This commit is contained in:
parent
d927fa5376
commit
18d72f4562
7 changed files with 121 additions and 124 deletions
|
|
@ -16,9 +16,11 @@ all: javascript
|
|||
CC = @CC@
|
||||
# HACK: under OSX a g++ compiled interpreter is seg-faulting when loading module libraries
|
||||
# with 'c++' it works... probably some missing flags?
|
||||
JSCXX = @JSINTERPRETERCXX@
|
||||
JSCXX = @JSINTERPRETERCXX@
|
||||
CPPFLAGS = @BOOST_CPPFLAGS@
|
||||
CFLAGS = @PLATCFLAGS@
|
||||
CXXFLAGS = @BOOST_CPPFLAGS@ @PLATCXXFLAGS@
|
||||
CXXFLAGS = @PLATCXXFLAGS@
|
||||
LDFLAGS =
|
||||
LINKFLAGS = @JSINTERPRETERLINKFLAGS@
|
||||
|
||||
ROOT_DIR = @ROOT_DIR@
|
||||
|
|
@ -54,10 +56,10 @@ JS_INTERPRETER_SRC = javascript.cxx js_shell.cxx $(JS_INTERPRETER_SRC_JSC) $(JS_
|
|||
JS_INTERPRETER_OBJS = $(JS_INTERPRETER_SRC:.cxx=.o)
|
||||
|
||||
%.o: $(srcdir)/%.cxx
|
||||
$(JSCXX) $(JS_INTERPRETER_DEFINES) $(CXXFLAGS) $(JSINCLUDES) -o $@ -c $<
|
||||
$(JSCXX) $(JS_INTERPRETER_DEFINES) $(CPPFLAGS) $(CXXFLAGS) $(JSINCLUDES) -o $@ -c $<
|
||||
|
||||
javascript: $(JS_INTERPRETER_OBJS)
|
||||
$(JSCXX) $^ $(CXXFLAGS) -o javascript $(JSDYNAMICLINKING) $(LINKFLAGS)
|
||||
$(JSCXX) $^ $(CXXFLAGS) $(LDFLAGS) -o javascript $(JSDYNAMICLINKING) $(LINKFLAGS)
|
||||
|
||||
clean:
|
||||
rm -f *.o
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue