2000-02-18 03:38:33 +08:00
|
|
|
# Makefile.in for windows stuff
|
2003-07-02 04:51:03 +08:00
|
|
|
# Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 Red Hat, Inc.
|
2000-02-18 03:38:33 +08:00
|
|
|
#
|
|
|
|
# This file is part of Cygwin.
|
|
|
|
#
|
|
|
|
# This software is a copyrighted work licensed under the terms of the
|
|
|
|
# Cygwin license. Please consult the file "CYGWIN_LICENSE" for
|
|
|
|
# details.
|
|
|
|
|
|
|
|
# This makefile requires GNU make.
|
|
|
|
|
|
|
|
SHELL:=@SHELL@
|
|
|
|
VPATH:=@srcdir@
|
|
|
|
srcdir:=@srcdir@
|
|
|
|
objdir:=.
|
|
|
|
|
|
|
|
target_alias:=@target_alias@
|
|
|
|
build_alias:=@build_alias@
|
|
|
|
host_alias:=@host_alias@
|
|
|
|
prefix:=@prefix@
|
|
|
|
|
|
|
|
program_transform_name:=@program_transform_name@
|
|
|
|
exec_prefix:=@exec_prefix@
|
|
|
|
bindir:=@bindir@
|
|
|
|
libdir:=@libdir@
|
|
|
|
ifeq ($(target_alias),$(host_alias))
|
|
|
|
ifeq ($(build_alias),$(host_alias))
|
|
|
|
tooldir:=$(exec_prefix)
|
|
|
|
else
|
|
|
|
tooldir:=$(exec_prefix)/$(target_alias)
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
tooldir:=$(exec_prefix)/$(target_alias)
|
|
|
|
endif
|
|
|
|
datadir:=@datadir@
|
|
|
|
infodir:=@infodir@
|
|
|
|
includedir:=@includedir@
|
|
|
|
|
2001-11-04 13:15:16 +08:00
|
|
|
SUBDIRS=@SUBDIRS@
|
2000-02-18 03:38:33 +08:00
|
|
|
INSTALL_SUBDIRS=${patsubst %,install_%,$(SUBDIRS)}
|
|
|
|
CLEAN_SUBDIRS=${patsubst %,clean_%,$(SUBDIRS)}
|
2001-12-19 11:35:36 +08:00
|
|
|
ZLIB=${findstring zlib,$(SUBDIRS)}
|
2000-02-18 03:38:33 +08:00
|
|
|
|
2000-09-03 12:06:38 +08:00
|
|
|
.PHONY: all install clean all-info info install-info check \
|
2000-06-23 06:28:35 +08:00
|
|
|
$(SUBDIRS) $(INSTALL_SUBDIRS) $(CLEAN_SUBDIRS)
|
2000-02-18 03:38:33 +08:00
|
|
|
|
|
|
|
.SUFFIXES:
|
|
|
|
|
2000-04-09 14:15:43 +08:00
|
|
|
MAKEOVERRIDES_WORKAROUND=${wordlist 2,1,a b c}
|
|
|
|
|
|
|
|
ifneq ($(MAKEOVERRIDES_WORKAROUND),)
|
|
|
|
override MAKE:=$(MAKE) $(MAKEOVERRIDES)
|
|
|
|
MAKEOVERRIDES:=
|
|
|
|
export MAKEOVERRIDES
|
|
|
|
endif
|
2000-02-18 03:38:33 +08:00
|
|
|
|
|
|
|
all: Makefile $(SUBDIRS)
|
|
|
|
|
|
|
|
install: Makefile $(INSTALL_SUBDIRS)
|
|
|
|
|
|
|
|
clean: $(CLEAN_SUBDIRS)
|
|
|
|
|
2000-06-23 06:28:35 +08:00
|
|
|
all-info:
|
|
|
|
|
|
|
|
install-info:
|
|
|
|
|
|
|
|
info:
|
|
|
|
|
2000-02-18 03:38:33 +08:00
|
|
|
$(SUBDIRS):
|
2001-10-25 05:56:54 +08:00
|
|
|
@if cd $@ 2>/dev/null; then \
|
2003-07-26 08:43:57 +08:00
|
|
|
test "$@" = "mingw" && export DISTCC_HOSTS=localhost;\
|
2001-12-15 02:23:19 +08:00
|
|
|
$(MAKE) all || exit 1; \
|
2001-10-25 05:56:54 +08:00
|
|
|
fi || exit 0
|
2000-02-18 03:38:33 +08:00
|
|
|
|
|
|
|
$(INSTALL_SUBDIRS):
|
2001-10-25 05:56:54 +08:00
|
|
|
@if cd ${patsubst install_%,%,$@} 2>/dev/null; then \
|
2001-12-15 02:23:19 +08:00
|
|
|
$(MAKE) install || exit 1; \
|
2001-10-25 05:56:54 +08:00
|
|
|
fi || exit 0
|
2000-02-18 03:38:33 +08:00
|
|
|
|
|
|
|
$(CLEAN_SUBDIRS):
|
2001-10-25 05:56:54 +08:00
|
|
|
@if cd ${patsubst clean_%,%,$@} 2>/dev/null; then \
|
2001-12-15 02:23:19 +08:00
|
|
|
$(MAKE) clean || exit 1; \
|
2001-10-25 05:56:54 +08:00
|
|
|
fi || exit 0
|
2000-02-18 03:38:33 +08:00
|
|
|
|
|
|
|
.PRECIOUS: Makefile
|
|
|
|
|
|
|
|
Makefile: Makefile.in $(srcdir)/configure.in config.status
|
|
|
|
$(SHELL) config.status
|
|
|
|
|
|
|
|
config.status: configure
|
|
|
|
$(SHELL) config.status --recheck
|
2000-09-03 12:06:38 +08:00
|
|
|
|
2001-10-25 05:56:54 +08:00
|
|
|
check: cygwin
|
2001-11-04 13:15:16 +08:00
|
|
|
@if [ -f testsuite/config.status ]; then \
|
2001-10-25 05:56:54 +08:00
|
|
|
cd testsuite; \
|
|
|
|
else \
|
2001-11-04 13:15:16 +08:00
|
|
|
(mkdir testsuite 2>/dev/null || exit 0); \
|
2001-10-25 05:56:54 +08:00
|
|
|
cd testsuite; \
|
2002-09-28 11:15:44 +08:00
|
|
|
sed -n -e '1,/^done/{' -e 's%winsup/cygwin\([ /]\)%winsup/testsuite\1%g; ' -e 'p; }' ../cygwin/config.status > config.status; \
|
2001-10-25 05:56:54 +08:00
|
|
|
chmod a+x config.status; \
|
|
|
|
sh ./config.status --recheck; \
|
|
|
|
sh ./config.status; \
|
|
|
|
fi; \
|
|
|
|
$(MAKE) check
|
2001-11-04 11:42:19 +08:00
|
|
|
|
|
|
|
utils: cygwin mingw
|
|
|
|
|
|
|
|
mingw: w32api
|
|
|
|
|
|
|
|
cygwin: w32api
|
|
|
|
|
2003-11-23 17:02:26 +08:00
|
|
|
cygserver: cygwin
|
|
|
|
|
2001-11-04 11:42:19 +08:00
|
|
|
install_utils: cygwin mingw
|
|
|
|
|
|
|
|
install_mingw: w32api
|
|
|
|
|
|
|
|
install_cygwin: w32api
|
2003-07-02 04:51:03 +08:00
|
|
|
|
|
|
|
install_cygserver: cygwin
|