Rob Sherwood wrote:
Can someone point me to an example of building a C++ module outside of
Nox's source tree? Looking at the build system, it seems like such a
thing should be possible. Apologies if I'm asking a FAQ, but I wasn't
able to find the answer for C++ on the mailing list (found Martin's
resp re: python though).
- Rob
The Makefile for my project essentially boils down to:
INCLUDES=-I$(NOX_HOME)src/nox -I$(NOX_HOME)/src/include
-I$(NOX_HOME)/src/include/openflow -I$(NOX_HOME) -I/usr/include/xercesc/dom
-I$(NOX_HOME)/build -Isrc ...
DEFINES=-D__STDC_LIMIT_MACROS=1 -D__STDC_FORMAT_MACROS=1
-D__STDC_CONSTANT_MACROS=1 ...
FLAGS=compiler flags...
libtool --tag=CXX --mode=compile g++ -c $(INCLUDES) $(DEFINES) $(FLAGS) foo.cpp
libtool --tag=CXX --mode=link g++ -module -export-dynamic -o foo.la -rpath
/some/path $(FLAGS) foo.cpp
Hope this helps,
Daniel
_______________________________________________
nox-dev mailing list
[email protected]
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org