2008-09-25 05:16:16 +00:00
|
|
|
#MOD_CFLAGS=`pkg-config --cflags --libs mono`
|
|
|
|
MOD_CFLAGS=-D_REENTRANT -pthread -I/opt/mono-1.9/lib/pkgconfig/../../include/mono-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -lmono
|
|
|
|
#LDFLAGS=`pkg-config --libs mono`
|
|
|
|
BASE=../../../..
|
|
|
|
VERBOSE=1
|
|
|
|
include $(BASE)/build/modmake.rules
|
2008-10-03 18:40:01 +00:00
|
|
|
LOCAL_OBJS=freeswitch_managed.o freeswitch_wrap.o
|
2008-09-25 05:16:16 +00:00
|
|
|
local_depend: $(LOCAL_OBJS)
|
|
|
|
|
2008-10-03 18:40:01 +00:00
|
|
|
freeswitch_managed.o: freeswitch_managed.h freeswitch_managed.cpp
|
2008-09-25 05:16:16 +00:00
|
|
|
|
|
|
|
freeswitch_wrap.o: freeswitch_wrap.cpp
|
|
|
|
|
|
|
|
freeswitch_wrap.cpp: freeswitch_wrap.cxx
|
2008-10-03 18:40:01 +00:00
|
|
|
cp freeswitch_wrap.cxx freeswitch_wrap.cpp
|
2008-09-25 05:16:16 +00:00
|
|
|
|
2008-10-03 18:40:01 +00:00
|
|
|
reswig: swigclean freeswitch_wrap.cxx
|
|
|
|
|
|
|
|
swigclean: clean
|
|
|
|
rm -f freeswitch_wrap.cxx freeswitch_wrap.cpp managed/swig.cs
|
|
|
|
|
|
|
|
freeswitch_wrap.cxx:
|
|
|
|
swig -I../../../include -v -O -c++ -csharp -namespace FreeSWITCH.Native -dllimport mod_managed freeswitch.i
|
|
|
|
rm -f ./managed/swig.cs
|
|
|
|
cat *.cs > ./managed/swig.cs
|
|
|
|
rm -f *.cs
|