forked from MaxKellermann/w32api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
203 lines (172 loc) · 4.68 KB
/
Makefile.in
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
#
# Makefile.in
#
# This file is part of a free library for the Win32 API.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# start config section
SHELL = @SHELL@
srcdir = @srcdir@
VPATH = @srcdir@
SUBDIRS = @SUBDIRS@
build = @build@
build_alias = @build_alias@
host = @host@
host_alias = @host_alias@
target = @target@
target_alias = @target_alias@
with_cross_host = @with_cross_host@
prefix = @prefix@
conf_prefix = @prefix@
# FIXME: this needs an appropriate AC_SUBST
host_os = mingw32
program_transform_name = @program_transform_name@
exec_prefix = @exec_prefix@
bindir = @bindir@
libdir = @libdir@
tooldir = $(exec_prefix)/$(host_alias)
datadir = @datadir@
infodir = @infodir@
includedir = @includedir@
CC := @CC@
override CC := ${filter-out -L% -B%,${shell echo $(CC) | sed -e 's%\(-isystem\|-iwithprefixbefore\) *[^ ]*\( \|$$\)% %g'}}
# FIXME: Which is it, CC or CC_FOR_TARGET?
CC_FOR_TARGET = $(CC)
AS_FOR_TARGET = $(AS)
CFLAGS = @CFLAGS@
CXXFLAGS = @CXXFLAGS@
AS = @AS@
AR = @AR@
LD = @LD@
AR_FLAGS = rcv
RANLIB = @RANLIB@
DLLTOOL = @DLLTOOL@
DLLTOOLFLAGS =
DLLTOOL_FOR_TARGET = $(DLLTOOL)
DLLTOOL_FLAGS = --as $(AS_FOR_TARGET)
DLLWRAP = @DLLWRAP@
DLLWRAP_FOR_TARGET = $(DLLWRAP)
DLLWRAP_FLAGS = --dlltool $(DLLTOOL) --as $(AS) --driver-name $(CC)
WINDRES = @WINDRES@
WINDRES_FOR_TARGET = @WINDRES@
TAR = tar
TARFLAGS = --lzma -
TARFILEEXT = .tar.lzma
FLAGS_TO_PASS = \
AS="$(AS)" \
CC="$(CC)" \
CFLAGS="$(CFLAGS) $(CFLAGS_COMMON) $(CFLAGS_CONFIG)" \
CXXFLAGS="$(CXXFLAGS) $(CFLAGS_COMMON) $(CFLAGS_CONFIG)" \
CPPFLAGS="$(CPPFLAGS) $(CFLAGS_COMMON) $(CFLAGS_CONFIG)" \
AR="$(AR)" \
RANLIB="$(RANLIB)" \
LD="$(LD)" \
DLLTOOL="$(DLLTOOL)" \
exec_prefix="$(exec_prefix)" \
bindir="$(bindir)" \
libdir="$(libdir)" \
tooldir="$(tooldir)" \
datadir="$(datadir)" \
infodir="$(infodir)" \
includedir="$(includedir)" \
prefix="$(prefix)" \
build="$(build)" \
build_alias="$(build_alias)" \
host="$(host)" \
host_alias="$(host_alias)" \
target="$(target)" \
target_alias="$(target_alias)" \
TAR="$(TAR)" \
TARFLAGS="$(TARFLAGS)" \
TARFILEEXT="$(TARFILEEXT)" \
WINDRES="$(WINDRES)"
# end config section
PACKAGE = w32api
VERSION = 3.15
CYGRELEASE = 1
DIST_FILES = Makefile.in configure.in configure config.guess config.sub \
aclocal.m4 install-sh README.w32api ChangeLog TODO CONTRIBUTIONS
all: $(SUBDIRS)
%-subdirs:
for i in $(SUBDIRS); do \
$(MAKE) $(FLAGS_TO_PASS) -C $$i $*; \
done
lib:
$(MAKE) $(FLAGS_TO_PASS) -C $@
libce:
$(MAKE) $(FLAGS_TO_PASS) -C $@
test:
$(MAKE) -C lib test $(FLAGS_TO_PASS)
install install-headers uninstall:
for i in $(SUBDIRS); do \
(cd $$i; $(MAKE) $@ $(FLAGS_TO_PASS)); \
done
ifdef SNAPDATE
distdir = $(PACKAGE)-$(VERSION)-$(SNAPDATE)-$(host_os)
else
ifneq (,$(findstring cygwin, $(target_alias)))
distdir=$(PACKAGE)-$(VERSION)-$(CYGRELEASE)
else
distdir=$(PACKAGE)-$(VERSION)-$(CYGRELEASE)-$(host_os)
endif
endif
ifneq (,$(findstring mingw, $(target_alias)))
dist_prefix=
else
dist_prefix=/$(conf_prefix)
endif
ifneq (,$(findstring cygwin, $(target_alias)))
TARFLAGS = j
TARFILEEXT = .tar.bz2
endif
dist: srcdist bindist
srcdist:
rm -rf $(distdir)
mkdir $(distdir)
chmod 755 $(distdir)
for i in $(DIST_FILES); do \
cp -p $(srcdir)/$$i $(distdir)/$$i ; \
done
for i in $(SUBDIRS); do \
(cd $$i; $(MAKE) distdir=../$(distdir) dist); \
done
rm -f $(distdir)-src$(TARFILEEXT)
$(TAR) $(TARFLAGS)cf $(distdir)-src$(TARFILEEXT) $(distdir)
ifneq (,$(findstring cygwin, $(target_alias)))
bindist:
rm -rf $(distdir)
mkdir $(distdir)
chmod 755 $(distdir)
$(MAKE) install prefix=`pwd`/$(distdir)$(dist_prefix) exec_prefix=`pwd`/$(distdir)$(dist_prefix)
rm -f $(distdir)$(TARFILEEXT)
cd $(distdir); $(TAR) $(TARFLAGS)cf ../$(distdir)$(TARFILEEXT) *
else
bindist:
rm -rf $(distdir)
mkdir $(distdir)
chmod 755 $(distdir)
$(MAKE) install prefix=`pwd`/$(distdir)$(dist_prefix) exec_prefix=`pwd`/$(distdir)$(dist_prefix)
rm -f $(distdir)$(TARFILEEXT)
cd $(distdir); $(TAR) $(TARFLAGS)cf ../$(distdir)-dev$(TARFILEEXT) *
endif
snapshot:
make dist SNAPDATE=$(shell date '+%Y%m%d')
Makefile: Makefile.in config.status configure
$(SHELL) config.status
mostlyclean-top:
rm -f *~
clean-top: mostlyclean-top
rm -rf $(distdir)
rm -f $(distdir)*$(TARFILEEXT)
maintainer-clean-top:
mostlyclean: mostlyclean-top mostlyclean-subdirs
clean: mostlyclean-top clean-subdirs
distclean: clean-top
$(MAKE) -C lib/directx distclean
$(MAKE) -C lib/ddk distclean
$(MAKE) -C lib distclean
rm -f Makefile config.status config.log config.cache TAGS *~
maintainer-clean: maintainer-clean-subdirs
.PHONY: lib libce test