1
#-------------------------------------------------------------------------
3
# Makefile for ecpg pgtypes library
5
# Portions Copyright (c) 1996-2013, PostgreSQL Global Development Group
6
# Portions Copyright (c) 1994, Regents of the University of California
8
# src/interfaces/ecpg/pgtypeslib/Makefile
10
#-------------------------------------------------------------------------
12
subdir = src/interfaces/ecpg/pgtypeslib
13
top_builddir = ../../../..
14
include $(top_builddir)/src/Makefile.global
20
override CPPFLAGS := -I../include -I$(top_srcdir)/src/interfaces/ecpg/include \
21
-I$(top_srcdir)/src/include/utils -I$(libpq_srcdir) $(CPPFLAGS)
22
override CFLAGS += $(PTHREAD_CFLAGS)
24
# Need to recompile any libpgport object files
25
LIBS := $(filter-out -lpgport, $(LIBS))
29
SHLIB_EXPORTS = exports.txt
31
OBJS= numeric.o datetime.o common.o dt_common.o timestamp.o interval.o \
33
$(filter rint.o snprintf.o, $(LIBOBJS))
37
# Shared library stuff
38
include $(top_srcdir)/src/Makefile.shlib
40
# We use some port modules verbatim, but since we need to
41
# compile with appropriate options to build a shared lib, we can't
42
# necessarily use the same object files as the backend uses. Instead,
43
# symlink the source files in here and build our own object file.
45
pgstrcasecmp.c rint.c snprintf.c: % : $(top_srcdir)/src/port/%
46
rm -f $@ && $(LN_S) $< .
48
install: all installdirs install-lib
50
installdirs: installdirs-lib
52
uninstall: uninstall-lib
54
clean distclean: clean-lib
55
rm -f $(OBJS) pgstrcasecmp.c rint.c snprintf.c
57
maintainer-clean: distclean maintainer-clean-lib