Support compiling and running either _runme.c or _runme.cxx files for the given test (but not both). Add a simple C++ test file to check that it actually works.
18 lines
568 B
Makefile
18 lines
568 B
Makefile
TOP = ../..
|
|
SWIGEXE = $(TOP)/../swig
|
|
SWIG_LIB_DIR = $(TOP)/../$(TOP_BUILDDIR_TO_TOP_SRCDIR)Lib
|
|
CXXSRCS = example.cxx
|
|
TARGET = example
|
|
INTERFACE = example.i
|
|
|
|
check: build
|
|
$(MAKE) -f $(TOP)/Makefile SRCDIR='$(SRCDIR)' \
|
|
TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' RUNME_EXT=c c_run
|
|
|
|
build:
|
|
$(MAKE) -f $(TOP)/Makefile SRCDIR='$(SRCDIR)' CXXSRCS='$(CXXSRCS)' \
|
|
SWIG_LIB_DIR='$(SWIG_LIB_DIR)' SWIGEXE='$(SWIGEXE)' \
|
|
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' c_cpp
|
|
|
|
clean:
|
|
$(MAKE) -f $(TOP)/Makefile SRCDIR='$(SRCDIR)' c_clean
|