-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile.in
352 lines (265 loc) · 8.01 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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
# Makefile.in: primary common build logic.
# this file is covered by COPYING.SOFORT.
.POSIX:
.SUFFIXES: .a .c .s .o .lo .ao
PACKAGE = @package@
NICKNAME = @nickname@
PROJECT_DIR = @project_dir@
SOURCE_DIR = @source_dir@
GIT_REFERENCE_INDEX = @git_reference_index@
CUSTOM_INSTALL_HEADERS = @custom_install_headers@
AVOID_VERSION = @avoid_version@
PKGNAME = @pkgname@
PKGDESC = @pkgdesc@
PKGUSRC = @pkgusrc@
PKGREPO = @pkgrepo@
PKGPSRC = @pkgpsrc@
PKGDURL = @pkgdurl@
PKGBUGS = @pkgbugs@
PKGHOME = @pkghome@
PKGDEFS = @pkgdefs@
PKGLIBS = @pkglibs@
SRCINFO = @srcinfo@
SRCSITE = @srcsite@
PGPRKEY = @pgprkey@
PGPSKEY = @pgpskey@
RAWBALL = @rawball@
RAWBALL_URL = @rawball_url@
RAWBALL_SHA256 = @rawball_sha256@
MODBALL = @modball@
MODBALL_URL = @modball_url@
MODBALL_SHA256 = @modball_sha256@
SRCBALL = @srcball@
SRCBALL_URL = @srcball_url@
SRCBALL_SHA256 = @srcball_sha256@
MAKE = @make@
MAKEMODE = @makemode@
BUILD = @build@
HOST = @host@
CCHOST = @cchost@
CFGHOST = @cfghost@
TARGET = @target@
ARCH = @arch@
COMPILER = @compiler@
TOOLCHAIN = @toolchain@
SYSROOT = @sysroot@
CROSS_COMPILE = @cross_compile@
SHELL = @shell@
PREFIX = @prefix@
EXEC_PREFIX = @exec_prefix@
BINDIR = @bindir@
SBINDIR = @sbindir@
LIBDIR = @libdir@
INCLUDEDIR = @includedir@
OLDINCLUDEDIR = @oldincludedir@
MANDIR = @mandir@
DOCDIR = @docdir@
LIBEXECDIR = @libexecdir@
SYSCONFDIR = @sysconfdir@
SHAREDSTATEDIR = @sharedstatedir@
LOCALSTATEDIR = @localstatedir@
RUNSTATEDIR = @runstatedir@
DATAROOTDIR = @datarootdir@
DATADIR = @datadir@
INFODIR = @infodir@
LOCALEDIR = @localedir@
HTMLDIR = @htmldir@
DVIDIR = @dvidir@
PDFDIR = @pdfdir@
PSDIR = @psdir@
CFLAGS_COMMON += @cflags_common@
CFLAGS_DEBUG += @cflags_debug@
CFLAGS_CMDLINE += @cflags_cmdline@
CFLAGS_CONFIG += @cflags_config@
CFLAGS_SYSROOT += @cflags_sysroot@
CFLAGS_SITE += @cflags_site@
CFLAGS_PATH += @cflags_path@
CFLAGS_STRICT += @cflags_strict@
CFLAGS_UTIL += @cflags_util@
CFLAGS_LAST += @cflags_last@
CFLAGS_ONCE += @cflags_once@
LDFLAGS_COMMON += @ldflags_common@
LDFLAGS_DEBUG += @ldflags_debug@
LDFLAGS_CMDLINE += @ldflags_cmdline@
LDFLAGS_CONFIG += @ldflags_config@
LDFLAGS_SYSROOT += @ldflags_sysroot@
LDFLAGS_PATH += @ldflags_path@
LDFLAGS_STRICT += @ldflags_strict@
LDFLAGS_UTIL += @ldflags_util@
LDFLAGS_LAST += @ldflags_last@
LDFLAGS_ONCE += @ldflags_once@
USER_CC = @user_cc@
USER_CPP = @user_cpp@
USER_CXX = @user_cxx@
NATIVE_HOST = @native_host@
NATIVE_CFGHOST = @native_cfghost@
NATIVE_CFLAGS = @native_cflags@
NATIVE_LDFLAGS = @native_ldflags@
ALL_SHARED = @all_shared@
ALL_STATIC = @all_static@
DISABLE_FRONTEND = @disable_frontend@
DISABLE_SHARED = @disable_shared@
DISABLE_STATIC = @disable_static@
USE_CUSTOM_CFGDEFS = @use_custom_cfgdefs@
USE_CUSTOM_USRDEFS = @use_custom_usrdefs@
SHARED_LIB_CMD = @shared_lib_cmd@
SHARED_LIB_LDFLAGS = @shared_lib_ldflags@
VERSION_OPT = @version_opt@
SHARED_LIBRARY_OPT = @shared_library_opt@
STATIC_LIBRARY_OPT = @static_library_opt@
APP_FRONTEND_OPT = @app_frontend_opt@
APP_LINKING_OPT = @app_linking_opt@
INSTALL_HEADERS_OPT = @install_headers_opt@
all:
install:
shared:
static:
install-extras:
install-app-extras:
.cflags-host:
@true : $(CFLAGS)
.cflags-native:
@true : $(NATIVE_CFLAGS)
.ldflags-host:
@true : $(LDFLAGS_APP)
.ldflags-native:
@true : $(NATIVE_LDFLAGS)
include ./ccenv/host.mk
include ./ccenv/native.mk
include ./cfgdefs.mk
include ./usrdefs.mk
include $(PROJECT_DIR)/sofort/core/defs.mk
include $(PROJECT_DIR)/sofort/core/pkgconf.mk
include $(PROJECT_DIR)/sofort/core/version.mk
include $(PROJECT_DIR)/sofort/core/flavor.mk
include $(PROJECT_DIR)/sofort/core/infer.mk
include $(PROJECT_DIR)/project/osforce.mk
include $(PROJECT_DIR)/project/tree.mk
include $(PROJECT_DIR)/project/depends.mk
include $(PROJECT_DIR)/project/headers.mk
include $(PROJECT_DIR)/project/common.mk
include $(PROJECT_DIR)/project/arch.mk
include $(PROJECT_DIR)/project/extras.mk
include $(PROJECT_DIR)/project/overrides.mk
all: package-shared package-static app
install: package-install-app
install: package-install-extras
install: install-libs
app: app-tag
app.tag:
cp $(PACKAGE_APP) $(APP)
touch app.tag
install-libs: package-install-shared
install-libs: package-install-static
install-headers-default:
mkdir -p $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)
cp $(API_HEADERS) $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)
install-shared: shared install-lib install-implib
install-shared: package-install-soname package-install-solink
install-shared: install-headers
install-lib: shared
mkdir -p $(DESTDIR)$(LIBDIR)
cp $(SHARED_LIB) $(DESTDIR)$(LIBDIR)
install-static: static install-headers
mkdir -p $(DESTDIR)$(LIBDIR)
cp $(STATIC_LIB) $(DESTDIR)$(LIBDIR)
install-app: app install-app-extras
mkdir -p $(DESTDIR)$(BINDIR)
cp $(APP) $(DESTDIR)$(BINDIR)
install-static-app: static-app install-app-extras
mkdir -p $(DESTDIR)$(BINDIR)
cp $(STATIC_APP) $(DESTDIR)$(BINDIR)/$(NICKNAME)$(OS_APP_SUFFIX)
shared: shared-lib implib
shared: package-shared-soname package-shared-solink
static: static-lib
shared-lib: shared-objs $(SHARED_LIB)
shared-soname: shared-lib $(SHARED_SONAME)
shared-solink: shared-lib $(SHARED_SOLINK)
static-lib: static-objs $(STATIC_LIB)
default-app: version.tag static-objs $(DEFAULT_APP)
shared-app: version.tag shared $(SHARED_APP)
static-app: version.tag static-objs $(STATIC_APP)
shared-objs: dirs $(SHARED_OBJS)
static-objs: dirs $(STATIC_OBJS)
app-objs: dirs $(APP_OBJS)
$(APP_SRCS): srcs.tag
$(COMMON_SRCS): srcs.tag
$(APP_OBJS): $(ALL_HEADERS) host.tag tree.tag
$(SHARED_OBJS): $(ALL_HEADERS) host.tag tree.tag
$(STATIC_OBJS): $(ALL_HEADERS) host.tag tree.tag
$(SHARED_LIB): $(SHARED_OBJS)
$(STATIC_LIB): $(STATIC_OBJS)
$(APP): $(PACKAGE_APP)
$(DEFAULT_APP): $(STATIC_OBJS) $(APP_OBJS)
rm -f app.tag
$(CC) -o $@ $(STATIC_OBJS) $(APP_OBJS) $(LDFLAGS_APP)
$(SHARED_APP): $(DSO_REF_SOLINK) $(APP_OBJS) $(SHARED_SOLINK)
rm -f app.tag
$(CC) -o $@ $(APP_OBJS) $(LDFLAGS_APP) -l$(PACKAGE)
$(STATIC_APP): $(STATIC_OBJS) $(APP_OBJS)
rm -f app.tag
$(CC) -static -o $@ $(STATIC_OBJS) $(APP_OBJS) $(LDFLAGS_STATIC)
dirs: dirs.tag
dirs.tag:
mkdir -p build
mkdir -p bin
mkdir -p lib
touch dirs.tag
host.tag: @makefile@
rm -f host.tmp
touch host.tmp
mv host.tmp host.tag
version.tag: $(GIT_REFERENCE_INDEX) dirs.tag
$(PROJECT_DIR)/sofort/tools/version.sh \
-s $(SOURCE_DIR) \
-o build/$(PACKAGE)_version.h \
-p $(PACKAGE)
touch version.tag
distclean: clean
rm -f ccenv/host.mk
rm -f ccenv/native.mk
rm -f cfgdefs.mk
rm -f usrdefs.mk
rm -f config.log
rm -f @makefile@
rmdir build ccenv bin lib 2>&1 || true
clean: clean-implib
rm -f tree.tag
rm -f srcs.tag
rm -f dirs.tag
rm -f host.tag
rm -f host.tmp
rm -f version.tag
rm -f app.tag
rm -f $(SHARED_OBJS)
rm -f $(STATIC_OBJS)
rm -f $(APP_OBJS)
rm -f $(SHARED_LIB)
rm -f $(SHARED_SONAME)
rm -f $(SHARED_SOLINK)
rm -f $(STATIC_LIB)
rm -f $(APP)
rm -f $(DEFAULT_APP)
rm -f $(SHARED_APP)
rm -f $(STATIC_APP)
rm -f build/$(PACKAGE)_version.h
rm -f build/$(PACKAGE).pc
.PHONY: package-app \
all install shared static app \
shared-objs shared-lib \
shared-soname shared-solink \
package-shared-soname package-shared-solink \
static-objs static-lib \
default-app shared-app static-app \
install-shared install-static \
install-soname install-solink \
package-install-soname package-install-solink \
install-headers install-app \
install-headers-default install-headers-custom \
clean distclean clean-implib version \
.display .conf \
.display-project .display-env .display-tools .display-flags \
.display-pe .display-dirs .display-build \
implib implib-ver implib-soname implib-solink \
install-implib install-implib-ver \
install-implib-soname install-implib-solink