[Freeswitch-svn] [commit] r9829 - in freeswitch/trunk/src/mod/languages/mod_managed: . managed
Freeswitch SVN
anthm at freeswitch.org
Sat Oct 4 03:47:31 EDT 2008
Author: anthm
Date: Sat Oct 4 03:47:30 2008
New Revision: 9829
Removed:
freeswitch/trunk/src/mod/languages/mod_managed/runswig.sh
Modified:
freeswitch/trunk/src/mod/languages/mod_managed/Makefile
freeswitch/trunk/src/mod/languages/mod_managed/managed/Makefile
Log:
linux build system fixups
Modified: freeswitch/trunk/src/mod/languages/mod_managed/Makefile
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_managed/Makefile (original)
+++ freeswitch/trunk/src/mod/languages/mod_managed/Makefile Sat Oct 4 03:47:30 2008
@@ -1,10 +1,9 @@
-#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
LOCAL_OBJS=freeswitch_managed.o freeswitch_wrap.o
+
local_depend: $(LOCAL_OBJS)
freeswitch_managed.o: freeswitch_managed.h freeswitch_managed.cpp
@@ -16,6 +15,19 @@
reswig: swigclean freeswitch_wrap.cxx
+local_depend:
+ cd managed && $(MAKE)
+
+local_install: $(MODINSTDIR)/mod_managed.so
+ cd managed && $(MAKE) MODINSTDIR=$(MODINSTDIR) install
+
+local_uninstall:
+ rm -fr $(MODINSTDIR)/mod_managed.so
+ cd managed && $(MAKE) MODINSTDIR=$(MODINSTDIR) uninstall
+
+local_clean:
+ cd managed && $(MAKE) clean
+
swigclean: clean
rm -f freeswitch_wrap.cxx freeswitch_wrap.cpp managed/swig.cs
@@ -24,3 +36,6 @@
rm -f ./managed/swig.cs
cat *.cs > ./managed/swig.cs
rm -f *.cs
+
+depend_install:
+ mkdir -p $(DESTDIR)$(PREFIX)/mod/managed
Modified: freeswitch/trunk/src/mod/languages/mod_managed/managed/Makefile
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_managed/managed/Makefile (original)
+++ freeswitch/trunk/src/mod/languages/mod_managed/managed/Makefile Sat Oct 4 03:47:30 2008
@@ -1,13 +1,14 @@
-all: Debug Debug/mod_managed_lib.dll
+all: mod_managed_lib.dll
clean:
- rm -fr Debug
+ rm -fr mod_managed_lib.dll
-Debug:
- mkdir Debug
+mod_managed_lib.dll: Loader.cs ManagedSession.cs ApiFunction.cs AppFunction.cs Extensions.cs Log.cs Demo.cs swig.cs
+ gmcs -target:library -out:mod_managed_lib.dll -d:DEBUG Loader.cs ManagedSession.cs ApiFunction.cs AppFunction.cs Extensions.cs Log.cs Demo.cs swig.cs
-Debug/mod_managed_lib.dll: Loader.cs ManagedSession.cs ApiFunction.cs AppFunction.cs Extensions.cs Log.cs Demo.cs swig.cs
- gmcs -target:library -out:Debug/mod_managed_lib.dll -d:DEBUG Loader.cs ManagedSession.cs ApiFunction.cs AppFunction.cs Extensions.cs Log.cs Demo.cs swig.cs
+install: mod_managed_lib.dll
+ install mod_managed_lib.dll $(MODINSTDIR)
+
+uninstall:
+ rm -f $(MODINSTDIR)/mod_managed_lib.dll
-install: Debug/mod_managed_lib.dll
- install Debug/mod_managed_lib.dll /usr/local/freeswitch/mod
More information about the Freeswitch-svn
mailing list