Skip to content

Commit

Permalink
Add simple Makefile.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralight committed Feb 7, 2010
1 parent 4229ecc commit 02aa8fe
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
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

0 comments on commit 02aa8fe

Please sign in to comment.