44#
55# Copyright (c) 1994, Regents of the University of California
66#
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 $
88#
99# -------------------------------------------------------------------------
1010
@@ -20,6 +20,7 @@ DLTYPE= library
2020override CPPFLAGS := -I../include -I$(top_srcdir ) /src/interfaces/ecpg/include\
2121-I$(libpq_srcdir ) -I$(top_srcdir ) /src/include/utils$(CPPFLAGS )
2222override CFLAGS +=$(PTHREAD_CFLAGS )
23+
2324SHLIB_LINK = -L../ecpglib -lecpg -L../pgtypeslib -lpgtypes$(libpq ) -lm\
2425$(PTHREAD_LIBS )
2526
@@ -37,7 +38,7 @@ all: all-lib
3738# Shared library stuff
3839include $(top_srcdir ) /src/Makefile.shlib
3940
40- snprintf.c :$(top_srcdir ) /src/port/%
41+ snprintf.c :% : $(top_srcdir ) /src/port/%
4142rm -f$@ && $(LN_S ) $< .
4243
4344# We need several not-quite-identical variants of .DEF files to build libecpg