]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Makefile changes for x86_64 arch, thnx Steven Ayre and ptlib include path fix.
authorroot <root@proxy-2.(none)>
Thu, 11 Nov 2010 07:56:10 +0000 (10:56 +0300)
committerroot <root@proxy-2.(none)>
Thu, 11 Nov 2010 07:56:10 +0000 (10:56 +0300)
src/mod/endpoints/mod_h323/Makefile

index 8287b34cad32d66975711dc05710db0fab04c445..57668ee8ddd246e0d8fc543e59c6aeffc0ca20ef 100644 (file)
@@ -1,7 +1,11 @@
 BASE=../../../..
-LOCAL_CFLAGS+=-g -ggdb  -I/usr/local/include/ptlib -I/usr/local/include/openh323  -I. -DPTRACING=1 -D_REENTRANT -fno-exceptions
-LOCAL_LDFLAGS= -lopenh323 -lpt -lrt 
 
-include $(BASE)/build/modmake.rules
+export PTLIBDIR = $(shell /usr/bin/ptlib-config --ptlibdir)
+LOCAL_CFLAGS+=-g -I$PTLIBDIR -I/usr/include/openh323  -I. -DPTRACING=1 -D_REENTRANT -fno-exceptions
+LOCAL_LDFLAGS= -L/usr/lib -lopenh323 -lpt -lrt 
 
+ifeq ($(shell uname -m),x86_64)
+LOCAL_CFLAGS+=-DP_64BIT
+endif
 
+include $(BASE)/build/modmake.rules