1#------------------------------------------------------------------------- 2# 3# Makefile for ecpg pgtypes library 4# 5# Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group 6# Portions Copyright (c) 1994, Regents of the University of California 7# 8# src/interfaces/ecpg/pgtypeslib/Makefile 9# 10#------------------------------------------------------------------------- 11 12subdir = src/interfaces/ecpg/pgtypeslib 13top_builddir = ../../../.. 14include $(top_builddir)/src/Makefile.global 15 16PGFILEDESC = "pgtypes - library for data type mapping" 17NAME= pgtypes 18SO_MAJOR_VERSION= 3 19SO_MINOR_VERSION= $(MAJORVERSION) 20 21override CPPFLAGS := -I../include -I$(top_srcdir)/src/interfaces/ecpg/include \ 22 -DFRONTEND $(CPPFLAGS) 23override CFLAGS += $(PTHREAD_CFLAGS) 24 25SHLIB_LINK_INTERNAL = -lpgcommon_shlib -lpgport_shlib 26SHLIB_LINK += $(filter -lintl -lm, $(LIBS)) 27SHLIB_PREREQS = submake-libpgport 28 29SHLIB_EXPORTS = exports.txt 30 31OBJS = \ 32 $(WIN32RES) \ 33 common.o \ 34 datetime.o \ 35 dt_common.o \ 36 interval.o \ 37 numeric.o \ 38 timestamp.o 39 40all: all-lib 41 42# Shared library stuff 43include $(top_srcdir)/src/Makefile.shlib 44 45install: all installdirs install-lib 46 47installdirs: installdirs-lib 48 49uninstall: uninstall-lib 50 51clean distclean: clean-lib 52 rm -f $(OBJS) 53 54maintainer-clean: distclean 55