per the example of libpq/Makefile.
#
# Copyright (c) 1994, Regents of the University of California
#
-# $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.34 2007/10/04 07:58:15 meskes Exp $
+# $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.35 2007/10/04 18:32:07 tgl Exp $
#
#-------------------------------------------------------------------------
OBJS= informix.o $(filter snprintf.o, $(LIBOBJS))
-ifneq ($(PORTNAME), win32)
+ifeq ($(PORTNAME), win32)
DLL_DEFFILE=libecpg_compatdll.def
endif
#
# Copyright (c) 1994, Regents of the University of California
#
-# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.50 2007/10/04 07:58:15 meskes Exp $
+# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.51 2007/10/04 18:32:07 tgl Exp $
#
#-------------------------------------------------------------------------
# thread.c is needed only for non-WIN32 implementation of path.c
ifneq ($(PORTNAME), win32)
OBJS += thread.o
-DLL_DEFFILE=libecpgdll.def
endif
SHLIB_LINK = -L../pgtypeslib -lpgtypes $(libpq) -lm $(PTHREAD_LIBS)
ifeq ($(PORTNAME), win32)
# Link to shfolder.dll instead of shell32.dll
SHLIB_LINK += -lshfolder
+DLL_DEFFILE=libecpgdll.def
endif
all: def-files all-lib
#
# Copyright (c) 1994, Regents of the University of California
#
-# $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.36 2007/10/04 07:58:15 meskes Exp $
+# $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.37 2007/10/04 18:32:07 tgl Exp $
#
#-------------------------------------------------------------------------
pgstrcasecmp.o \
$(filter rint.o snprintf.o, $(LIBOBJS))
-ifneq ($(PORTNAME), win32)
+ifeq ($(PORTNAME), win32)
DLL_DEFFILE=libpgtypesdll.def
endif