2011-12-13 04:02:33 +08:00
|
|
|
# @configure_input@
|
2000-02-18 03:38:33 +08:00
|
|
|
#
|
|
|
|
#
|
2011-12-13 04:02:33 +08:00
|
|
|
# Makefile.in
|
|
|
|
#
|
|
|
|
# This file is part of a free library for the Win32 API.
|
2012-01-15 20:20:09 +08:00
|
|
|
|
|
|
|
PACKAGE = @PACKAGE_TARNAME@
|
|
|
|
VERSION = @PACKAGE_VERSION@
|
|
|
|
RELEASE = @PACKAGE_RELEASE@
|
|
|
|
|
2011-12-13 04:02:33 +08:00
|
|
|
# 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.
|
2000-02-18 03:38:33 +08:00
|
|
|
|
|
|
|
SHELL = @SHELL@
|
|
|
|
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
2002-10-15 03:59:04 +08:00
|
|
|
target_alias = @target@
|
2002-05-22 00:50:13 +08:00
|
|
|
conf_prefix = @prefix@
|
2008-09-07 10:07:29 +08:00
|
|
|
# FIXME: this needs an appropriate AC_SUBST
|
|
|
|
host_os = mingw32
|
2000-02-18 03:38:33 +08:00
|
|
|
|
2000-10-20 12:39:21 +08:00
|
|
|
TAR = tar
|
2010-08-28 05:11:29 +08:00
|
|
|
TARFLAGS = --lzma -
|
|
|
|
TARFILEEXT = .tar.lzma
|
2000-10-20 04:56:51 +08:00
|
|
|
|
2000-10-20 12:39:21 +08:00
|
|
|
SUBDIRS = lib
|
2000-10-20 04:56:51 +08:00
|
|
|
|
2011-12-11 01:24:25 +08:00
|
|
|
DISTFILES = \
|
2012-01-16 03:11:09 +08:00
|
|
|
ChangeLog aclocal.m4 configure.ac Makefile.in Makefile.comm.in configure \
|
2012-01-07 06:01:15 +08:00
|
|
|
config.guess config.sub install-sh README.w32api TODO CONTRIBUTIONS
|
2000-10-20 04:56:51 +08:00
|
|
|
|
2012-01-15 20:27:13 +08:00
|
|
|
all: $(SUBDIRS)
|
2000-10-20 04:56:51 +08:00
|
|
|
|
2000-10-20 12:39:21 +08:00
|
|
|
%-subdirs:
|
2012-01-15 20:39:00 +08:00
|
|
|
for dir in $(SUBDIRS); do \
|
|
|
|
$(MAKE) -C $$dir $*; \
|
2000-10-20 04:56:51 +08:00
|
|
|
done
|
|
|
|
|
2012-01-15 20:27:13 +08:00
|
|
|
$(SUBDIRS):
|
2011-12-13 04:02:33 +08:00
|
|
|
$(MAKE) -C $@
|
2000-10-20 04:56:51 +08:00
|
|
|
|
2012-01-16 05:30:48 +08:00
|
|
|
check test:
|
|
|
|
$(MAKE) -C lib $@
|
2000-10-20 04:56:51 +08:00
|
|
|
|
2000-10-20 12:39:21 +08:00
|
|
|
install uninstall:
|
2012-01-15 20:39:00 +08:00
|
|
|
for dir in $(SUBDIRS); do \
|
|
|
|
(cd $$dir; $(MAKE) $@); \
|
2000-10-20 04:56:51 +08:00
|
|
|
done
|
|
|
|
|
2001-03-02 04:32:34 +08:00
|
|
|
ifdef SNAPDATE
|
2008-09-07 10:07:29 +08:00
|
|
|
distdir = $(PACKAGE)-$(VERSION)-$(SNAPDATE)-$(host_os)
|
2001-03-02 04:32:34 +08:00
|
|
|
else
|
2012-01-15 20:20:09 +08:00
|
|
|
CYGRELEASE = $(RELEASE)
|
2001-09-12 22:48:07 +08:00
|
|
|
ifneq (,$(findstring cygwin, $(target_alias)))
|
|
|
|
distdir=$(PACKAGE)-$(VERSION)-$(CYGRELEASE)
|
|
|
|
else
|
2010-08-28 05:11:29 +08:00
|
|
|
distdir=$(PACKAGE)-$(VERSION)-$(CYGRELEASE)-$(host_os)
|
2001-09-12 22:48:07 +08:00
|
|
|
endif
|
2001-03-02 04:32:34 +08:00
|
|
|
endif
|
2000-02-18 03:38:33 +08:00
|
|
|
|
2002-06-14 20:36:26 +08:00
|
|
|
ifneq (,$(findstring mingw, $(target_alias)))
|
|
|
|
dist_prefix=
|
|
|
|
else
|
|
|
|
dist_prefix=/$(conf_prefix)
|
|
|
|
endif
|
|
|
|
|
2001-09-13 04:24:06 +08:00
|
|
|
ifneq (,$(findstring cygwin, $(target_alias)))
|
|
|
|
TARFLAGS = j
|
|
|
|
TARFILEEXT = .tar.bz2
|
|
|
|
endif
|
|
|
|
|
2000-11-07 00:17:16 +08:00
|
|
|
dist: srcdist bindist
|
|
|
|
|
|
|
|
srcdist:
|
2000-10-20 12:39:21 +08:00
|
|
|
rm -rf $(distdir)
|
|
|
|
mkdir $(distdir)
|
|
|
|
chmod 755 $(distdir)
|
2012-01-15 20:39:00 +08:00
|
|
|
for file in $(DISTFILES); do \
|
|
|
|
cp -p $(srcdir)/$$file $(distdir)/$$file ; \
|
2000-02-18 03:38:33 +08:00
|
|
|
done
|
2012-01-15 20:39:00 +08:00
|
|
|
for dir in $(SUBDIRS); do \
|
|
|
|
(cd $$dir; $(MAKE) distdir=../$(distdir) dist); \
|
2000-02-18 03:38:33 +08:00
|
|
|
done
|
2001-09-13 04:24:06 +08:00
|
|
|
rm -f $(distdir)-src$(TARFILEEXT)
|
|
|
|
$(TAR) $(TARFLAGS)cf $(distdir)-src$(TARFILEEXT) $(distdir)
|
2000-10-20 12:39:21 +08:00
|
|
|
|
2008-09-07 10:07:29 +08:00
|
|
|
ifneq (,$(findstring cygwin, $(target_alias)))
|
2000-10-20 12:39:21 +08:00
|
|
|
bindist:
|
|
|
|
rm -rf $(distdir)
|
|
|
|
mkdir $(distdir)
|
|
|
|
chmod 755 $(distdir)
|
2003-03-11 22:44:58 +08:00
|
|
|
$(MAKE) install prefix=`pwd`/$(distdir)$(dist_prefix) exec_prefix=`pwd`/$(distdir)$(dist_prefix)
|
2001-09-13 04:24:06 +08:00
|
|
|
rm -f $(distdir)$(TARFILEEXT)
|
2002-04-10 06:06:54 +08:00
|
|
|
cd $(distdir); $(TAR) $(TARFLAGS)cf ../$(distdir)$(TARFILEEXT) *
|
2008-09-07 10:07:29 +08:00
|
|
|
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
|
2000-10-20 12:39:21 +08:00
|
|
|
|
2001-03-02 04:32:34 +08:00
|
|
|
snapshot:
|
|
|
|
make dist SNAPDATE=$(shell date '+%Y%m%d')
|
|
|
|
|
2012-01-15 23:10:09 +08:00
|
|
|
# Makefile must be rebuilt if Makefile.in is modified,
|
|
|
|
# or if config.status is updated.
|
|
|
|
#
|
|
|
|
Makefile: Makefile.in config.status
|
2000-10-20 12:39:21 +08:00
|
|
|
$(SHELL) config.status
|
|
|
|
|
2012-01-15 23:10:09 +08:00
|
|
|
# config.status itself must be updated if configure is modified;
|
|
|
|
# this requires a distinct invocation of itself.
|
|
|
|
#
|
|
|
|
config.status: configure
|
|
|
|
$(SHELL) config.status --recheck
|
|
|
|
|
2000-10-20 12:39:21 +08:00
|
|
|
mostlyclean-top:
|
|
|
|
rm -f *~
|
2012-01-15 20:20:09 +08:00
|
|
|
|
2000-11-07 00:17:16 +08:00
|
|
|
clean-top: mostlyclean-top
|
2000-10-20 12:39:21 +08:00
|
|
|
rm -rf $(distdir)
|
2001-09-13 04:24:06 +08:00
|
|
|
rm -f $(distdir)*$(TARFILEEXT)
|
2000-10-20 12:39:21 +08:00
|
|
|
maintainer-clean-top:
|
|
|
|
|
|
|
|
mostlyclean: mostlyclean-top mostlyclean-subdirs
|
2012-01-15 20:20:09 +08:00
|
|
|
|
2000-10-20 12:39:21 +08:00
|
|
|
clean: mostlyclean-top clean-subdirs
|
2012-01-15 20:20:09 +08:00
|
|
|
|
2000-10-20 12:39:21 +08:00
|
|
|
distclean: clean-top
|
2006-09-11 06:55:43 +08:00
|
|
|
$(MAKE) -C lib/directx distclean
|
|
|
|
$(MAKE) -C lib/ddk distclean
|
2000-10-20 12:39:21 +08:00
|
|
|
$(MAKE) -C lib distclean
|
2006-09-11 06:55:43 +08:00
|
|
|
rm -f Makefile config.status config.log config.cache TAGS *~
|
2012-01-15 20:20:09 +08:00
|
|
|
|
2000-10-20 12:39:21 +08:00
|
|
|
maintainer-clean: maintainer-clean-subdirs
|
|
|
|
|
2012-01-16 05:30:48 +08:00
|
|
|
.PHONY: lib check test
|
2012-01-15 20:20:09 +08:00
|
|
|
|
|
|
|
# Makefile.in: end of file
|