1
#-------------------------------------------------------------------------
3
# Makefile for ecpg pgtypes library
5
# Copyright (c) 1994, Regents of the University of California
7
# $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.23.4.1 2005-03-13 22:04:45 momjian Exp $
9
#-------------------------------------------------------------------------
11
subdir = src/interfaces/ecpg/pgtypeslib
12
top_builddir = ../../../..
13
include $(top_builddir)/src/Makefile.global
20
override CPPFLAGS := -I$(top_srcdir)/src/interfaces/ecpg/include \
21
-I$(top_srcdir)/src/include/utils -I$(libpq_srcdir) $(CPPFLAGS) \
22
$(PTHREAD_CFLAGS) -DFRONTEND
24
# Need to recomple any libpgport object files
25
LIBS := $(patsubst -lpgport,, $(LIBS))
29
OBJS= numeric.o datetime.o common.o dt_common.o timestamp.o interval.o \
31
$(filter rint.o, $(LIBOBJS))
35
# Shared library stuff
36
include $(top_srcdir)/src/Makefile.shlib
38
rint.c: %.c : $(top_srcdir)/src/port/%.c
39
rm -f $@ && $(LN_S) $< .
41
pgstrcasecmp.c: %.c : $(top_srcdir)/src/port/%.c
42
rm -f $@ && $(LN_S) $< .
44
install: all installdirs install-lib
47
$(mkinstalldirs) $(DESTDIR)$(libdir)
49
uninstall: uninstall-lib
51
clean distclean maintainer-clean: clean-lib
52
rm -f $(OBJS) rint.c pgstrcasecmp.c
55
$(CC) -MM $(CFLAGS) *.c >depend
57
ifeq (depend,$(wildcard depend))