summaryrefslogtreecommitdiff
path: root/src/Makefile.shlib
diff options
context:
space:
mode:
authorPeter Eisentraut2003-03-21 17:18:34 +0000
committerPeter Eisentraut2003-03-21 17:18:34 +0000
commit1a7f4ed5252dd08d9bbf26a67ddf22c38528c636 (patch)
tree4daa4d5d3dcc8d050bf8d8afbe2d4fc568455a3c /src/Makefile.shlib
parent93331d8318325305cad9c5224eb4b86663214846 (diff)
Make "win" a separate port from "cygwin". This means you can now
configure under native Windows (MinGW that is), but you won't get very far compiling yet. The dynaloader files are from Jan Wieck's patch set.
Diffstat (limited to 'src/Makefile.shlib')
-rw-r--r--src/Makefile.shlib22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/Makefile.shlib b/src/Makefile.shlib
index 5e1f0aa258..2b07f2abaa 100644
--- a/src/Makefile.shlib
+++ b/src/Makefile.shlib
@@ -6,7 +6,7 @@
# Copyright (c) 1998, Regents of the University of California
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.66 2003/01/11 17:22:19 tgl Exp $
+# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.67 2003/03/21 17:18:34 petere Exp $
#
#-------------------------------------------------------------------------
@@ -194,7 +194,7 @@ ifeq ($(PORTNAME), unixware)
LINK.shared += -Wl,-z,text -Wl,-h,$(soname)
endif
-ifeq ($(PORTNAME), win)
+ifeq ($(PORTNAME), cygwin)
shlib := $(NAME)$(DLSUFFIX)
endif
@@ -225,7 +225,7 @@ all-static-lib: lib$(NAME).a
all-shared-lib: $(shlib)
-ifneq ($(PORTNAME), win)
+ifneq ($(PORTNAME), cygwin)
ifndef LORDER
MK_NO_LORDER := true
@@ -239,12 +239,12 @@ else
endif
$(RANLIB) $@
-endif # not win
+endif # not cygwin
ifeq ($(enable_shared), yes)
ifneq ($(PORTNAME), beos)
-ifneq ($(PORTNAME), win)
+ifneq ($(PORTNAME), cygwin)
ifneq ($(PORTNAME), aix)
# Normal case
@@ -270,9 +270,9 @@ $(shlib): lib$(NAME).a
endif # PORTNAME == aix
-else # PORTNAME == win
+else # PORTNAME == cygwin
-# WIN case
+# Cygwin case
$(shlib) lib$(NAME).a: $(OBJS) $(DLLINIT)
$(DLLTOOL) --export-all --output-def $(NAME).def $(OBJS)
$(DLLWRAP) -o $(shlib) --dllname $(shlib) --def $(NAME).def $(OBJS) $(DLLINIT) $(SHLIB_LINK)
@@ -281,7 +281,7 @@ $(shlib) lib$(NAME).a: $(OBJS) $(DLLINIT)
$(DLLINIT): $(DLLINIT:%.o=%.c)
$(MAKE) -C $(@D) $(@F)
-endif # PORTNAME == win
+endif # PORTNAME == cygwin
else # PORTNAME == beos
@@ -308,7 +308,7 @@ install-lib-static: lib$(NAME).a
ifeq ($(enable_shared), yes)
install-lib-shared: $(shlib)
$(INSTALL_SHLIB) $< $(DESTDIR)$(libdir)/$(shlib)
-ifneq ($(PORTNAME), win)
+ifneq ($(PORTNAME), cygwin)
ifneq ($(shlib), lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION))
cd $(DESTDIR)$(libdir) && \
rm -f lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION) && \
@@ -320,7 +320,7 @@ ifneq ($(shlib), lib$(NAME)$(DLSUFFIX))
$(LN_S) $(shlib) lib$(NAME)$(DLSUFFIX)
endif
-endif # not win
+endif # not cygwin
endif # enable_shared
@@ -351,6 +351,6 @@ ifdef EXPSUFF
rm -f lib$(NAME)$(EXPSUFF)
endif
endif
-ifeq ($(PORTNAME), win)
+ifeq ($(PORTNAME), cygwin)
rm -f $(NAME).dll $(NAME).def
endif