[Freeswitch-svn] [commit] r4594 - in freeswitch/trunk/src/mod: directories/mod_ldap event_handlers/mod_zeroconf

Freeswitch SVN mikej at freeswitch.org
Wed Mar 14 17:48:31 EDT 2007


Author: mikej
Date: Wed Mar 14 17:48:31 2007
New Revision: 4594

Modified:
   freeswitch/trunk/src/mod/directories/mod_ldap/Makefile
   freeswitch/trunk/src/mod/event_handlers/mod_zeroconf/Makefile

Log:
move a couple more mods to use getlibs with static non-installed builds

Modified: freeswitch/trunk/src/mod/directories/mod_ldap/Makefile
==============================================================================
--- freeswitch/trunk/src/mod/directories/mod_ldap/Makefile	(original)
+++ freeswitch/trunk/src/mod/directories/mod_ldap/Makefile	Wed Mar 14 17:48:31 2007
@@ -1,12 +1,23 @@
-# define these targets in your makefile if you wish
-# local_all local_depend local_clean depend_install local_install local_distclean local_extraclean:
-
-# and define these variables to impact your build
 MODNAME=mod_ldap
-LOCAL_CFLAGS=-DWITH_OPENLDAP -DLDAP_DEPRECATED
-LOCAL_LDFLAGS=-lldap_r -llber
-LOCAL_OBJS=
-include ../../../../build/modmake.rules
+switch_srcdir=../../../..
+
+LDAP=openldap-2.3.19
+LDAP_DIR=$(switch_srcdir)/libs/$(LDAP)
+
+LDAPLA=$(LDAP_DIR)/libraries/libldap_r/libldap_r.la
+LIBLBERLA=$(LDAP_DIR)/libraries/liblber/liblber.la
+
+LOCAL_CFLAGS=-DWITH_OPENLDAP -DLDAP_DEPRECATED -I$(LDAP_DIR)/include
+
+DEFAULT_ARGS=--prefix=$(PREFIX) --disable-shared --with-pic
+
+LOCAL_LIBADD=$(LDAPLA) $(LIBLBERLA)
+
+include $(switch_srcdir)/build/modmake.rules
+
+$(LDAP_DIR)/Makefile:
+	$(GETLIB) $(LDAP).tgz
+	cd $(LDAP_DIR) && ./configure $(DEFAULT_ARGS) --disable-bdb --disable-hdb
 
-local_depend:
-	MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install openldap-2.3.19.tgz --prefix=$(PREFIX) --disable-bdb --disable-hdb
+$(LDAPLA) $(LIBLBERLA): $(LDAP_DIR)/Makefile
+	cd $(LDAP_DIR) && $(MAKE)

Modified: freeswitch/trunk/src/mod/event_handlers/mod_zeroconf/Makefile
==============================================================================
--- freeswitch/trunk/src/mod/event_handlers/mod_zeroconf/Makefile	(original)
+++ freeswitch/trunk/src/mod/event_handlers/mod_zeroconf/Makefile	Wed Mar 14 17:48:31 2007
@@ -1,12 +1,20 @@
-# define these targets in your makefile if you wish
-# local_all local_depend local_clean depend_install local_install local_distclean local_extraclean:
-
-# and define these variables to impact your build
 MODNAME=mod_zeroconf
-LOCAL_CFLAGS=-I$(PREFIX)/include/howl
-LOCAL_LDFLAGS=-lhowl
-LOCAL_OBJS=
-include ../../../../build/modmake.rules
+switch_srcdir=../../../..
+
+HOWL=howl-1.0.0
+HOWL_DIR=$(switch_srcdir)/libs/$(HOWL)
+HOWLLA=$(HOWL_DIR)/src/lib/howl/libhowl.la
+
+LOCAL_CFLAGS=-I$(HOWL_DIR)/include
+LOCAL_LIBADD=$(HOWLLA)
+
+DEFAULT_ARGS=--prefix=$(PREFIX) --disable-shared --with-pic
+
+include $(switch_srcdir)/build/modmake.rules
+
+$(HOWL_DIR)/Makefile:
+	$(GETLIB) $(HOWL).tar.gz
+	cd $(HOWL_DIR) && ./configure $(DEFAULT_ARGS)
 
-local_depend:
-	$(BASE)/build/buildlib.sh $(BASE) install howl-1.0.0.tar.gz --prefix=$(PREFIX)
+$(HOWLLA): $(HOWL_DIR)/Makefile
+	cd $(HOWL_DIR) && $(MAKE)



More information about the Freeswitch-svn mailing list