]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add makefile for wanpipe
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 21 Feb 2006 18:16:43 +0000 (18:16 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 21 Feb 2006 18:16:43 +0000 (18:16 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@643 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_wanpipe/Makefile [new file with mode: 0644]

diff --git a/src/mod/endpoints/mod_wanpipe/Makefile b/src/mod/endpoints/mod_wanpipe/Makefile
new file mode 100644 (file)
index 0000000..32d6d44
--- /dev/null
@@ -0,0 +1,25 @@
+CFLAGS +=-I/usr/local/include -I/usr/src/libpri -I/usr/src/linux/include -I. -I/usr/include
+CFLAGS +=-D__LINUX__ -D_REENTRANT -D_GNU_SOURCE -O6 -march=i686 -DAFT_A104
+CFLAGS +=-Wall -Wstrict-prototypes -Wmissing-prototypes -g
+LDFLAGS += -lsangoma
+
+
+ifeq ($(OSARCH),Darwin)
+       LINKER=g++
+else
+       LINKER=$(CC)
+endif
+
+all:   depends $(MODNAME).so
+
+depends:
+
+$(MODNAME).so: $(MODNAME).c
+       $(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o 
+       $(LINKER) $(SOLINK) -o $(MODNAME).so  $(MODNAME).o $(LDFLAGS)
+
+clean:
+       rm -fr *.so *.o *~
+
+install:
+       cp -f $(MODNAME).so $(PREFIX)/mod