[Asterisk-cvs] asterisk-addons/res_sqlite3 Makefile,1.3,1.4
anthm at lists.digium.com
anthm at lists.digium.com
Fri Jun 10 09:39:51 CDT 2005
Update of /usr/cvsroot/asterisk-addons/res_sqlite3
In directory mongoose.digium.com:/tmp/cvs-serv4243
Modified Files:
Makefile
Log Message:
Fix Makefile so it builds right.
Index: Makefile
===================================================================
RCS file: /usr/cvsroot/asterisk-addons/res_sqlite3/Makefile,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- Makefile 21 Apr 2005 23:42:48 -0000 1.3
+++ Makefile 10 Jun 2005 13:41:53 -0000 1.4
@@ -1,26 +1,24 @@
ASTDIR=/usr/src/asterisk
ASTXS=$(ASTDIR)/contrib/scripts/astxs
-ASTMODS=/usr/lib/asterisk/modules
ASTSQLITE=/var/lib/asterisk/sqlite
SQLITE2=/usr/local/bin/sqlite
SQLITE3=/usr/local/bin/sqlite3
SQLITEBASE=http://www.sqlite.org/
SQLITEFILE=sqlite-3.2.1
-CFLAGS=-I sqlite -I sqlite/src
+CFLAGS=-I$(SQLITEFILE) -I $(SQLITEFILE)/src
all: .sqlite res_sqlite.so
-res_sqlite.so:
- ASTSRC=$(ASTDIR) $(ASTXS) "-append=CFLAGS:$(CFLAGS)" "-append=EXTOBJ:./sqlite/.libs/libsqlite3.a" res_sqlite.c
+res_sqlite.so:
+ ASTSRC=$(ASTDIR) $(ASTXS) "-append=CFLAGS:$(CFLAGS)" "-append=EXTOBJ:./$(SQLITEFILE)/.libs/libsqlite3.a" res_sqlite.c
.sqlite:
wget $(SQLITEBASE)/$(SQLITEFILE).tar.gz
tar -zxvf $(SQLITEFILE).tar.gz
- ln -s $(SQLITEFILE) sqlite
- cd sqlite && test -f ./config.status || ./configure --enable-threadsafe
- cd sqlite && make
+ cd $(SQLITEFILE) && test -f ./config.status || ./configure --enable-threadsafe
+ cd $(SQLITEFILE) && make
touch .sqlite
clean:
More information about the svn-commits
mailing list