File: Makefile.diff

package info (click to toggle)
sqlite3-pcre 0~git20070120091816%2B4229ecc-1
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 76 kB
  • ctags: 12
  • sloc: ansic: 99; makefile: 28
file content (24 lines) | stat: -rw-r--r-- 730 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Author: Roger Light <roger@atchoo.org>
Subject: Add a Makefile to build and install the library.
Index: sqlite3-pcre/Makefile
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ sqlite3-pcre/Makefile	2010-02-09 10:43:38.286705438 +0000
@@ -0,0 +1,17 @@
+CC=cc
+INSTALL=install
+CFLAGS?=
+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 $@ ${CPPFLAGS} ${CFLAGS} -W -Werror pcre.c ${LIBS} ${LDFLAGS} -Wl,-z,defs
+
+install : pcre.so
+	${INSTALL} -pD -m755 pcre.so ${DESTDIR}${prefix}/lib/sqlite3/pcre.so
+
+clean :
+	-rm -f pcre.so