]>
Commit | Line | Data |
---|---|---|
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 | ||
14 | SHELL:=@SHELL@ | |
15 | VPATH:=@srcdir@ | |
16 | srcdir:=@srcdir@ | |
17 | objdir:=. | |
18 | ||
19 | target_alias:=@target_alias@ | |
20 | build_alias:=@build_alias@ | |
21 | host_alias:=@host_alias@ | |
81fa7891 | 22 | prefix:=@prefix@ |
fd49ac27 | 23 | |
81fa7891 CF |
24 | program_transform_name:=@program_transform_name@ |
25 | exec_prefix:=@exec_prefix@ | |
26 | bindir:=@bindir@ | |
27 | libdir:=@libdir@ | |
1fd5e000 CF |
28 | ifeq ($(target_alias),$(host_alias)) |
29 | ifeq ($(build_alias),$(host_alias)) | |
30 | tooldir:=$(exec_prefix) | |
31 | else | |
32 | tooldir:=$(exec_prefix)/$(target_alias) | |
33 | endif | |
34 | else | |
35 | tooldir:=$(exec_prefix)/$(target_alias) | |
36 | endif | |
81fa7891 CF |
37 | datadir:=@datadir@ |
38 | infodir:=@infodir@ | |
39 | includedir:=@includedir@ | |
1fd5e000 | 40 | |
95dc8840 CV |
41 | INSTALL:=@INSTALL@ |
42 | INSTALL_PROGRAM:=@INSTALL_PROGRAM@ | |
43 | INSTALL_DATA:=@INSTALL_DATA@ | |
44 | ||
99fc5e10 | 45 | SUBDIRS=@subdirs@ |
1fd5e000 CF |
46 | INSTALL_SUBDIRS=${patsubst %,install_%,$(SUBDIRS)} |
47 | CLEAN_SUBDIRS=${patsubst %,clean_%,$(SUBDIRS)} | |
aa053fd4 | 48 | ZLIB=${findstring zlib,$(SUBDIRS)} |
1fd5e000 | 49 | |
7e5d0e9f CV |
50 | INSTALL_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 |
57 | MAKEOVERRIDES_WORKAROUND=${wordlist 2,1,a b c} |
58 | ||
59 | ifneq ($(MAKEOVERRIDES_WORKAROUND),) | |
60 | override MAKE:=$(MAKE) $(MAKEOVERRIDES) | |
61 | MAKEOVERRIDES:= | |
62 | export MAKEOVERRIDES | |
63 | endif | |
1fd5e000 CF |
64 | |
65 | all: Makefile $(SUBDIRS) | |
66 | ||
888784b6 | 67 | install-license: CYGWIN_LICENSE COPYING |
99fe2b78 | 68 | ${INSTALL} -d $(DESTDIR)$(prefix)/share/doc/Cygwin |
888784b6 | 69 | for i in $^; do \ |
99fe2b78 | 70 | ${INSTALL} $$i $(DESTDIR)$(prefix)/share/doc/Cygwin ; \ |
888784b6 | 71 | done |
1fd5e000 | 72 | |
7e5d0e9f CV |
73 | install: Makefile $(INSTALL_LICENSE) $(INSTALL_SUBDIRS) |
74 | ||
1fd5e000 CF |
75 | clean: $(CLEAN_SUBDIRS) |
76 | ||
344a1924 CF |
77 | all-info: |
78 | ||
79 | install-info: | |
80 | ||
81 | info: | |
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 | ||
101 | Makefile: Makefile.in $(srcdir)/configure.in config.status | |
102 | $(SHELL) config.status | |
103 | ||
104 | config.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 | 111 | check: 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 | 123 | |
68157644 | 124 | utils: cygwin |
15d0cbd6 CF |
125 | |
126 | mingw: w32api | |
127 | ||
68157644 | 128 | cygwin: |
15d0cbd6 | 129 | |
95b11561 CV |
130 | cygserver: cygwin |
131 | ||
68157644 | 132 | install_utils: cygwin |
15d0cbd6 CF |
133 | |
134 | install_mingw: w32api | |
135 | ||
68157644 | 136 | install_cygwin: |
350c2f44 CF |
137 | |
138 | install_cygserver: cygwin | |
bee65cb8 | 139 | |
68157644 | 140 | lsaauth: |