Makefile 1.2 KB
Newer Older
1 2 3 4 5 6
#-------------------------------------------------------------------------
#
# Makefile for ecpg library
#
# Copyright (c) 1994, Regents of the University of California
#
7
# $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.18 2004/04/30 04:14:06 momjian Exp $
8 9 10 11 12 13 14 15 16
#
#-------------------------------------------------------------------------

subdir = src/interfaces/ecpg/pgtypeslib
top_builddir = ../../../..
include $(top_builddir)/src/Makefile.global

NAME= pgtypes
SO_MAJOR_VERSION= 1
17
SO_MINOR_VERSION= 2
18

19 20 21 22
override CPPFLAGS := -I$(top_srcdir)/src/interfaces/ecpg/include \
	-I$(top_srcdir)/src/include/utils -I$(libpq_srcdir) $(CPPFLAGS) \
	$(PTHREAD_CFLAGS) -DFRONTEND

23
SHLIB_LINK += -lm
24

25 26
OBJS= numeric.o datetime.o common.o dt_common.o timestamp.o interval.o \
      $(filter rint.o, $(LIBOBJS))
27 28 29 30 31 32

all: all-lib

# Shared library stuff
include $(top_srcdir)/src/Makefile.shlib

33 34 35
rint.c: %.c : $(top_srcdir)/src/port/%.c
	rm -f $@ && $(LN_S) $< .

36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
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