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:
Vadim Zeitlin 2021-11-18 23:56:39 +01:00
commit 7cbbfab198
3 changed files with 50 additions and 3 deletions

View file

@ -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)' \