]> sourceware.org Git - newlib-cygwin.git/blame - winsup/Makefile.in
2008-11-27 Ken Werner <ken.werner@de.ibm.com>
[newlib-cygwin.git] / winsup / Makefile.in
CommitLineData
1fd5e000 1# Makefile.in for windows stuff
b73c50e8
CF
2# Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2006,
3# 2007, 2008
739a6f47 4# Red Hat, Inc.
1fd5e000
CF
5#
6# This file is part of Cygwin.
7#
8# This software is a copyrighted work licensed under the terms of the
9# Cygwin license. Please consult the file "CYGWIN_LICENSE" for
10# details.
11
12# This makefile requires GNU make.
13
14SHELL:=@SHELL@
15VPATH:=@srcdir@
16srcdir:=@srcdir@
17objdir:=.
18
19target_alias:=@target_alias@
20build_alias:=@build_alias@
21host_alias:=@host_alias@
81fa7891 22prefix:=@prefix@
fd49ac27 23
81fa7891
CF
24program_transform_name:=@program_transform_name@
25exec_prefix:=@exec_prefix@
26bindir:=@bindir@
27libdir:=@libdir@
1fd5e000
CF
28ifeq ($(target_alias),$(host_alias))
29ifeq ($(build_alias),$(host_alias))
30tooldir:=$(exec_prefix)
31else
32tooldir:=$(exec_prefix)/$(target_alias)
33endif
34else
35tooldir:=$(exec_prefix)/$(target_alias)
36endif
81fa7891
CF
37datadir:=@datadir@
38infodir:=@infodir@
39includedir:=@includedir@
1fd5e000 40
95dc8840
CV
41INSTALL:=@INSTALL@
42INSTALL_PROGRAM:=@INSTALL_PROGRAM@
43INSTALL_DATA:=@INSTALL_DATA@
44
99fc5e10 45SUBDIRS=@subdirs@
1fd5e000
CF
46INSTALL_SUBDIRS=${patsubst %,install_%,$(SUBDIRS)}
47CLEAN_SUBDIRS=${patsubst %,clean_%,$(SUBDIRS)}
aa053fd4 48ZLIB=${findstring zlib,$(SUBDIRS)}
1fd5e000 49
7e5d0e9f
CV
50INSTALL_LICENSE:=@INSTALL_LICENSE@
51
c9f1f4b4 52.PHONY: all install clean all-info info install-info install-license check \
344a1924 53 $(SUBDIRS) $(INSTALL_SUBDIRS) $(CLEAN_SUBDIRS)
1fd5e000
CF
54
55.SUFFIXES:
56
7f363152
CF
57MAKEOVERRIDES_WORKAROUND=${wordlist 2,1,a b c}
58
59ifneq ($(MAKEOVERRIDES_WORKAROUND),)
60 override MAKE:=$(MAKE) $(MAKEOVERRIDES)
61 MAKEOVERRIDES:=
62 export MAKEOVERRIDES
63endif
1fd5e000
CF
64
65all: Makefile $(SUBDIRS)
66
888784b6 67install-license: CYGWIN_LICENSE COPYING
c9f1f4b4 68 ${INSTALL} -d $(prefix)/share/doc/Cygwin
888784b6
CV
69 for i in $^; do \
70 ${INSTALL} $$i $(prefix)/share/doc/Cygwin ; \
71 done
1fd5e000 72
7e5d0e9f
CV
73install: Makefile $(INSTALL_LICENSE) $(INSTALL_SUBDIRS)
74
1fd5e000
CF
75clean: $(CLEAN_SUBDIRS)
76
344a1924
CF
77all-info:
78
79install-info:
80
81info:
82
1fd5e000 83$(SUBDIRS):
a9f20457 84 @if cd $@ 2>/dev/null; then \
d9cbe316 85 test "$@" = "mingw" && export DISTCC_HOSTS=localhost;\
94597cd0 86 $(MAKE) all || exit 1; \
a9f20457 87 fi || exit 0
1fd5e000
CF
88
89$(INSTALL_SUBDIRS):
a9f20457 90 @if cd ${patsubst install_%,%,$@} 2>/dev/null; then \
94597cd0 91 $(MAKE) install || exit 1; \
a9f20457 92 fi || exit 0
1fd5e000
CF
93
94$(CLEAN_SUBDIRS):
a9f20457 95 @if cd ${patsubst clean_%,%,$@} 2>/dev/null; then \
94597cd0 96 $(MAKE) clean || exit 1; \
a9f20457 97 fi || exit 0
1fd5e000
CF
98
99.PRECIOUS: Makefile
100
101Makefile: Makefile.in $(srcdir)/configure.in config.status
102 $(SHELL) config.status
103
104config.status: configure
105 $(SHELL) config.status --recheck
39630fe3 106
739a6f47
CF
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.
a9f20457 111check: cygwin
7cf5e175 112 @if [ -f testsuite/config.status ]; then \
a9f20457
CF
113 cd testsuite; \
114 else \
7cf5e175 115 (mkdir testsuite 2>/dev/null || exit 0); \
a9f20457 116 cd testsuite; \
739a6f47 117 sed -e 's%winsup/cygwin\>%winsup/testsuite%g' ../cygwin/config.status > config.status; \
a9f20457
CF
118 chmod a+x config.status; \
119 sh ./config.status --recheck; \
120 sh ./config.status; \
121 fi; \
122 $(MAKE) check
15d0cbd6
CF
123
124utils: cygwin mingw
125
126mingw: w32api
127
128cygwin: w32api
129
95b11561
CV
130cygserver: cygwin
131
15d0cbd6
CF
132install_utils: cygwin mingw
133
134install_mingw: w32api
135
136install_cygwin: w32api
350c2f44
CF
137
138install_cygserver: cygwin
bee65cb8 139
c6caaa34 140lsaauth: mingw cygwin
This page took 0.183208 seconds and 5 git commands to generate.