[Asterisk-cvs] libpri Makefile,1.10,1.11
markster at lists.digium.com
markster at lists.digium.com
Tue Aug 31 13:37:34 CDT 2004
Update of /usr/cvsroot/libpri
In directory mongoose.digium.com:/tmp/cvs-serv32743
Modified Files:
Makefile
Log Message:
Minor Makefile fixes for libpri (bug #2330)
Index: Makefile
===================================================================
RCS file: /usr/cvsroot/libpri/Makefile,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- Makefile 22 May 2004 04:25:53 -0000 1.10
+++ Makefile 31 Aug 2004 17:40:59 -0000 1.11
@@ -28,6 +28,7 @@
#LIBPRI_COUNTERS=-DLIBPRI_COUNTERS
OSARCH=$(shell uname -s)
+PROC=$(shell uname -m)
TOBJS=testpri.o
T2OBJS=testprilib.o
@@ -46,6 +47,14 @@
endif
endif
+#The problem with sparc is the best stuff is in newer versions of gcc (post 3.0) only.
+#This works for even old (2.96) versions of gcc and provides a small boost either way.
+#A ultrasparc cpu is really v9 but the stock debian stable 3.0 gcc doesnt support it.
+ifeq ($(PROC),sparc64)
+PROC=ultrasparc
+CFLAGS += -mtune=$(PROC) -O3 -pipe -fomit-frame-pointer -mcpu=v8
+endif
+
all: depend $(STATIC_LIBRARY) $(DYNAMIC_LIBRARY)
update:
@@ -69,16 +78,16 @@
rm -f $(INSTALL_PREFIX)/usr/include/libpri.h
pritest: pritest.o
- $(CC) -o pritest pritest.o -L. -lpri -lzap
+ $(CC) -o pritest pritest.o -L. -lpri -lzap $(CFLAGS)
testprilib.o: testprilib.c
$(CC) $(CFLAGS) -D_REENTRANT -D_GNU_SOURCE -o $@ -c $<
testprilib: testprilib.o
- $(CC) -o testprilib testprilib.o -L. -lpri -lpthread
+ $(CC) -o testprilib testprilib.o -L. -lpri -lpthread $(CFLAGS)
pridump: pridump.o
- $(CC) -o pridump pridump.o -L. -lpri -lzap
+ $(CC) -o pridump pridump.o -L. -lpri -lzap $(CFLAGS)
include .depend
More information about the svn-commits
mailing list