2000-02-18 03:38:33 +08:00
|
|
|
# Makefile.in for windows stuff
|
|
|
|
#
|
|
|
|
# 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@
|
2008-11-27 00:40:29 +08:00
|
|
|
prefix:=@prefix@
|
2008-10-12 11:06:12 +08:00
|
|
|
|
2008-11-27 00:40:29 +08:00
|
|
|
program_transform_name:=@program_transform_name@
|
|
|
|
exec_prefix:=@exec_prefix@
|
|
|
|
bindir:=@bindir@
|
|
|
|
libdir:=@libdir@
|
2000-02-18 03:38:33 +08: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
|
2016-03-20 01:45:57 +08:00
|
|
|
datarootdir:=@datarootdir@
|
2008-11-27 00:40:29 +08:00
|
|
|
datadir:=@datadir@
|
|
|
|
infodir:=@infodir@
|
|
|
|
includedir:=@includedir@
|
2000-02-18 03:38:33 +08:00
|
|
|
|
2006-01-17 01:48:36 +08:00
|
|
|
INSTALL:=@INSTALL@
|
|
|
|
INSTALL_PROGRAM:=@INSTALL_PROGRAM@
|
|
|
|
INSTALL_DATA:=@INSTALL_DATA@
|
|
|
|
|
Cygwin: Remove recursive configure
There's doesn't seem to be much use in independently distributing these
subdirectories, so allowing them to be independently configured seems
pointless and overcomplicated.
The order in which the subdirectories are built is still a little odd,
as cygwin is linked with libcygserver, and cygserver is then linked with
cygwin. So, we build the cygwin directory first, which invokes a build
of libcygserver in the cygserver directory, and then build in the
cygserver directory to build the cygserver executable.
Drop AC_CONFIGURE_ARGS, since we don't need to recursively call
configure with the same arguments anymore.
Slightly refine when we build utils: Previously we didn't build any
utils if MinGW compiler use was avoided, now we just avoid building
those utils which require that compiler.
Greatly simplify how winsup_srcdir and target_builddir are set, since
we're only configuring from one directory. (These are still kept
absolute, since we don't adjust them where used for being used in a
subdirectory).
Remove configure.cygwin and put it's (greatly reduced) contents inline
in the one place it's used now.
Remove generated configure and aclocal.m4 in subdirectories.
2020-10-06 23:22:02 +08:00
|
|
|
SUBDIRS=cygwin cygserver doc utils testsuite
|
2000-02-18 03:38:33 +08:00
|
|
|
INSTALL_SUBDIRS=${patsubst %,install_%,$(SUBDIRS)}
|
|
|
|
CLEAN_SUBDIRS=${patsubst %,clean_%,$(SUBDIRS)}
|
|
|
|
|
2016-06-06 00:58:22 +08:00
|
|
|
.PHONY: all install clean distclean all-info info install-info install-license 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)
|
|
|
|
|
2008-05-16 18:37:27 +08:00
|
|
|
install-license: CYGWIN_LICENSE COPYING
|
2009-02-24 10:11:14 +08:00
|
|
|
${INSTALL} -d $(DESTDIR)$(prefix)/share/doc/Cygwin
|
2008-05-16 18:37:27 +08:00
|
|
|
for i in $^; do \
|
2009-02-24 10:11:14 +08:00
|
|
|
${INSTALL} $$i $(DESTDIR)$(prefix)/share/doc/Cygwin ; \
|
2008-05-16 18:37:27 +08:00
|
|
|
done
|
2000-02-18 03:38:33 +08:00
|
|
|
|
2020-10-07 20:59:45 +08:00
|
|
|
install: Makefile install-license $(INSTALL_SUBDIRS)
|
2006-08-30 21:05:46 +08:00
|
|
|
|
2016-06-06 00:58:22 +08:00
|
|
|
clean distclean: $(CLEAN_SUBDIRS)
|
2000-02-18 03:38:33 +08:00
|
|
|
|
2000-06-23 06:28:35 +08:00
|
|
|
all-info:
|
|
|
|
|
|
|
|
install-info:
|
|
|
|
|
|
|
|
info:
|
|
|
|
|
2000-02-18 03:38:33 +08:00
|
|
|
$(SUBDIRS):
|
2013-11-07 08:29:46 +08:00
|
|
|
@${MAKE} -C $@ all || ([ "$@" == doc ] && echo "*** error ignored")
|
2000-02-18 03:38:33 +08:00
|
|
|
|
|
|
|
$(INSTALL_SUBDIRS):
|
2014-02-19 03:58:39 +08:00
|
|
|
@${MAKE} -C $(patsubst install_%,%,$@) install || ([ "$@" == install_doc ] && echo "*** error ignored")
|
2000-02-18 03:38:33 +08:00
|
|
|
|
|
|
|
$(CLEAN_SUBDIRS):
|
2013-11-07 08:29:46 +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
|
|
|
|
|
Cygwin: Remove recursive configure
There's doesn't seem to be much use in independently distributing these
subdirectories, so allowing them to be independently configured seems
pointless and overcomplicated.
The order in which the subdirectories are built is still a little odd,
as cygwin is linked with libcygserver, and cygserver is then linked with
cygwin. So, we build the cygwin directory first, which invokes a build
of libcygserver in the cygserver directory, and then build in the
cygserver directory to build the cygserver executable.
Drop AC_CONFIGURE_ARGS, since we don't need to recursively call
configure with the same arguments anymore.
Slightly refine when we build utils: Previously we didn't build any
utils if MinGW compiler use was avoided, now we just avoid building
those utils which require that compiler.
Greatly simplify how winsup_srcdir and target_builddir are set, since
we're only configuring from one directory. (These are still kept
absolute, since we don't adjust them where used for being used in a
subdirectory).
Remove configure.cygwin and put it's (greatly reduced) contents inline
in the one place it's used now.
Remove generated configure and aclocal.m4 in subdirectories.
2020-10-06 23:22:02 +08:00
|
|
|
Makefile: Makefile.in ${patsubst %,%/Makefile.in,$(SUBDIRS)} $(srcdir)/configure config.status
|
2000-02-18 03:38:33 +08:00
|
|
|
$(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
|
2020-10-29 01:02:40 +08:00
|
|
|
$(MAKE) -C testsuite check
|
2001-11-04 11:42:19 +08:00
|
|
|
|
2012-10-24 18:11:15 +08:00
|
|
|
utils: cygwin
|
2001-11-04 11:42:19 +08:00
|
|
|
|
2012-10-24 18:11:15 +08:00
|
|
|
cygwin:
|
2001-11-04 11:42:19 +08:00
|
|
|
|
2003-11-23 17:02:26 +08:00
|
|
|
cygserver: cygwin
|
|
|
|
|
Cygwin: Remove recursive configure
There's doesn't seem to be much use in independently distributing these
subdirectories, so allowing them to be independently configured seems
pointless and overcomplicated.
The order in which the subdirectories are built is still a little odd,
as cygwin is linked with libcygserver, and cygserver is then linked with
cygwin. So, we build the cygwin directory first, which invokes a build
of libcygserver in the cygserver directory, and then build in the
cygserver directory to build the cygserver executable.
Drop AC_CONFIGURE_ARGS, since we don't need to recursively call
configure with the same arguments anymore.
Slightly refine when we build utils: Previously we didn't build any
utils if MinGW compiler use was avoided, now we just avoid building
those utils which require that compiler.
Greatly simplify how winsup_srcdir and target_builddir are set, since
we're only configuring from one directory. (These are still kept
absolute, since we don't adjust them where used for being used in a
subdirectory).
Remove configure.cygwin and put it's (greatly reduced) contents inline
in the one place it's used now.
Remove generated configure and aclocal.m4 in subdirectories.
2020-10-06 23:22:02 +08:00
|
|
|
testsuite: cygwin
|
|
|
|
|
2012-10-24 18:11:15 +08:00
|
|
|
install_utils: cygwin
|
2001-11-04 11:42:19 +08:00
|
|
|
|
2012-10-24 18:11:15 +08:00
|
|
|
install_cygwin:
|
2003-07-02 04:51:03 +08:00
|
|
|
|
|
|
|
install_cygserver: cygwin
|