2003-03-16 11:42:54 +01:00
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Makefile for ecpg library
|
|
|
|
#
|
|
|
|
# Copyright (c) 1994, Regents of the University of California
|
|
|
|
#
|
2004-04-23 20:15:55 +02:00
|
|
|
# $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.17 2004/04/23 18:15:54 momjian Exp $
|
2003-03-16 11:42:54 +01:00
|
|
|
#
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
|
|
|
subdir = src/interfaces/ecpg/pgtypeslib
|
|
|
|
top_builddir = ../../../..
|
|
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
|
|
|
|
NAME= pgtypes
|
|
|
|
SO_MAJOR_VERSION= 1
|
2004-02-24 17:07:49 +01:00
|
|
|
SO_MINOR_VERSION= 2
|
2003-03-16 11:42:54 +01:00
|
|
|
|
2004-04-23 20:15:55 +02:00
|
|
|
override CPPFLAGS := -I$(top_srcdir)/src/interfaces/ecpg/include -I$(top_srcdir)/src/include/utils -I$(libpq_srcdir) $(CPPFLAGS) $(PTHREAD_CFLAGS)
|
2003-08-07 06:03:18 +02:00
|
|
|
SHLIB_LINK += -lm
|
2003-03-16 11:42:54 +01:00
|
|
|
|
2003-05-09 18:26:29 +02:00
|
|
|
OBJS= numeric.o datetime.o common.o dt_common.o timestamp.o interval.o \
|
|
|
|
$(filter rint.o, $(LIBOBJS))
|
2003-03-16 11:42:54 +01:00
|
|
|
|
|
|
|
all: all-lib
|
|
|
|
|
|
|
|
# Shared library stuff
|
|
|
|
include $(top_srcdir)/src/Makefile.shlib
|
|
|
|
|
2003-05-10 04:05:50 +02:00
|
|
|
rint.c: %.c : $(top_srcdir)/src/port/%.c
|
|
|
|
rm -f $@ && $(LN_S) $< .
|
|
|
|
|
2003-03-16 11:42:54 +01:00
|
|
|
install: all installdirs install-lib
|
|
|
|
|
|
|
|
installdirs:
|
|
|
|
$(mkinstalldirs) $(DESTDIR)$(libdir)
|
|
|
|
|
|
|
|
uninstall: uninstall-lib
|
|
|
|
|
|
|
|
clean distclean maintainer-clean: clean-lib
|
|
|
|
rm -f $(OBJS)
|
|
|
|
|
|
|
|
depend dep:
|
|
|
|
$(CC) -MM $(CFLAGS) *.c >depend
|
|
|
|
|
|
|
|
ifeq (depend,$(wildcard depend))
|
|
|
|
include depend
|
|
|
|
endif
|