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