* Makefile.in: Use bzip2 compression for Cygwin target.

This commit is contained in:
Earnie Boyd 2002-04-09 22:22:17 +00:00
parent 63cc0b39c8
commit 605280b192
2 changed files with 15 additions and 3 deletions

View File

@ -2,6 +2,7 @@
* moldname-crtdll.def: Remove CR from end of line.
* moldname-msvcrt.def: Ditto.
* Makefile.in: Use bzip2 compression for Cygwin target.
2002-04-04 Danny Smith <dannysmith@sourceforge.users.net>

View File

@ -112,7 +112,10 @@ DLLTOOL_FLAGS = --as $(AS_FOR_TARGET)
DLLWRAP = @DLLWRAP@
DLLWRAP_FOR_TARGET = $(DLLWRAP)
DLLWRAP_FLAGS = --dlltool $(DLLTOOL) --as $(AS) --driver-name $(CC)
TAR = tar
TARFLAGS = z
TARFILEEXT = .tar.gz
SUBDIRS := @SUBDIRS@
@ -137,7 +140,10 @@ FLAGS_TO_PASS:=\
inst_includedir="$(inst_includedir)" \
inst_libdir="$(inst_libdir)" \
prefix="$(prefix)" \
target_alias="$(target_alias)"
target_alias="$(target_alias)" \
TAR="$(TAR)" \
TARFLAGS="$(TARFLAGS)" \
TARFILEEXT="$(TARFILEEXT)"
CRT0S = crt1.o dllcrt1.o crt2.o dllcrt2.o CRT_noglob.o crtmt.o crtst.o
MINGW_OBJS = CRTglob.o CRTfmode.o CRTinit.o dirent.o dllmain.o gccmain.o \
@ -272,6 +278,11 @@ else
endif
endif
ifneq (,$(findstring cygwin, $(target_alias)))
TARFLAGS = j
TARFILEEXT = .tar.bz2
endif
dist: srcdist bindist
srcdist:
@ -291,7 +302,7 @@ srcdist:
cp $(srcdir)/include/sys/*.h $(distdir)/include/sys/
#end FIXME
rm -f $(distdir)-src.tar.gz
$(TAR) czf $(distdir)-src.tar.gz $(distdir)
$(TAR) $(TARFLAGS)cf $(distdir)-src$(TARFILEEXT) $(distdir)
bindist:
@ -301,7 +312,7 @@ bindist:
$(MAKE) install prefix=$(shell pwd)/$(distdir)
rm -f $(distdir).tar.gz
cd $(distdir); \
$(TAR) czf ../$(distdir).tar.gz *
$(TAR) $(TARFLAGS)cf ../$(distdir)$(TARFILEEXT) *
snapshot:
make dist SNAPDATE=$(shell date '+%Y%m%d')