]> sourceware.org Git - newlib-cygwin.git/blob - winsup/Makefile.in
2008-03-27 Patrick Mansfield <patmans@us.ibm.com>
[newlib-cygwin.git] / winsup / Makefile.in
1 # Makefile.in for windows stuff
2 # Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2006
3 # Red Hat, Inc.
4 #
5 # This file is part of Cygwin.
6 #
7 # This software is a copyrighted work licensed under the terms of the
8 # Cygwin license. Please consult the file "CYGWIN_LICENSE" for
9 # details.
10
11 # This makefile requires GNU make.
12
13 SHELL:=@SHELL@
14 VPATH:=@srcdir@
15 srcdir:=@srcdir@
16 objdir:=.
17
18 target_alias:=@target_alias@
19 build_alias:=@build_alias@
20 host_alias:=@host_alias@
21 prefix:=@prefix@
22
23 program_transform_name:=@program_transform_name@
24 exec_prefix:=@exec_prefix@
25 bindir:=@bindir@
26 libdir:=@libdir@
27 ifeq ($(target_alias),$(host_alias))
28 ifeq ($(build_alias),$(host_alias))
29 tooldir:=$(exec_prefix)
30 else
31 tooldir:=$(exec_prefix)/$(target_alias)
32 endif
33 else
34 tooldir:=$(exec_prefix)/$(target_alias)
35 endif
36 datadir:=@datadir@
37 infodir:=@infodir@
38 includedir:=@includedir@
39
40 INSTALL:=@INSTALL@
41 INSTALL_PROGRAM:=@INSTALL_PROGRAM@
42 INSTALL_DATA:=@INSTALL_DATA@
43
44 SUBDIRS=@subdirs@
45 INSTALL_SUBDIRS=${patsubst %,install_%,$(SUBDIRS)}
46 CLEAN_SUBDIRS=${patsubst %,clean_%,$(SUBDIRS)}
47 ZLIB=${findstring zlib,$(SUBDIRS)}
48
49 INSTALL_LICENSE:=@INSTALL_LICENSE@
50
51 .PHONY: all install clean all-info info install-info install-license check \
52 $(SUBDIRS) $(INSTALL_SUBDIRS) $(CLEAN_SUBDIRS)
53
54 .SUFFIXES:
55
56 MAKEOVERRIDES_WORKAROUND=${wordlist 2,1,a b c}
57
58 ifneq ($(MAKEOVERRIDES_WORKAROUND),)
59 override MAKE:=$(MAKE) $(MAKEOVERRIDES)
60 MAKEOVERRIDES:=
61 export MAKEOVERRIDES
62 endif
63
64 all: Makefile $(SUBDIRS)
65
66 install-license: CYGWIN_LICENSE
67 ${INSTALL} -d $(prefix)/share/doc/Cygwin
68 ${INSTALL} $^ $(prefix)/share/doc/Cygwin
69
70 install: Makefile $(INSTALL_LICENSE) $(INSTALL_SUBDIRS)
71
72 clean: $(CLEAN_SUBDIRS)
73
74 all-info:
75
76 install-info:
77
78 info:
79
80 $(SUBDIRS):
81 @if cd $@ 2>/dev/null; then \
82 test "$@" = "mingw" && export DISTCC_HOSTS=localhost;\
83 $(MAKE) all || exit 1; \
84 fi || exit 0
85
86 $(INSTALL_SUBDIRS):
87 @if cd ${patsubst install_%,%,$@} 2>/dev/null; then \
88 $(MAKE) install || exit 1; \
89 fi || exit 0
90
91 $(CLEAN_SUBDIRS):
92 @if cd ${patsubst clean_%,%,$@} 2>/dev/null; then \
93 $(MAKE) clean || exit 1; \
94 fi || exit 0
95
96 .PRECIOUS: Makefile
97
98 Makefile: Makefile.in $(srcdir)/configure.in config.status
99 $(SHELL) config.status
100
101 config.status: configure
102 $(SHELL) config.status --recheck
103
104 # The below rule is intended to run configure only when "make check" is
105 # actually specified, i.e., not in a cross-compilation environment. The
106 # cygwin configuration is copied and modified to ensure that the same configuration
107 # parameters are passed when the testsuite is configured as when cygwin was configured.
108 check: cygwin
109 @if [ -f testsuite/config.status ]; then \
110 cd testsuite; \
111 else \
112 (mkdir testsuite 2>/dev/null || exit 0); \
113 cd testsuite; \
114 sed -e 's%winsup/cygwin\>%winsup/testsuite%g' ../cygwin/config.status > config.status; \
115 chmod a+x config.status; \
116 sh ./config.status --recheck; \
117 sh ./config.status; \
118 fi; \
119 $(MAKE) check
120
121 utils: cygwin mingw
122
123 mingw: w32api
124
125 cygwin: w32api
126
127 cygserver: cygwin
128
129 install_utils: cygwin mingw
130
131 install_mingw: w32api
132
133 install_cygwin: w32api
134
135 install_cygserver: cygwin
136
137 lsaauth: mingw cygwin
This page took 0.042593 seconds and 5 git commands to generate.