]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_rayo: re-added Makefile for srgs unit tests
authorChris Rienzo <chris.rienzo@grasshopper.com>
Thu, 8 May 2014 15:14:20 +0000 (11:14 -0400)
committerChris Rienzo <chris.rienzo@grasshopper.com>
Thu, 8 May 2014 15:14:20 +0000 (11:14 -0400)
src/mod/event_handlers/mod_rayo/test_srgs/Makefile [new file with mode: 0644]

diff --git a/src/mod/event_handlers/mod_rayo/test_srgs/Makefile b/src/mod/event_handlers/mod_rayo/test_srgs/Makefile
new file mode 100644 (file)
index 0000000..d8f4666
--- /dev/null
@@ -0,0 +1,18 @@
+BASE=../../../../..
+
+IKS_DIR=$(BASE)/libs/iksemel
+IKS_LA=$(IKS_DIR)/src/libiksemel.la
+LOCAL_CFLAGS += -I../ -I$(BASE)/libs/iksemel/include
+LOCAL_OBJS= $(PCRE_LA) $(IKS_LA) main.o ../srgs.o
+LOCAL_SOURCES= main.c
+include $(BASE)/build/modmake.rules
+
+$(IKS_LA): $(IKS_DIR) $(IKS_DIR)/.update
+       @cd $(IKS_DIR) && $(MAKE)
+       @$(TOUCH_TARGET)
+
+local_all:
+       libtool --mode=link gcc main.o ../srgs.o -o test test_srgs.la
+
+local_clean:
+       -rm test