aboutsummaryrefslogtreecommitdiff
path: root/winsup/Makefile.in
blob: 3384c2cf8d8c5ae4db8235a08cbe5c47c1a7536a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
# Makefile.in for windows stuff
# Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2006,
# 2007, 2008
# Red Hat, Inc.
#
# This file is part of Cygwin.
#
# This software is a copyrighted work licensed under the terms of the
# Cygwin license.  Please consult the file "CYGWIN_LICENSE" for
# details.

# This makefile requires GNU make.

SHELL:=@SHELL@
VPATH:=@srcdir@
srcdir:=@srcdir@
objdir:=.

target_alias:=@target_alias@
build_alias:=@build_alias@
host_alias:=@host_alias@
prefix:=@prefix@

program_transform_name:=@program_transform_name@
exec_prefix:=@exec_prefix@
bindir:=@bindir@
libdir:=@libdir@
ifeq ($(target_alias),$(host_alias))
ifeq ($(build_alias),$(host_alias))
tooldir:=$(exec_prefix)
else
tooldir:=$(exec_prefix)/$(target_alias)
endif
else
tooldir:=$(exec_prefix)/$(target_alias)
endif
datadir:=@datadir@
infodir:=@infodir@
includedir:=@includedir@

INSTALL:=@INSTALL@
INSTALL_PROGRAM:=@INSTALL_PROGRAM@
INSTALL_DATA:=@INSTALL_DATA@

SUBDIRS=@subdirs@
INSTALL_SUBDIRS=${patsubst %,install_%,$(SUBDIRS)}
CLEAN_SUBDIRS=${patsubst %,clean_%,$(SUBDIRS)}
ZLIB=${findstring zlib,$(SUBDIRS)}

INSTALL_LICENSE:=@INSTALL_LICENSE@

.PHONY: all install clean all-info info install-info install-license check \
	$(SUBDIRS) $(INSTALL_SUBDIRS) $(CLEAN_SUBDIRS)

.SUFFIXES:

MAKEOVERRIDES_WORKAROUND=${wordlist 2,1,a b c}

ifneq ($(MAKEOVERRIDES_WORKAROUND),)
    override MAKE:=$(MAKE) $(MAKEOVERRIDES)
    MAKEOVERRIDES:=
    export MAKEOVERRIDES
endif

all: Makefile $(SUBDIRS)

install-license: CYGWIN_LICENSE COPYING
	${INSTALL} -d $(DESTDIR)$(prefix)/share/doc/Cygwin
	for i in $^; do \
	  ${INSTALL} $$i $(DESTDIR)$(prefix)/share/doc/Cygwin ; \
	done

install: Makefile $(INSTALL_LICENSE) $(INSTALL_SUBDIRS)

clean: $(CLEAN_SUBDIRS)

all-info:

install-info:

info:

$(SUBDIRS):
	@if cd $@ 2>/dev/null; then \
	    test "$@" = "mingw" && export DISTCC_HOSTS=localhost;\
	    $(MAKE) all || exit 1; \
	fi || exit 0

$(INSTALL_SUBDIRS):
	@if cd ${patsubst install_%,%,$@} 2>/dev/null; then \
	    $(MAKE) install || exit 1; \
	fi || exit 0

$(CLEAN_SUBDIRS):
	@if cd ${patsubst clean_%,%,$@} 2>/dev/null; then \
	    $(MAKE) clean || exit 1; \
	fi || exit 0

.PRECIOUS: Makefile

Makefile: Makefile.in $(srcdir)/configure.in config.status
	$(SHELL) config.status

config.status: configure
	$(SHELL) config.status --recheck

# The below rule is intended to run configure only when "make check" is
# actually specified, i.e., not in a cross-compilation environment.  The
# cygwin configuration is copied and modified to ensure that the same configuration
# parameters are passed when the testsuite is configured as when cygwin was configured.
check: cygwin
	@if [ -f testsuite/config.status ]; then \
	    cd testsuite; \
	else \
	    (mkdir testsuite 2>/dev/null || exit 0); \
	    cd testsuite; \
	    sed -e 's%winsup/cygwin\>%winsup/testsuite%g' ../cygwin/config.status > config.status; \
	    chmod a+x config.status; \
	    sh ./config.status --recheck; \
	    sh ./config.status; \
	fi; \
	$(MAKE) check

utils: cygwin mingw

mingw: w32api

cygwin: w32api

cygserver: cygwin

install_utils: cygwin mingw

install_mingw: w32api

install_cygwin: w32api

install_cygserver: cygwin

lsaauth: mingw cygwin