~vcs-imports/mammoth-replicator/trunk

« back to all changes in this revision

Viewing changes to src/interfaces/ecpg/pgtypeslib/Makefile

  • Committer: alvherre
  • Date: 2005-12-16 21:24:52 UTC
  • Revision ID: svn-v4:db760fc0-0f08-0410-9d63-cc6633f64896:trunk:1
Initial import of the REL8_0_3 sources from the Pgsql CVS repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#-------------------------------------------------------------------------
 
2
#
 
3
# Makefile for ecpg pgtypes library
 
4
#
 
5
# Copyright (c) 1994, Regents of the University of California
 
6
#
 
7
# $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.23.4.1 2005-03-13 22:04:45 momjian Exp $
 
8
#
 
9
#-------------------------------------------------------------------------
 
10
 
 
11
subdir = src/interfaces/ecpg/pgtypeslib
 
12
top_builddir = ../../../..
 
13
include $(top_builddir)/src/Makefile.global
 
14
 
 
15
NAME= pgtypes
 
16
SO_MAJOR_VERSION= 2
 
17
SO_MINOR_VERSION= 0
 
18
DLTYPE= library
 
19
 
 
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
 
23
 
 
24
# Need to recomple any libpgport object files
 
25
LIBS := $(patsubst -lpgport,, $(LIBS))
 
26
 
 
27
SHLIB_LINK += -lm
 
28
 
 
29
OBJS= numeric.o datetime.o common.o dt_common.o timestamp.o interval.o \
 
30
        pgstrcasecmp.o \
 
31
        $(filter rint.o, $(LIBOBJS))
 
32
 
 
33
all: all-lib
 
34
 
 
35
# Shared library stuff
 
36
include $(top_srcdir)/src/Makefile.shlib
 
37
 
 
38
rint.c: %.c : $(top_srcdir)/src/port/%.c
 
39
        rm -f $@ && $(LN_S) $< .
 
40
 
 
41
pgstrcasecmp.c: %.c : $(top_srcdir)/src/port/%.c
 
42
        rm -f $@ && $(LN_S) $< .
 
43
 
 
44
install: all installdirs install-lib
 
45
 
 
46
installdirs:
 
47
        $(mkinstalldirs) $(DESTDIR)$(libdir)
 
48
 
 
49
uninstall: uninstall-lib
 
50
 
 
51
clean distclean maintainer-clean: clean-lib
 
52
        rm -f $(OBJS) rint.c pgstrcasecmp.c
 
53
 
 
54
depend dep:
 
55
        $(CC) -MM $(CFLAGS) *.c >depend
 
56
 
 
57
ifeq (depend,$(wildcard depend))
 
58
include depend
 
59
endif