2000-02-17 20:38:33 +01:00
|
|
|
# Makefile.in for windows stuff
|
2008-10-12 05:06:12 +02:00
|
|
|
# Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2006, 2007
|
2006-07-24 01:28:06 +02:00
|
|
|
# Red Hat, Inc.
|
2000-02-17 20:38:33 +01: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:=.
|
|
|
|
|
2008-10-12 05:06:12 +02:00
|
|
|
DESTDIR=
|
2000-02-17 20:38:33 +01:00
|
|
|
target_alias:=@target_alias@
|
|
|
|
build_alias:=@build_alias@
|
|
|
|
host_alias:=@host_alias@
|
2008-10-12 05:06:12 +02:00
|
|
|
prefix:=${DESTDIR}@prefix@
|
|
|
|
exec_prefix:=${DESTDIR}@exec_prefix@
|
|
|
|
bindir:=${DESTDIR}@bindir@
|
|
|
|
libdir:=${DESTDIR}@libdir@
|
|
|
|
datadir:=${DESTDIR}@datadir@
|
|
|
|
infodir:=${DESTDIR}@infodir@
|
|
|
|
includedir:=${DESTDIR}@includedir@
|
2000-02-17 20:38:33 +01:00
|
|
|
program_transform_name:=@program_transform_name@
|
2008-10-12 05:06:12 +02:00
|
|
|
|
2000-02-17 20:38:33 +01:00
|
|
|
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
|
|
|
|
|
2006-01-16 18:48:36 +01:00
|
|
|
INSTALL:=@INSTALL@
|
|
|
|
INSTALL_PROGRAM:=@INSTALL_PROGRAM@
|
|
|
|
INSTALL_DATA:=@INSTALL_DATA@
|
|
|
|
|
2006-05-24 18:59:03 +02:00
|
|
|
SUBDIRS=@subdirs@
|
2000-02-17 20:38:33 +01:00
|
|
|
INSTALL_SUBDIRS=${patsubst %,install_%,$(SUBDIRS)}
|
|
|
|
CLEAN_SUBDIRS=${patsubst %,clean_%,$(SUBDIRS)}
|
2001-12-19 04:35:36 +01:00
|
|
|
ZLIB=${findstring zlib,$(SUBDIRS)}
|
2000-02-17 20:38:33 +01:00
|
|
|
|
2006-08-30 15:05:46 +02:00
|
|
|
INSTALL_LICENSE:=@INSTALL_LICENSE@
|
|
|
|
|
2006-08-31 02:53:48 +02:00
|
|
|
.PHONY: all install clean all-info info install-info install-license check \
|
2000-06-23 00:28:35 +02:00
|
|
|
$(SUBDIRS) $(INSTALL_SUBDIRS) $(CLEAN_SUBDIRS)
|
2000-02-17 20:38:33 +01:00
|
|
|
|
|
|
|
.SUFFIXES:
|
|
|
|
|
2000-04-09 08:15:43 +02:00
|
|
|
MAKEOVERRIDES_WORKAROUND=${wordlist 2,1,a b c}
|
|
|
|
|
|
|
|
ifneq ($(MAKEOVERRIDES_WORKAROUND),)
|
|
|
|
override MAKE:=$(MAKE) $(MAKEOVERRIDES)
|
|
|
|
MAKEOVERRIDES:=
|
|
|
|
export MAKEOVERRIDES
|
|
|
|
endif
|
2000-02-17 20:38:33 +01:00
|
|
|
|
|
|
|
all: Makefile $(SUBDIRS)
|
|
|
|
|
2008-05-16 12:37:27 +02:00
|
|
|
install-license: CYGWIN_LICENSE COPYING
|
2006-08-31 02:53:48 +02:00
|
|
|
${INSTALL} -d $(prefix)/share/doc/Cygwin
|
2008-05-16 12:37:27 +02:00
|
|
|
for i in $^; do \
|
|
|
|
${INSTALL} $$i $(prefix)/share/doc/Cygwin ; \
|
|
|
|
done
|
2000-02-17 20:38:33 +01:00
|
|
|
|
2006-08-30 15:05:46 +02:00
|
|
|
install: Makefile $(INSTALL_LICENSE) $(INSTALL_SUBDIRS)
|
|
|
|
|
2000-02-17 20:38:33 +01:00
|
|
|
clean: $(CLEAN_SUBDIRS)
|
|
|
|
|
2000-06-23 00:28:35 +02:00
|
|
|
all-info:
|
|
|
|
|
|
|
|
install-info:
|
|
|
|
|
|
|
|
info:
|
|
|
|
|
2000-02-17 20:38:33 +01:00
|
|
|
$(SUBDIRS):
|
2001-10-24 23:56:54 +02:00
|
|
|
@if cd $@ 2>/dev/null; then \
|
2003-07-26 02:43:57 +02:00
|
|
|
test "$@" = "mingw" && export DISTCC_HOSTS=localhost;\
|
2001-12-14 19:23:19 +01:00
|
|
|
$(MAKE) all || exit 1; \
|
2001-10-24 23:56:54 +02:00
|
|
|
fi || exit 0
|
2000-02-17 20:38:33 +01:00
|
|
|
|
|
|
|
$(INSTALL_SUBDIRS):
|
2001-10-24 23:56:54 +02:00
|
|
|
@if cd ${patsubst install_%,%,$@} 2>/dev/null; then \
|
2001-12-14 19:23:19 +01:00
|
|
|
$(MAKE) install || exit 1; \
|
2001-10-24 23:56:54 +02:00
|
|
|
fi || exit 0
|
2000-02-17 20:38:33 +01:00
|
|
|
|
|
|
|
$(CLEAN_SUBDIRS):
|
2001-10-24 23:56:54 +02:00
|
|
|
@if cd ${patsubst clean_%,%,$@} 2>/dev/null; then \
|
2001-12-14 19:23:19 +01:00
|
|
|
$(MAKE) clean || exit 1; \
|
2001-10-24 23:56:54 +02:00
|
|
|
fi || exit 0
|
2000-02-17 20:38:33 +01:00
|
|
|
|
|
|
|
.PRECIOUS: Makefile
|
|
|
|
|
|
|
|
Makefile: Makefile.in $(srcdir)/configure.in config.status
|
|
|
|
$(SHELL) config.status
|
|
|
|
|
|
|
|
config.status: configure
|
|
|
|
$(SHELL) config.status --recheck
|
2000-09-03 06:06:38 +02:00
|
|
|
|
2006-07-24 01:28:06 +02:00
|
|
|
# The below rule is intended to run configure only when "make check" is
|
|
|
|
# actually specified, i.e., not in a cross-compilation environment. The
|
|
|
|
# cygwin configuration is copied and modified to ensure that the same configuration
|
|
|
|
# parameters are passed when the testsuite is configured as when cygwin was configured.
|
2001-10-24 23:56:54 +02:00
|
|
|
check: cygwin
|
2001-11-04 06:15:16 +01:00
|
|
|
@if [ -f testsuite/config.status ]; then \
|
2001-10-24 23:56:54 +02:00
|
|
|
cd testsuite; \
|
|
|
|
else \
|
2001-11-04 06:15:16 +01:00
|
|
|
(mkdir testsuite 2>/dev/null || exit 0); \
|
2001-10-24 23:56:54 +02:00
|
|
|
cd testsuite; \
|
2006-07-24 01:28:06 +02:00
|
|
|
sed -e 's%winsup/cygwin\>%winsup/testsuite%g' ../cygwin/config.status > config.status; \
|
2001-10-24 23:56:54 +02:00
|
|
|
chmod a+x config.status; \
|
|
|
|
sh ./config.status --recheck; \
|
|
|
|
sh ./config.status; \
|
|
|
|
fi; \
|
|
|
|
$(MAKE) check
|
2001-11-04 04:42:19 +01:00
|
|
|
|
|
|
|
utils: cygwin mingw
|
|
|
|
|
|
|
|
mingw: w32api
|
|
|
|
|
|
|
|
cygwin: w32api
|
|
|
|
|
2003-11-23 10:02:26 +01:00
|
|
|
cygserver: cygwin
|
|
|
|
|
2001-11-04 04:42:19 +01:00
|
|
|
install_utils: cygwin mingw
|
|
|
|
|
|
|
|
install_mingw: w32api
|
|
|
|
|
|
|
|
install_cygwin: w32api
|
2003-07-01 22:51:03 +02:00
|
|
|
|
|
|
|
install_cygserver: cygwin
|
2006-08-03 05:47:54 +02:00
|
|
|
|
2006-11-27 14:01:36 +01:00
|
|
|
lsaauth: mingw cygwin
|