summaryrefslogtreecommitdiff
path: root/Examples/mzscheme/std_vector/Makefile
blob: d2bf0a013795040b5b788464c8fc6ed2915c9b64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
TOP        = ../..
SWIG       = $(TOP)/../preinst-swig
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 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 mzscheme_clean