]>
Commit | Line | Data |
---|---|---|
1fd5e000 | 1 | # Makefile.in for windows stuff |
02b503c8 | 2 | # Copyright 1995, 1996, 1997, 1998, 1999, 2000 Red Hat, Inc. |
1fd5e000 CF |
3 | # |
4 | # This file is part of Cygwin. | |
5 | # | |
6 | # This software is a copyrighted work licensed under the terms of the | |
7 | # Cygwin license. Please consult the file "CYGWIN_LICENSE" for | |
8 | # details. | |
9 | ||
10 | # This makefile requires GNU make. | |
11 | ||
12 | SHELL:=@SHELL@ | |
13 | VPATH:=@srcdir@ | |
14 | srcdir:=@srcdir@ | |
15 | objdir:=. | |
16 | ||
17 | target_alias:=@target_alias@ | |
18 | build_alias:=@build_alias@ | |
19 | host_alias:=@host_alias@ | |
20 | prefix:=@prefix@ | |
21 | ||
22 | program_transform_name:=@program_transform_name@ | |
23 | exec_prefix:=@exec_prefix@ | |
24 | bindir:=@bindir@ | |
25 | libdir:=@libdir@ | |
26 | ifeq ($(target_alias),$(host_alias)) | |
27 | ifeq ($(build_alias),$(host_alias)) | |
28 | tooldir:=$(exec_prefix) | |
29 | else | |
30 | tooldir:=$(exec_prefix)/$(target_alias) | |
31 | endif | |
32 | else | |
33 | tooldir:=$(exec_prefix)/$(target_alias) | |
34 | endif | |
35 | datadir:=@datadir@ | |
36 | infodir:=@infodir@ | |
37 | includedir:=@includedir@ | |
38 | ||
7cf5e175 | 39 | SUBDIRS=@SUBDIRS@ |
1fd5e000 CF |
40 | INSTALL_SUBDIRS=${patsubst %,install_%,$(SUBDIRS)} |
41 | CLEAN_SUBDIRS=${patsubst %,clean_%,$(SUBDIRS)} | |
42 | ||
39630fe3 | 43 | .PHONY: all install clean all-info info install-info check \ |
344a1924 | 44 | $(SUBDIRS) $(INSTALL_SUBDIRS) $(CLEAN_SUBDIRS) |
1fd5e000 CF |
45 | |
46 | .SUFFIXES: | |
47 | ||
7f363152 CF |
48 | MAKEOVERRIDES_WORKAROUND=${wordlist 2,1,a b c} |
49 | ||
50 | ifneq ($(MAKEOVERRIDES_WORKAROUND),) | |
51 | override MAKE:=$(MAKE) $(MAKEOVERRIDES) | |
52 | MAKEOVERRIDES:= | |
53 | export MAKEOVERRIDES | |
54 | endif | |
1fd5e000 CF |
55 | |
56 | all: Makefile $(SUBDIRS) | |
57 | ||
58 | install: Makefile $(INSTALL_SUBDIRS) | |
59 | ||
60 | clean: $(CLEAN_SUBDIRS) | |
61 | ||
344a1924 CF |
62 | all-info: |
63 | ||
64 | install-info: | |
65 | ||
66 | info: | |
67 | ||
1fd5e000 | 68 | $(SUBDIRS): |
a9f20457 | 69 | @if cd $@ 2>/dev/null; then \ |
94597cd0 | 70 | $(MAKE) all || exit 1; \ |
a9f20457 | 71 | fi || exit 0 |
1fd5e000 CF |
72 | |
73 | $(INSTALL_SUBDIRS): | |
a9f20457 | 74 | @if cd ${patsubst install_%,%,$@} 2>/dev/null; then \ |
94597cd0 | 75 | $(MAKE) install || exit 1; \ |
a9f20457 | 76 | fi || exit 0 |
1fd5e000 CF |
77 | |
78 | $(CLEAN_SUBDIRS): | |
a9f20457 | 79 | @if cd ${patsubst clean_%,%,$@} 2>/dev/null; then \ |
94597cd0 | 80 | $(MAKE) clean || exit 1; \ |
a9f20457 | 81 | fi || exit 0 |
1fd5e000 CF |
82 | |
83 | .PRECIOUS: Makefile | |
84 | ||
85 | Makefile: Makefile.in $(srcdir)/configure.in config.status | |
86 | $(SHELL) config.status | |
87 | ||
88 | config.status: configure | |
89 | $(SHELL) config.status --recheck | |
39630fe3 | 90 | |
a9f20457 | 91 | check: cygwin |
7cf5e175 | 92 | @if [ -f testsuite/config.status ]; then \ |
a9f20457 CF |
93 | cd testsuite; \ |
94 | else \ | |
7cf5e175 | 95 | (mkdir testsuite 2>/dev/null || exit 0); \ |
a9f20457 CF |
96 | cd testsuite; \ |
97 | sed -n -e '1,/^done/{' -e 's%/cygwin%/testsuite%g; ' -e 'p; }' ../cygwin/config.status > config.status; \ | |
98 | chmod a+x config.status; \ | |
99 | sh ./config.status --recheck; \ | |
100 | sh ./config.status; \ | |
101 | fi; \ | |
102 | $(MAKE) check | |
15d0cbd6 CF |
103 | |
104 | utils: cygwin mingw | |
105 | ||
106 | mingw: w32api | |
107 | ||
108 | cygwin: w32api | |
109 | ||
94597cd0 | 110 | cinstall: mingw bz2lib zlib |
15d0cbd6 CF |
111 | |
112 | install_utils: cygwin mingw | |
113 | ||
114 | install_mingw: w32api | |
115 | ||
116 | install_cygwin: w32api | |
117 | ||
94597cd0 | 118 | install_cinstall: mingw bz2lib zlib |