66# Copyright (c) 1998, Regents of the University of California
77#
88# IDENTIFICATION
9- # $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.66 2003/01/11 17:22:19 tgl Exp $
9+ # $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.67 2003/03/21 17:18:34 petere Exp $
1010#
1111#-------------------------------------------------------------------------
1212
@@ -194,7 +194,7 @@ ifeq ($(PORTNAME), unixware)
194194 LINK.shared+= -Wl,-z,text -Wl,-h,$(soname)
195195endif
196196
197- ifeq ($(PORTNAME),win )
197+ ifeq ($(PORTNAME),cygwin )
198198 shlib:= $(NAME)$(DLSUFFIX)
199199endif
200200
@@ -225,7 +225,7 @@ all-static-lib: lib$(NAME).a
225225
226226all-shared-lib: $(shlib)
227227
228- ifneq ($(PORTNAME),win )
228+ ifneq ($(PORTNAME),cygwin )
229229
230230ifndef LORDER
231231MK_NO_LORDER := true
@@ -239,12 +239,12 @@ else
239239endif
240240$(RANLIB) $@
241241
242- endif # notwin
242+ endif # notcygwin
243243
244244ifeq ($(enable_shared), yes)
245245
246246ifneq ($(PORTNAME), beos)
247- ifneq ($(PORTNAME),win )
247+ ifneq ($(PORTNAME),cygwin )
248248ifneq ($(PORTNAME), aix)
249249
250250# Normal case
@@ -270,9 +270,9 @@ $(shlib): lib$(NAME).a
270270
271271endif # PORTNAME == aix
272272
273- else # PORTNAME ==win
273+ else # PORTNAME ==cygwin
274274
275- #WIN case
275+ #Cygwin case
276276$(shlib) lib$(NAME).a: $(OBJS) $(DLLINIT)
277277$(DLLTOOL) --export-all --output-def $(NAME).def $(OBJS)
278278$(DLLWRAP) -o $(shlib) --dllname $(shlib) --def $(NAME).def $(OBJS) $(DLLINIT) $(SHLIB_LINK)
@@ -281,7 +281,7 @@ $(shlib) lib$(NAME).a: $(OBJS) $(DLLINIT)
281281$(DLLINIT): $(DLLINIT:%.o=%.c)
282282$(MAKE) -C $(@D) $(@F)
283283
284- endif # PORTNAME ==win
284+ endif # PORTNAME ==cygwin
285285
286286else # PORTNAME == beos
287287
@@ -308,7 +308,7 @@ install-lib-static: lib$(NAME).a
308308ifeq ($(enable_shared), yes)
309309install-lib-shared: $(shlib)
310310$(INSTALL_SHLIB) $< $(DESTDIR)$(libdir)/$(shlib)
311- ifneq ($(PORTNAME),win )
311+ ifneq ($(PORTNAME),cygwin )
312312ifneq ($(shlib), lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION))
313313cd $(DESTDIR)$(libdir) && \
314314rm -f lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION) && \
@@ -320,7 +320,7 @@ ifneq ($(shlib), lib$(NAME)$(DLSUFFIX))
320320$(LN_S) $(shlib) lib$(NAME)$(DLSUFFIX)
321321endif
322322
323- endif # notwin
323+ endif # notcygwin
324324endif # enable_shared
325325
326326
@@ -351,6 +351,6 @@ ifdef EXPSUFF
351351rm -f lib$(NAME)$(EXPSUFF)
352352endif
353353endif
354- ifeq ($(PORTNAME),win )
354+ ifeq ($(PORTNAME),cygwin )
355355rm -f $(NAME).dll $(NAME).def
356356endif