diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog index 7d881b59a..48d10cc85 100644 --- a/winsup/mingw/ChangeLog +++ b/winsup/mingw/ChangeLog @@ -1,3 +1,8 @@ +2008-09-06 Chris Sutcliffe + + * Makefile.in: Adjust to new naming standard for MinGW while maintaining old + naming standard for Cygwin. + 2008-08-31 Keith Marshall Reimplement getopt.c to add getopt_long_only() function. diff --git a/winsup/mingw/Makefile.in b/winsup/mingw/Makefile.in index c9ced3cf6..d8ba90603 100644 --- a/winsup/mingw/Makefile.in +++ b/winsup/mingw/Makefile.in @@ -17,7 +17,6 @@ # This makefile requires GNU make. -PACKAGE = mingw-runtime VERSION = @PACKAGE_VERSION@ CYGRELEASE = 1 @@ -31,6 +30,14 @@ target_alias = @target_alias@ with_cross_host = @with_cross_host@ prefix = @prefix@ conf_prefix = @prefix@ +# FIXME: this needs an appropriate AC_SUBST +host_os = mingw32 + +ifneq (,$(findstring cygwin, $(target_alias))) +PACKAGE = mingw-runtime +else +PACKAGE = mingwrt +endif program_transform_name = @program_transform_name@ exec_prefix = @exec_prefix@ @@ -71,7 +78,7 @@ else inst_bindir:=$(bindir) inst_includedir:=$(includedir) inst_libdir:=$(libdir) -inst_docdir:=$(prefix)/doc/mingw-runtime +inst_docdir:=$(prefix)/doc/runtime endif endif @@ -345,12 +352,12 @@ distclean: clean -rm -f Makefile ifdef SNAPDATE - distdir=$(PACKAGE)-$(VERSION)-$(SNAPDATE) + distdir=$(PACKAGE)-$(VERSION)-$(SNAPDATE)-$(host_os) else ifneq (,$(findstring cygwin, $(target_alias))) distdir=$(PACKAGE)-$(VERSION)-$(CYGRELEASE) else - distdir=$(PACKAGE)-$(VERSION) + distdir=$(PACKAGE)-$(VERSION)-$(host_os) endif endif @@ -395,6 +402,7 @@ srcdist: $(TAR) $(TARFLAGS)cf $(distdir)-src$(TARFILEEXT) $(distdir) +ifneq (,$(findstring cygwin, $(target_alias))) bindist: rm -rf $(distdir) mkdir $(distdir) @@ -403,6 +411,17 @@ bindist: rm -f $(distdir).tar.gz cd $(distdir); \ $(TAR) $(TARFLAGS)cf ../$(distdir)$(TARFILEEXT) * +else +bindist: + rm -rf $(distdir) + mkdir $(distdir) + chmod 755 $(distdir) + $(MAKE) install prefix=$(shell pwd)/$(distdir)$(dist_prefix) + rm -f $(distdir).tar.gz + cd $(distdir); \ + $(TAR) $(TARFLAGS)cf ../$(distdir)-dev$(TARFILEEXT) * --exclude=bin; \ + $(TAR) $(TARFLAGS)cf ../$(distdir)-dll$(TARFILEEXT) bin/*.dll +endif snapshot: make dist SNAPDATE=$(shell date '+%Y%m%d') diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog index 0acae66ba..775e86ccd 100644 --- a/winsup/w32api/ChangeLog +++ b/winsup/w32api/ChangeLog @@ -1,3 +1,8 @@ +2008-09-06 Chris Sutcliffe + + * Makefile.in: Adjust to new naming standard for MinGW while maintaining old + naming standard for Cygwin. + 2008-08-30 Bo Yang * include/sspi.h: Fix PSecurityFunctionTableW structure. diff --git a/winsup/w32api/Makefile.in b/winsup/w32api/Makefile.in index aec693c47..148dcc339 100644 --- a/winsup/w32api/Makefile.in +++ b/winsup/w32api/Makefile.in @@ -19,6 +19,8 @@ host_alias = @host@ target_alias = @target@ prefix = @prefix@ conf_prefix = @prefix@ +# FIXME: this needs an appropriate AC_SUBST +host_os = mingw32 program_transform_name = @program_transform_name@ exec_prefix = @exec_prefix@ @@ -91,12 +93,12 @@ install uninstall: done ifdef SNAPDATE - distdir = $(PACKAGE)-$(VERSION)-$(SNAPDATE) + distdir = $(PACKAGE)-$(VERSION)-$(SNAPDATE)-$(host_os) else ifneq (,$(findstring cygwin, $(target_alias))) distdir=$(PACKAGE)-$(VERSION)-$(CYGRELEASE) else - distdir=$(PACKAGE)-$(VERSION) + distdir=$(PACKAGE)-$(VERSION)-$(host_os) endif endif @@ -126,6 +128,7 @@ srcdist: rm -f $(distdir)-src$(TARFILEEXT) $(TAR) $(TARFLAGS)cf $(distdir)-src$(TARFILEEXT) $(distdir) +ifneq (,$(findstring cygwin, $(target_alias))) bindist: rm -rf $(distdir) mkdir $(distdir) @@ -133,6 +136,15 @@ bindist: $(MAKE) install prefix=`pwd`/$(distdir)$(dist_prefix) exec_prefix=`pwd`/$(distdir)$(dist_prefix) rm -f $(distdir)$(TARFILEEXT) cd $(distdir); $(TAR) $(TARFLAGS)cf ../$(distdir)$(TARFILEEXT) * +else +bindist: + rm -rf $(distdir) + mkdir $(distdir) + chmod 755 $(distdir) + $(MAKE) install prefix=`pwd`/$(distdir)$(dist_prefix) exec_prefix=`pwd`/$(distdir)$(dist_prefix) + rm -f $(distdir)$(TARFILEEXT) + cd $(distdir); $(TAR) $(TARFLAGS)cf ../$(distdir)-dev$(TARFILEEXT) * +endif snapshot: make dist SNAPDATE=$(shell date '+%Y%m%d')