mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +03:00
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.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.94 2003/02/03 14:24:07 momjian Exp $
|
||||
# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.95 2003/03/21 17:18:34 petere Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
@@ -31,12 +31,12 @@ endif
|
||||
|
||||
all: submake-libpgport postgres $(POSTGRES_IMP)
|
||||
|
||||
ifneq ($(PORTNAME), win)
|
||||
ifneq ($(PORTNAME), cygwin)
|
||||
|
||||
postgres: $(OBJS)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) $(export_dynamic) $^ $(LIBS) -o $@
|
||||
|
||||
else # win
|
||||
else # cygwin
|
||||
|
||||
postgres: $(OBJS) $(DLLINIT) postgres.def libpostgres.a
|
||||
$(DLLTOOL) --dllname $@$(X) --output-exp $@.exp --def postgres.def
|
||||
@@ -51,7 +51,7 @@ postgres.def: $(OBJS)
|
||||
libpostgres.a: postgres.def
|
||||
$(DLLTOOL) --dllname postgres.exe --def postgres.def --output-lib $@
|
||||
|
||||
endif # win
|
||||
endif # cygwin
|
||||
|
||||
ifeq ($(PORTNAME), aix)
|
||||
|
||||
@@ -126,7 +126,7 @@ distprep:
|
||||
##########################################################################
|
||||
|
||||
install: all installdirs install-bin
|
||||
ifeq ($(PORTNAME), win)
|
||||
ifeq ($(PORTNAME), cygwin)
|
||||
ifeq ($(MAKE_DLL), true)
|
||||
$(INSTALL_DATA) libpostgres.a $(DESTDIR)$(libdir)/libpostgres.a
|
||||
endif
|
||||
@@ -148,7 +148,7 @@ endif
|
||||
|
||||
installdirs:
|
||||
$(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(datadir)
|
||||
ifeq ($(PORTNAME), win)
|
||||
ifeq ($(PORTNAME), cygwin)
|
||||
ifeq ($(MAKE_DLL), true)
|
||||
$(mkinstalldirs) $(DESTDIR)$(libdir)
|
||||
endif
|
||||
@@ -165,7 +165,7 @@ uninstall:
|
||||
ifeq ($(MAKE_EXPORTS), true)
|
||||
rm -f $(DESTDIR)$(pkglibdir)/$(POSTGRES_IMP)
|
||||
endif
|
||||
ifeq ($(PORTNAME), win)
|
||||
ifeq ($(PORTNAME), cygwin)
|
||||
ifeq ($(MAKE_DLL), true)
|
||||
rm -f $(DESTDIR)$(libdir)/libpostgres.a
|
||||
endif
|
||||
@@ -183,7 +183,7 @@ clean:
|
||||
rm -f postgres$(X) $(POSTGRES_IMP) \
|
||||
$(top_srcdir)/src/include/parser/parse.h \
|
||||
$(top_builddir)/src/include/utils/fmgroids.h
|
||||
ifeq ($(PORTNAME), win)
|
||||
ifeq ($(PORTNAME), cygwin)
|
||||
rm -f postgres.dll postgres.def libpostgres.a
|
||||
endif
|
||||
for i in $(DIRS); do $(MAKE) -C $$i clean || exit; done
|
||||
|
||||
Reference in New Issue
Block a user