aboutsummaryrefslogtreecommitdiffstats
path: root/bindings/swig/Makefile
blob: a1dca13e96ae6c9d5c12ad8e15f5ad77828858a2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
TOP        = $(PWD)
SWIG       = swig
SWIGOPT    = -Wall -proxy
CXXSRCS    = 
TARGET     = sword
INTERFACE  = sword.i
LIBS       = -lm -lz -lsword
INCLUDE	   = -I$(TOP)/../../include/

all::
	$(MAKE) -f $(TOP)/Makefile.swig CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
	TARGET='$(TARGET)' SWIGOPT='$(SWIGOPT)' INTERFACE='$(INTERFACE)' LIBS='$(LIBS)' INCLUDE='$(INCLUDE)' perl5_cpp

static::
	$(MAKE) -f $(TOP)/Makefile.swig CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
	TARGET='myperl' INTERFACE='$(INTERFACE)' INCLUDE='$INCLUDE' perl5_cpp_static

clean::
	rm -f *_wrap* *.o *~ *.so myperl *.pyc .~* core

check: all