2000-02-17 20:38:33 +01:00
|
|
|
#
|
|
|
|
# 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,
|
2000-10-20 06:39:21 +02:00
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2000-02-17 20:38:33 +01:00
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
|
|
|
# start config section
|
|
|
|
|
|
|
|
SHELL = @SHELL@
|
|
|
|
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
2002-10-14 21:59:04 +02:00
|
|
|
build_alias = @build@
|
|
|
|
host_alias = @host@
|
|
|
|
target_alias = @target@
|
2000-02-17 20:38:33 +01:00
|
|
|
prefix = @prefix@
|
2002-05-21 18:50:13 +02:00
|
|
|
conf_prefix = @prefix@
|
2008-09-07 04:07:29 +02:00
|
|
|
# FIXME: this needs an appropriate AC_SUBST
|
|
|
|
host_os = mingw32
|
2000-02-17 20:38:33 +01:00
|
|
|
|
|
|
|
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)
|
2000-10-20 06:39:21 +02:00
|
|
|
CFLAGS = @CFLAGS@
|
2000-02-17 20:38:33 +01:00
|
|
|
|
|
|
|
DLLTOOL = @DLLTOOL@
|
|
|
|
AS = @AS@
|
|
|
|
AS_FOR_TARGET = $(AS_FOR_TARGET)
|
|
|
|
WINDRES = @WINDRES@
|
|
|
|
|
|
|
|
RANLIB = @RANLIB@
|
|
|
|
AR = @AR@
|
|
|
|
LD = @LD@
|
|
|
|
|
2000-10-20 06:39:21 +02:00
|
|
|
TAR = tar
|
2001-09-12 22:24:06 +02:00
|
|
|
TARFLAGS = z
|
|
|
|
TARFILEEXT = .tar.gz
|
2000-10-19 22:56:51 +02:00
|
|
|
|
2000-10-20 06:39:21 +02:00
|
|
|
FLAGS_TO_PASS = \
|
|
|
|
AS="$(AS)" \
|
|
|
|
CC="$(CC)" \
|
|
|
|
CPPFLAGS="$(CPPFLAGS)" \
|
|
|
|
CFLAGS="$(CFLAGS)" \
|
|
|
|
CXXFLAGS="$(CXXFLAGS)" \
|
|
|
|
AR="$(AR)" \
|
|
|
|
RANLIB="$(RANLIB)" \
|
|
|
|
LD="$(LD)" \
|
|
|
|
DLLTOOL="$(DLLTOOL)" \
|
2001-09-12 22:24:06 +02:00
|
|
|
TAR="$(TAR)" \
|
|
|
|
TARFLAGS="$(TARFLAGS)" \
|
|
|
|
TARFILEEXT="$(TARFILEEXT)" \
|
2000-10-20 06:39:21 +02:00
|
|
|
WINDRES="$(WINDRES)"
|
2000-10-19 22:56:51 +02:00
|
|
|
|
2000-10-20 06:39:21 +02:00
|
|
|
# end config section
|
2000-02-17 20:38:33 +01:00
|
|
|
|
2000-10-20 06:39:21 +02:00
|
|
|
SUBDIRS = lib
|
2000-10-19 22:56:51 +02:00
|
|
|
|
2000-10-20 06:39:21 +02:00
|
|
|
PACKAGE = w32api
|
2009-11-21 04:46:37 +01:00
|
|
|
VERSION = 3.14
|
2002-05-28 15:24:26 +02:00
|
|
|
CYGRELEASE = 1
|
2000-10-19 22:56:51 +02:00
|
|
|
|
2000-10-20 06:39:21 +02:00
|
|
|
DIST_FILES = Makefile.in configure.in configure config.guess config.sub \
|
2006-11-21 10:36:00 +01:00
|
|
|
aclocal.m4 install-sh README.w32api ChangeLog TODO CONTRIBUTIONS
|
2000-10-19 22:56:51 +02:00
|
|
|
|
2000-10-20 06:39:21 +02:00
|
|
|
all: lib
|
2000-10-19 22:56:51 +02:00
|
|
|
|
2000-10-20 06:39:21 +02:00
|
|
|
%-subdirs:
|
|
|
|
for i in $(SUBDIRS); do \
|
|
|
|
$(MAKE) $(FLAGS_TO_PASS) -C $$i $*; \
|
2000-10-19 22:56:51 +02:00
|
|
|
done
|
|
|
|
|
2000-10-20 06:39:21 +02:00
|
|
|
lib:
|
|
|
|
$(MAKE) $(FLAGS_TO_PASS) -C $@
|
2000-10-19 22:56:51 +02:00
|
|
|
|
2000-10-20 06:39:21 +02:00
|
|
|
test:
|
|
|
|
$(MAKE) -C lib test $(FLAGS_TO_PASS)
|
2000-10-19 22:56:51 +02:00
|
|
|
|
2000-10-20 06:39:21 +02:00
|
|
|
install uninstall:
|
|
|
|
for i in $(SUBDIRS); do \
|
2009-10-29 22:53:47 +01:00
|
|
|
(cd $$i; $(MAKE) $@ $(FLAGS_TO_PASS)); \
|
2000-10-19 22:56:51 +02:00
|
|
|
done
|
|
|
|
|
2001-03-01 21:32:34 +01:00
|
|
|
ifdef SNAPDATE
|
2008-09-07 04:07:29 +02:00
|
|
|
distdir = $(PACKAGE)-$(VERSION)-$(SNAPDATE)-$(host_os)
|
2001-03-01 21:32:34 +01:00
|
|
|
else
|
2001-09-12 16:48:07 +02:00
|
|
|
ifneq (,$(findstring cygwin, $(target_alias)))
|
|
|
|
distdir=$(PACKAGE)-$(VERSION)-$(CYGRELEASE)
|
|
|
|
else
|
2008-09-07 04:07:29 +02:00
|
|
|
distdir=$(PACKAGE)-$(VERSION)-$(host_os)
|
2001-09-12 16:48:07 +02:00
|
|
|
endif
|
2001-03-01 21:32:34 +01:00
|
|
|
endif
|
2000-02-17 20:38:33 +01:00
|
|
|
|
2002-06-14 14:36:26 +02:00
|
|
|
ifneq (,$(findstring mingw, $(target_alias)))
|
|
|
|
dist_prefix=
|
|
|
|
else
|
|
|
|
dist_prefix=/$(conf_prefix)
|
|
|
|
endif
|
|
|
|
|
2001-09-12 22:24:06 +02:00
|
|
|
ifneq (,$(findstring cygwin, $(target_alias)))
|
|
|
|
TARFLAGS = j
|
|
|
|
TARFILEEXT = .tar.bz2
|
|
|
|
endif
|
|
|
|
|
2000-11-06 17:17:16 +01:00
|
|
|
dist: srcdist bindist
|
|
|
|
|
|
|
|
srcdist:
|
2000-10-20 06:39:21 +02:00
|
|
|
rm -rf $(distdir)
|
|
|
|
mkdir $(distdir)
|
|
|
|
chmod 755 $(distdir)
|
|
|
|
for i in $(DIST_FILES); do \
|
|
|
|
cp -p $(srcdir)/$$i $(distdir)/$$i ; \
|
2000-02-17 20:38:33 +01:00
|
|
|
done
|
2000-10-20 06:39:21 +02:00
|
|
|
for i in $(SUBDIRS); do \
|
|
|
|
(cd $$i; $(MAKE) distdir=../$(distdir) dist); \
|
2000-02-17 20:38:33 +01:00
|
|
|
done
|
2001-09-12 22:24:06 +02:00
|
|
|
rm -f $(distdir)-src$(TARFILEEXT)
|
|
|
|
$(TAR) $(TARFLAGS)cf $(distdir)-src$(TARFILEEXT) $(distdir)
|
2000-10-20 06:39:21 +02:00
|
|
|
|
2008-09-07 04:07:29 +02:00
|
|
|
ifneq (,$(findstring cygwin, $(target_alias)))
|
2000-10-20 06:39:21 +02:00
|
|
|
bindist:
|
|
|
|
rm -rf $(distdir)
|
|
|
|
mkdir $(distdir)
|
|
|
|
chmod 755 $(distdir)
|
2003-03-11 15:44:58 +01:00
|
|
|
$(MAKE) install prefix=`pwd`/$(distdir)$(dist_prefix) exec_prefix=`pwd`/$(distdir)$(dist_prefix)
|
2001-09-12 22:24:06 +02:00
|
|
|
rm -f $(distdir)$(TARFILEEXT)
|
2002-04-10 00:06:54 +02:00
|
|
|
cd $(distdir); $(TAR) $(TARFLAGS)cf ../$(distdir)$(TARFILEEXT) *
|
2008-09-07 04:07:29 +02: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 06:39:21 +02:00
|
|
|
|
2001-03-01 21:32:34 +01:00
|
|
|
snapshot:
|
|
|
|
make dist SNAPDATE=$(shell date '+%Y%m%d')
|
|
|
|
|
2000-10-20 06:39:21 +02:00
|
|
|
Makefile: Makefile.in config.status configure
|
|
|
|
$(SHELL) config.status
|
|
|
|
|
|
|
|
mostlyclean-top:
|
|
|
|
rm -f *~
|
2000-11-06 17:17:16 +01:00
|
|
|
clean-top: mostlyclean-top
|
2000-10-20 06:39:21 +02:00
|
|
|
rm -rf $(distdir)
|
2001-09-12 22:24:06 +02:00
|
|
|
rm -f $(distdir)*$(TARFILEEXT)
|
2000-10-20 06:39:21 +02:00
|
|
|
maintainer-clean-top:
|
|
|
|
|
|
|
|
mostlyclean: mostlyclean-top mostlyclean-subdirs
|
|
|
|
clean: mostlyclean-top clean-subdirs
|
|
|
|
distclean: clean-top
|
2006-09-11 00:55:43 +02:00
|
|
|
$(MAKE) -C lib/directx distclean
|
|
|
|
$(MAKE) -C lib/ddk distclean
|
2000-10-20 06:39:21 +02:00
|
|
|
$(MAKE) -C lib distclean
|
2006-09-11 00:55:43 +02:00
|
|
|
rm -f Makefile config.status config.log config.cache TAGS *~
|
2000-10-20 06:39:21 +02:00
|
|
|
maintainer-clean: maintainer-clean-subdirs
|
|
|
|
|
2000-11-06 17:17:16 +01:00
|
|
|
.PHONY: lib test
|