OSDN Git Service

* include/cygwin/version.h: Bump DLL minor number.
[pf3gnuchains/pf3gnuchains3x.git] / winsup / Makefile.in
1 # Makefile.in for windows stuff
2 # Copyright 1995, 1996, 1997, 1998, 1999, 2000 Red Hat, Inc.
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
39 SUBDIRS=@SUBDIRS@
40 INSTALL_SUBDIRS=${patsubst %,install_%,$(SUBDIRS)}
41 CLEAN_SUBDIRS=${patsubst %,clean_%,$(SUBDIRS)}
42 ZLIB=${findstring zlib,$(SUBDIRS)}
43
44 .PHONY: all install clean all-info info install-info check \
45         $(SUBDIRS) $(INSTALL_SUBDIRS) $(CLEAN_SUBDIRS)
46
47 .SUFFIXES:
48
49 MAKEOVERRIDES_WORKAROUND=${wordlist 2,1,a b c}
50
51 ifneq ($(MAKEOVERRIDES_WORKAROUND),)
52     override MAKE:=$(MAKE) $(MAKEOVERRIDES)
53     MAKEOVERRIDES:=
54     export MAKEOVERRIDES
55 endif
56
57 all: Makefile $(SUBDIRS)
58
59 install: Makefile $(INSTALL_SUBDIRS)
60
61 clean: $(CLEAN_SUBDIRS)
62
63 all-info:
64
65 install-info:
66
67 info:
68
69 $(SUBDIRS):
70         @if cd $@ 2>/dev/null; then \
71             $(MAKE) all || exit 1; \
72         fi || exit 0
73
74 $(INSTALL_SUBDIRS):
75         @if cd ${patsubst install_%,%,$@} 2>/dev/null; then \
76             $(MAKE) install || exit 1; \
77         fi || exit 0
78
79 $(CLEAN_SUBDIRS):
80         @if cd ${patsubst clean_%,%,$@} 2>/dev/null; then \
81             $(MAKE) clean || exit 1; \
82         fi || exit 0
83
84 .PRECIOUS: Makefile
85
86 Makefile: Makefile.in $(srcdir)/configure.in config.status
87         $(SHELL) config.status
88
89 config.status: configure
90         $(SHELL) config.status --recheck
91
92 check: cygwin
93         @if [ -f testsuite/config.status ]; then \
94             cd testsuite; \
95         else \
96             (mkdir testsuite 2>/dev/null || exit 0); \
97             cd testsuite; \
98             sed -n -e '1,/^done/{' -e 's%/cygwin%/testsuite%g; ' -e 'p; }'  ../cygwin/config.status > config.status; \
99             chmod a+x config.status; \
100             sh ./config.status --recheck; \
101             sh ./config.status; \
102         fi; \
103         $(MAKE) check
104
105 utils: cygwin mingw
106
107 mingw: w32api
108
109 cygwin: w32api
110
111 cinstall: mingw bz2lib $(ZLIB)
112
113 install_utils: cygwin mingw
114
115 install_mingw: w32api
116
117 install_cygwin: w32api
118
119 install_cinstall: mingw bz2lib $(ZLIB)