]> granicus.if.org Git - postgresql/blob - src/interfaces/ecpg/pgtypeslib/Makefile
Clean up MinGW def file generation
[postgresql] / src / interfaces / ecpg / pgtypeslib / Makefile
1 #-------------------------------------------------------------------------
2 #
3 # Makefile for ecpg pgtypes library
4 #
5 # Portions Copyright (c) 1996-2019, 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         -DFRONTEND $(CPPFLAGS)
23 override CFLAGS += $(PTHREAD_CFLAGS)
24
25 SHLIB_LINK_INTERNAL = -lpgcommon_shlib -lpgport_shlib
26 SHLIB_LINK += $(filter -lintl -lm, $(LIBS))
27
28 SHLIB_EXPORTS = exports.txt
29
30 OBJS= numeric.o datetime.o common.o dt_common.o timestamp.o interval.o \
31         $(WIN32RES)
32
33 all: all-lib
34
35 # Shared library stuff
36 include $(top_srcdir)/src/Makefile.shlib
37
38 install: all installdirs install-lib
39
40 installdirs: installdirs-lib
41
42 uninstall: uninstall-lib
43
44 clean distclean: clean-lib
45         rm -f $(OBJS)
46
47 maintainer-clean: distclean