view regexp/Makefile @ 61:b42fe5c9bd34 default tip

update to new versioned monetdb directories
author Niels Nes <niels@cwi.nl>
date Mon, 23 Sep 2024 13:34:22 +0200 (7 months ago)
parents 8122094c79b1
children
line wrap: on
line source
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0.  If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# Copyright 2013-2022 MonetDB B.V.

LIBDIR = $(shell pkgconf --variable=libdir monetdb5)

CFLAGS += $(shell pkgconf --cflags monetdb5 libpcre)
LDFLAGS += $(shell pkgconf --libs monetdb5 libpcre)

all: lib_regexp.so

lib_regexp.so: regexp.o
	$(CC) -fPIC -DPIC -o lib_regexp.so -shared regexp.o $(LDFLAGS) -Wl,-soname -Wl,lib_regexp.so

regexp.o: regexp.c
	$(CC) -fPIC -DPIC $(CFLAGS) -c regexp.c

doc: README.html README.pdf

README.html: README.rst
	rst2html -d README.rst > README.html

README.pdf: README.rst
	rst2pdf README.rst

clean:
	rm -f README.html README.pdf *.o *.so

install: lib_regexp.so
	cp lib_regexp.so $(DESTDIR)$(LIBDIR)/monetdb5

uninstall:
	rm -f  $(DESTDIR)$(LIBDIR)/monetdb5/lib_regexp.so

tar: MonetDB-regexp-1.2.tar.bz2
MonetDB-regexp-1.2.tar.bz2: README.rst Makefile regexp.c
	tar -cjf MonetDB-regexp-1.2.tar.bz2 --transform='s|^|MonetDB-regexp-1.2/|' README.rst Makefile regexp.c