newlib/winsup/w32api/Makefile.in
Earnie Boyd ced1e577b7 * include/w32api.h: Change to version 2.0 to reflect the change
in the license.
	* README: Renamed.
	* README.w32api: Renamed from README.  Modified license to remove
	the restriction of notifying the author based on the fact that the
	author is unreachable at the notified address.
	* Makefile.in (VERSION): Change to 2.0.
2002-06-14 13:46:12 +00:00

158 lines
3.1 KiB
Makefile

#
# Makefile.in
#
# This file is part of a free library for the Win32 API.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# start config section
SHELL = @SHELL@
srcdir = @srcdir@
VPATH = @srcdir@
build_alias = @build_alias@
host_alias = @host_alias@
target_alias = @target_alias@
prefix = @prefix@
conf_prefix = @prefix@
program_transform_name = @program_transform_name@
exec_prefix = @exec_prefix@
bindir = @bindir@
libdir = @libdir@
tooldir = $(exec_prefix)/$(target_alias)
datadir = @datadir@
infodir = @infodir@
includedir = @includedir@
CC = @CC@
CC_FOR_TARGET = $(CC)
CFLAGS = @CFLAGS@
DLLTOOL = @DLLTOOL@
AS = @AS@
AS_FOR_TARGET = $(AS_FOR_TARGET)
WINDRES = @WINDRES@
RANLIB = @RANLIB@
AR = @AR@
LD = @LD@
TAR = tar
TARFLAGS = z
TARFILEEXT = .tar.gz
FLAGS_TO_PASS = \
AS="$(AS)" \
CC="$(CC)" \
CPPFLAGS="$(CPPFLAGS)" \
CFLAGS="$(CFLAGS)" \
CXXFLAGS="$(CXXFLAGS)" \
AR="$(AR)" \
RANLIB="$(RANLIB)" \
LD="$(LD)" \
DLLTOOL="$(DLLTOOL)" \
TAR="$(TAR)" \
TARFLAGS="$(TARFLAGS)" \
TARFILEEXT="$(TARFILEEXT)" \
WINDRES="$(WINDRES)"
# end config section
SUBDIRS = lib
PACKAGE = w32api
VERSION = 2.0
CYGRELEASE = 1
DIST_FILES = Makefile.in configure.in configure config.guess config.sub \
install-sh README.w32api ChangeLog TODO CONTRIBUTIONS
all: lib
%-subdirs:
for i in $(SUBDIRS); do \
$(MAKE) $(FLAGS_TO_PASS) -C $$i $*; \
done
lib:
$(MAKE) $(FLAGS_TO_PASS) -C $@
test:
$(MAKE) -C lib test $(FLAGS_TO_PASS)
install uninstall:
for i in $(SUBDIRS); do \
(cd $$i; $(MAKE) $@); \
done
ifdef SNAPDATE
distdir = $(PACKAGE)-$(VERSION)-$(SNAPDATE)
else
ifneq (,$(findstring cygwin, $(target_alias)))
distdir=$(PACKAGE)-$(VERSION)-$(CYGRELEASE)
else
distdir=$(PACKAGE)-$(VERSION)
endif
endif
ifneq (,$(findstring mingw, $(target_alias)))
dist_prefix=
else
dist_prefix=/$(conf_prefix)
endif
ifneq (,$(findstring cygwin, $(target_alias)))
TARFLAGS = j
TARFILEEXT = .tar.bz2
endif
dist: srcdist bindist
srcdist:
rm -rf $(distdir)
mkdir $(distdir)
chmod 755 $(distdir)
for i in $(DIST_FILES); do \
cp -p $(srcdir)/$$i $(distdir)/$$i ; \
done
for i in $(SUBDIRS); do \
(cd $$i; $(MAKE) distdir=../$(distdir) dist); \
done
rm -f $(distdir)-src$(TARFILEEXT)
$(TAR) $(TARFLAGS)cf $(distdir)-src$(TARFILEEXT) $(distdir)
bindist:
rm -rf $(distdir)
mkdir $(distdir)
chmod 755 $(distdir)
$(MAKE) install prefix=../$(distdir)$(dist_prefix) exec_prefix=../$(distdir)$(dist_prefix)
rm -f $(distdir)$(TARFILEEXT)
cd $(distdir); $(TAR) $(TARFLAGS)cf ../$(distdir)$(TARFILEEXT) *
snapshot:
make dist SNAPDATE=$(shell date '+%Y%m%d')
Makefile: Makefile.in config.status configure
$(SHELL) config.status
mostlyclean-top:
rm -f *~
clean-top: mostlyclean-top
rm -rf $(distdir)
rm -f $(distdir)*$(TARFILEEXT)
maintainer-clean-top:
mostlyclean: mostlyclean-top mostlyclean-subdirs
clean: mostlyclean-top clean-subdirs
distclean: clean-top
rm -f Makefile config.status config.log config.cache TAGS *~
$(MAKE) -C lib distclean
maintainer-clean: maintainer-clean-subdirs
.PHONY: lib test