]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
move mod_enum to use automake
authorMichael Jerris <mike@jerris.com>
Mon, 7 Dec 2009 07:07:43 +0000 (07:07 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 7 Dec 2009 07:07:43 +0000 (07:07 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15812 d0543943-73ff-0310-b7d9-9358b9ac24b2

configure.in
libs/udns/udns_resolver.c
src/mod/applications/mod_enum/Makefile [deleted file]
src/mod/applications/mod_enum/Makefile.am [new file with mode: 0644]

index e9ed537c001a915edb96af2131046d32dbbbe09d..c7c299bebbeda4367f4da865a2467a85c89e0dab 100644 (file)
@@ -787,6 +787,7 @@ CHECK_ERLANG
 AC_CONFIG_FILES([Makefile
                 src/Makefile
                 src/mod/Makefile
+                src/mod/applications/mod_enum/Makefile
                 src/mod/endpoints/mod_sofia/Makefile
                 src/mod/asr_tts/mod_unimrcp/Makefile
                 src/mod/languages/mod_java/Makefile
index 87a4d91951384d4430a42b6a6a6b1ab6582d02f6..acb3ca4dd7a657f134ac316205ad72e466b1a280 100644 (file)
@@ -45,6 +45,9 @@ int udns_inet_pton(int, const char *, void *);
 # undef HAVE_POLL
 #else
 #define udns_inet_pton inet_pton
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
 # include <sys/types.h>
 # include <sys/socket.h>
 # include <netinet/in.h>
diff --git a/src/mod/applications/mod_enum/Makefile b/src/mod/applications/mod_enum/Makefile
deleted file mode 100644 (file)
index db458ae..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-BASE=../../../..
-UDNS_DIR=$(MODDIR)/../../../../libs/udns
-LOCAL_CFLAGS=-I$(UDNS_DIR) -DHAVE_POLL
-LOCAL_OBJS=$(UDNS_DIR)/udns_dn.o $(UDNS_DIR)/udns_dntosp.o $(UDNS_DIR)/udns_parse.o $(UDNS_DIR)/udns_misc.o \
-$(UDNS_DIR)/udns_rr_a.o $(UDNS_DIR)/udns_rr_ptr.o $(UDNS_DIR)/udns_rr_mx.o $(UDNS_DIR)/udns_rr_txt.o $(UDNS_DIR)/udns_bl.o \
-$(UDNS_DIR)/udns_rr_srv.o $(UDNS_DIR)/udns_rr_naptr.o $(UDNS_DIR)/udns_codes.o $(UDNS_DIR)/udns_resolver.o
-
-
-include $(BASE)/build/modmake.rules
-
diff --git a/src/mod/applications/mod_enum/Makefile.am b/src/mod/applications/mod_enum/Makefile.am
new file mode 100644 (file)
index 0000000..beea7e2
--- /dev/null
@@ -0,0 +1,14 @@
+include $(top_srcdir)/build/modmake.rulesam
+MODNAME=mod_enum
+
+UDNS_DIR=$(switch_srcdir)/libs/udns
+AM_CFLAGS += -I$(UDNS_DIR) -DHAVE_POLL
+
+mod_LTLIBRARIES = mod_enum.la
+mod_enum_la_SOURCES  = mod_enum.c 
+mod_enum_la_SOURCES += $(UDNS_DIR)/udns_dn.c $(UDNS_DIR)/udns_dntosp.c $(UDNS_DIR)/udns_parse.c $(UDNS_DIR)/udns_misc.c
+mod_enum_la_SOURCES += $(UDNS_DIR)/udns_rr_a.c $(UDNS_DIR)/udns_rr_ptr.c $(UDNS_DIR)/udns_rr_mx.c $(UDNS_DIR)/udns_rr_txt.c $(UDNS_DIR)/udns_bl.c
+mod_enum_la_SOURCES += $(UDNS_DIR)/udns_rr_srv.c $(UDNS_DIR)/udns_rr_naptr.c $(UDNS_DIR)/udns_codes.c $(UDNS_DIR)/udns_resolver.c
+mod_enum_la_CFLAGS   = $(AM_CFLAGS)
+mod_enum_la_LIBADD   = $(switch_builddir)/libfreeswitch.la
+mod_enum_la_LDFLAGS  = -avoid-version -module -no-undefined