2003-03-16 11:42:54 +01:00
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
#
|
2004-07-13 02:06:46 +02:00
|
|
|
# Makefile for ecpg pgtypes library
|
2003-03-16 11:42:54 +01:00
|
|
|
#
|
2019-01-02 18:44:25 +01:00
|
|
|
# Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
|
2007-10-05 03:51:40 +02:00
|
|
|
# Portions Copyright (c) 1994, Regents of the University of California
|
2003-03-16 11:42:54 +01:00
|
|
|
#
|
2010-09-20 22:08:53 +02:00
|
|
|
# src/interfaces/ecpg/pgtypeslib/Makefile
|
2003-03-16 11:42:54 +01:00
|
|
|
#
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
|
|
|
subdir = src/interfaces/ecpg/pgtypeslib
|
|
|
|
top_builddir = ../../../..
|
|
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
|
2014-07-14 20:07:52 +02:00
|
|
|
PGFILEDESC = "pgtypes - library for data type mapping"
|
2003-03-16 11:42:54 +01:00
|
|
|
NAME= pgtypes
|
2007-10-03 15:20:19 +02:00
|
|
|
SO_MAJOR_VERSION= 3
|
2016-08-16 19:58:44 +02:00
|
|
|
SO_MINOR_VERSION= $(MAJORVERSION)
|
2003-03-16 11:42:54 +01:00
|
|
|
|
2007-09-27 21:53:44 +02:00
|
|
|
override CPPFLAGS := -I../include -I$(top_srcdir)/src/interfaces/ecpg/include \
|
2015-04-25 01:29:09 +02:00
|
|
|
-DFRONTEND $(CPPFLAGS)
|
2005-12-06 06:26:21 +01:00
|
|
|
override CFLAGS += $(PTHREAD_CFLAGS)
|
2004-04-30 06:14:06 +02:00
|
|
|
|
2018-09-28 20:28:19 +02:00
|
|
|
SHLIB_LINK_INTERNAL = -lpgcommon_shlib -lpgport_shlib
|
2018-09-26 22:47:44 +02:00
|
|
|
SHLIB_LINK += $(filter -lintl -lm, $(LIBS))
|
2003-03-16 11:42:54 +01:00
|
|
|
|
2008-02-26 07:41:24 +01:00
|
|
|
SHLIB_EXPORTS = exports.txt
|
|
|
|
|
2003-05-09 18:26:29 +02:00
|
|
|
OBJS= numeric.o datetime.o common.o dt_common.o timestamp.o interval.o \
|
2017-10-11 17:27:57 +02:00
|
|
|
$(WIN32RES)
|
2003-03-16 11:42:54 +01:00
|
|
|
|
2008-02-26 07:41:24 +01:00
|
|
|
all: all-lib
|
2003-03-16 11:42:54 +01:00
|
|
|
|
|
|
|
# Shared library stuff
|
|
|
|
include $(top_srcdir)/src/Makefile.shlib
|
|
|
|
|
|
|
|
install: all installdirs install-lib
|
|
|
|
|
2008-04-07 16:15:58 +02:00
|
|
|
installdirs: installdirs-lib
|
2003-03-16 11:42:54 +01:00
|
|
|
|
|
|
|
uninstall: uninstall-lib
|
|
|
|
|
2007-10-05 03:51:40 +02:00
|
|
|
clean distclean: clean-lib
|
2018-09-28 20:28:19 +02:00
|
|
|
rm -f $(OBJS)
|
2007-10-05 03:51:40 +02:00
|
|
|
|
2019-10-20 10:19:13 +02:00
|
|
|
maintainer-clean: distclean
|