Complete the prototype removal in ca1431. The script prevents SWIGTOOL=gdb from working as gdb can't be used to debug a shell script, it requires a binary. Add support for SWIGTOOL in all the examples. SWIG_LIB_DIR and SWIGEXE must now instead be set by all Makefiles. See issue #473.
21 lines
570 B
Makefile
21 lines
570 B
Makefile
TOP = ../..
|
|
SWIGEXE = $(TOP)/../swig
|
|
SWIG_LIB_DIR = $(TOP)/../$(TOP_BUILDDIR_TO_TOP_SRCDIR)Lib
|
|
SRCS =
|
|
TARGET = example
|
|
INTERFACE = example.i
|
|
SWIGOPT =
|
|
|
|
GPP = `which g++`
|
|
MZC = test -n "/usr/bin/mzc" && /usr/bin/mzc
|
|
|
|
check: build
|
|
$(MAKE) -f $(TOP)/Makefile SRCDIR='$(SRCDIR)' mzscheme_run
|
|
|
|
build:
|
|
$(SWIG) -mzscheme -c++ $(SWIGOPT) $(INTERFACE)
|
|
$(MZC) --compiler $(GPP) ++ccf "-I." --cc example_wrap.cxx
|
|
$(MZC) --linker $(GPP) --ld $(TARGET).so example_wrap.o
|
|
|
|
clean:
|
|
$(MAKE) -f $(TOP)/Makefile SRCDIR='$(SRCDIR)' mzscheme_clean
|