1 # Makefile.in for windows stuff
2 # Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2006,
6 # This file is part of Cygwin.
8 # This software is a copyrighted work licensed under the terms of the
9 # Cygwin license. Please consult the file "CYGWIN_LICENSE" for
12 # This makefile requires GNU make.
19 target_alias
:=@target_alias@
20 build_alias
:=@build_alias@
21 host_alias
:=@host_alias@
24 program_transform_name
:=@program_transform_name@
25 exec_prefix:=@
exec_prefix@
28 ifeq ($(target_alias
),$(host_alias
))
29 ifeq ($(build_alias
),$(host_alias
))
30 tooldir
:=$(exec_prefix)
32 tooldir
:=$(exec_prefix)/$(target_alias
)
35 tooldir
:=$(exec_prefix)/$(target_alias
)
39 includedir:=@
includedir@
42 INSTALL_PROGRAM
:=@INSTALL_PROGRAM@
43 INSTALL_DATA
:=@INSTALL_DATA@
46 INSTALL_SUBDIRS
=${patsubst %,install_
%,$(SUBDIRS
)}
47 CLEAN_SUBDIRS
=${patsubst %,clean_
%,$(SUBDIRS
)}
48 ZLIB
=${findstring zlib
,$(SUBDIRS
)}
50 INSTALL_LICENSE
:=@INSTALL_LICENSE@
52 .PHONY
: all install clean all-info
info install-info install-license
check \
53 $(SUBDIRS
) $(INSTALL_SUBDIRS
) $(CLEAN_SUBDIRS
)
57 MAKEOVERRIDES_WORKAROUND
=${wordlist
2,1,a b c
}
59 ifneq ($(MAKEOVERRIDES_WORKAROUND
),)
60 override MAKE
:=$(MAKE
) $(MAKEOVERRIDES
)
65 all: Makefile
$(SUBDIRS
)
67 install-license
: CYGWIN_LICENSE COPYING
68 ${INSTALL} -d
$(prefix)/share
/doc
/Cygwin
70 ${INSTALL} $$i $(prefix)/share
/doc
/Cygwin
; \
73 install: Makefile
$(INSTALL_LICENSE
) $(INSTALL_SUBDIRS
)
75 clean: $(CLEAN_SUBDIRS
)
84 @if cd
$@
2>/dev
/null
; then \
85 test "$@" = "mingw" && export DISTCC_HOSTS
=localhost
;\
86 $(MAKE
) all || exit
1; \
90 @if cd
${patsubst install_
%,%,$@
} 2>/dev
/null
; then \
91 $(MAKE
) install || exit
1; \
95 @if cd
${patsubst clean_
%,%,$@
} 2>/dev
/null
; then \
96 $(MAKE
) clean || exit
1; \
101 Makefile
: Makefile.in
$(srcdir)/configure.in config.status
102 $(SHELL
) config.status
104 config.status
: configure
105 $(SHELL
) config.status
--recheck
107 # The below rule is intended to run configure only when "make check" is
108 # actually specified, i.e., not in a cross-compilation environment. The
109 # cygwin configuration is copied and modified to ensure that the same configuration
110 # parameters are passed when the testsuite is configured as when cygwin was configured.
112 @if
[ -f testsuite
/config.status
]; then \
115 (mkdir testsuite
2>/dev
/null || exit
0); \
117 sed
-e
's%winsup/cygwin\>%winsup/testsuite%g' ..
/cygwin
/config.status
> config.status
; \
118 chmod a
+x config.status
; \
119 sh .
/config.status
--recheck
; \
120 sh .
/config.status
; \
132 install_utils
: cygwin mingw
134 install_mingw
: w32api
136 install_cygwin
: w32api
138 install_cygserver
: cygwin
140 lsaauth
: mingw cygwin