Show using C++ wrapper API for the "class" example
This almost exactly mirrors the existing C examples, but modify both examples slightly to make their output show which language is used.
This commit is contained in:
parent
55d7db6b27
commit
7cbbfab198
3 changed files with 50 additions and 3 deletions
|
|
@ -5,10 +5,16 @@ CXXSRCS = example.cxx
|
|||
TARGET = example
|
||||
INTERFACE = example.i
|
||||
|
||||
check: build
|
||||
check_c: build
|
||||
$(MAKE) -f $(TOP)/Makefile SRCDIR='$(SRCDIR)' \
|
||||
TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' RUNME_EXT=c c_run
|
||||
|
||||
check_cxx: build
|
||||
$(MAKE) -f $(TOP)/Makefile SRCDIR='$(SRCDIR)' \
|
||||
TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' RUNME_EXT=cxx c_run
|
||||
|
||||
check: check_c check_cxx
|
||||
|
||||
build:
|
||||
$(MAKE) -f $(TOP)/Makefile SRCDIR='$(SRCDIR)' CXXSRCS='$(CXXSRCS)' \
|
||||
SWIG_LIB_DIR='$(SWIG_LIB_DIR)' SWIGEXE='$(SWIGEXE)' \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue