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
|
|
|
#
|
2023-01-02 21:00:37 +01:00
|
|
|
# Portions Copyright (c) 1996-2023, 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 \
|
2022-08-23 05:39:30 +02:00
|
|
|
$(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))
|
2020-03-31 20:17:32 +02:00
|
|
|
SHLIB_PREREQS = submake-libpgport
|
2003-03-16 11:42:54 +01:00
|
|
|
|
2008-02-26 07:41:24 +01:00
|
|
|
SHLIB_EXPORTS = exports.txt
|
|
|
|
|
2019-11-05 23:41:07 +01:00
|
|
|
OBJS = \
|
|
|
|
$(WIN32RES) \
|
|
|
|
common.o \
|
|
|
|
datetime.o \
|
|
|
|
dt_common.o \
|
|
|
|
interval.o \
|
|
|
|
numeric.o \
|
|
|
|
timestamp.o
|
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)
|