4
4
#
5
5
# Copyright (c) 1994, Regents of the University of California
6
6
#
7
- # $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.31 2007/10/0314:42:16 meskes Exp $
7
+ # $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.32 2007/10/0315:04:23 tgl Exp $
8
8
#
9
9
# -------------------------------------------------------------------------
10
10
@@ -20,6 +20,7 @@ DLTYPE= library
20
20
override CPPFLAGS := -I../include -I$(top_srcdir ) /src/interfaces/ecpg/include\
21
21
-I$(libpq_srcdir ) -I$(top_srcdir ) /src/include/utils$(CPPFLAGS )
22
22
override CFLAGS +=$(PTHREAD_CFLAGS )
23
+
23
24
SHLIB_LINK = -L../ecpglib -lecpg -L../pgtypeslib -lpgtypes$(libpq ) -lm\
24
25
$(PTHREAD_LIBS )
25
26
@@ -37,7 +38,7 @@ all: all-lib
37
38
# Shared library stuff
38
39
include $(top_srcdir ) /src/Makefile.shlib
39
40
40
- snprintf.c :$(top_srcdir ) /src/port/%
41
+ snprintf.c :% : $(top_srcdir ) /src/port/%
41
42
rm -f$@ && $(LN_S ) $< .
42
43
43
44
# We need several not-quite-identical variants of .DEF files to build libecpg