aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/libpq++/Makefile
blob: e1d58847ee53d8a9ca8a9276769831b5eff9abbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#-------------------------------------------------------------------------
#
# Makefile
#    Makefile for libpq++ library
#
# Copyright (c) 1994, Regents of the University of California
#
#
# IDENTIFICATION
#    $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/Makefile,v 1.1.1.1 1996/07/09 06:22:18 scrappy Exp $
#
#-------------------------------------------------------------------------

CPP_LIB=	true

LIB=	pq++

MKDIR=	../mk
include $(MKDIR)/postgres.mk

CXXFLAGS = $(CFLAGS)

CXXFLAGS+= -I$(srcdir)/backend/include \
	-I$(srcdir)/backend \
	-I$(srcdir)/libpq \
	-I$(CURDIR) \

ifdef KRBVERS
CXXFLAGS+= $(KRBFLAGS)
endif


LIBSRCS =  pgenv.cc pgconnection.cc pglobject.cc

.PHONY: beforeinstall-headers install-headers

ifndef NO_BEFOREINSTL
beforeinstall-headers:
	@-if [ ! -d $(HEADERDIR) ]; then mkdir $(HEADERDIR); fi
else
beforeinstall-headers: .dosomething
endif

HEADERFILES = libpq++.H

install-headers: beforeinstall-headers
	@for i in ${HEADERFILES}; do \
		echo "Installing $(HEADERDIR)/$$i."; \
		$(INSTALL) -c -m 444 $$i $(HEADERDIR)/$$i; \
	done

install:: install-headers

include $(MKDIR)/postgres.lib.mk