Author: Roger Light Subject: Add a Makefile to build and install the library. Index: Makefile =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ Makefile 2010-02-09 10:43:38.286705438 +0000 @@ -0,0 +1,16 @@ +CC=cc +INSTALL=install +CFLAGS=$(shell pkg-config --cflags sqlite3 libpcre) -fPIC +LIBS=$(shell pkg-config --libs libpcre) +prefix=/usr + +.PHONY : install clean + +pcre.so : pcre.c + ${CC} -shared -o $@ ${CFLAGS} -W -Werror pcre.c ${LIBS} -Wl,-z,defs + +install : pcre.so + ${INSTALL} -pD -m755 pcre.so ${DESTDIR}${prefix}/lib/sqlite3/pcre.so + +clean : + -rm -f pcre.so