OSSP CVS Repository

ossp - ossp-pkg/pcre/Makefile.in
Not logged in
[Honeypot]  [Browse]  [Directory]  [Home]  [Login
[Reports]  [Search]  [Ticket]  [Timeline
  [Raw

ossp-pkg/pcre/Makefile.in
##
##  Makefile for PCRE library
##
@SET_MAKE@

PCRE_VERSION = @PCRE_VERSION@
OSSP_REVISION = 1

SHELL       = /bin/sh

CC          = @CC@
CPPFLAGS    = @CPPFLAGS@
CFLAGS      = @DEFS@ @CFLAGS@ -I.
LDFLAGS     = @LDFLAGS@ -L.
SHTOOL      = ./shtool
LIBTOOL     = ./libtool
RM          = rm -f

prefix      = @prefix@
exec_prefix = @exec_prefix@
bindir      = @bindir@
libdir      = @libdir@
includedir  = @includedir@
mandir      = @mandir@

all: libpcre.la

.SUFFIXES:
.SUFFIXES: .c .o .lo

.c.o:
	$(CC) $(CPPFLAGS) $(CFLAGS) -c $<
.c.lo:
	$(LIBTOOL) --quiet --mode=compile $(CC) $(CPPFLAGS) $(CFLAGS) -c $<

libpcre.la: pcre.lo pcre_get.lo pcre_maketables.lo pcre_study.lo pcre_match.lo
	$(LIBTOOL) --quiet --mode=link $(CC) -o libpcre.la \
	           pcre.lo pcre_get.lo pcre_maketables.lo pcre_study.lo pcre_match.lo -rpath $(libdir)

libpcreposix.la: pcreposix.lo
	$(LIBTOOL) --quiet --mode=link $(CC) -o libpcreposix.la \
	           pcreposix.lo -rpath $(libdir)

pcre_dftables: pcre_dftables.o
	$(CC) $(LDFLAGS) -o pcre_dftables pcre_dftables.o

pcre_chartables.c: pcre_dftables
	./pcre_dftables >pcre_chartables.c

pcre.lo: pcre_chartables.c pcre.c pcre.h pcre_internal.h
pcreposix.lo: pcreposix.c pcreposix.h pcre_internal.h pcre.h
pcre_maketables.lo: pcre_maketables.c pcre.h pcre_internal.h
pcre_get.lo: pcre_get.c pcre.h pcre_internal.h
pcre_study.lo: pcre_study.c pcre.h pcre_internal.h
pcre_match.lo: pcre_match.c pcre.h pcre_internal.h

pcre_test: pcre_test.o libpcre.la libpcreposix.la
	$(LIBTOOL) --quiet --mode=link $(CC) $(LDFLAGS) -o pcre_test pcre_test.o libpcre.la libpcreposix.la

pcregrep: pcregrep.o libpcre.la
	$(LIBTOOL) --quiet --mode=link $(CC) $(LDFLAGS) -o pcregrep pcregrep.o libpcre.la

check: test
test: all pcre_test
	./pcre_test.sh 1 2 3

install: all
	$(SHTOOL) mkdir -f -p -m 755 $(bindir)
	$(SHTOOL) mkdir -f -p -m 755 $(includedir)
	$(SHTOOL) mkdir -f -p -m 755 $(libdir)
	$(SHTOOL) mkdir -f -p -m 755 $(mandir)/man3
	$(SHTOOL) install -c -m 755 pcre-config $(bindir)/pcre-config
	$(SHTOOL) install -c -m 644 pcre.h $(includedir)/pcre.h
	$(SHTOOL) install -c -m 644 pcreposix.h $(includedir)/pcreposix.h
	$(SHTOOL) install -c -m 644 pcre.3 $(mandir)/man3/pcre.3
	$(SHTOOL) install -c -m 644 pcreposix.3 $(mandir)/man3/pcreposix.3
	@$(LIBTOOL) --mode=install $(SHTOOL) install -c -m 644 libpcre.la $(libdir)/libpcre.la
	@$(LIBTOOL) --mode=install $(SHTOOL) install -c -m 644 libpcreposix.la $(libdir)/libpcreposix.la

clean:
	$(RM) *.la *.lo *.o
	$(RM) pcregrep

distclean: clean
	$(RM) -r .libs
	$(RM) pcre_test pcre_dftables
	$(RM) config.cache config.status config.log config.h
	$(RM) libtool
	$(RM) pcre-config
	$(RM) Makefile

realclean: distclean
	$(RM) config.sub config.guess
	$(RM) configure shtool ltmain.sh libtool.m4

dist: distclean
	$(SHTOOL) fixperm *; \
	$(SHTOOL) tarball -o ossp-pcre-$(PCRE_VERSION)-$(OSSP_REVISION).tar.gz \
	                  -e 'CVS,\.cvsignore,^\.' -c 'gzip -9' -u pcre -g ossp .


CVSTrac 2.0.1