-
Notifications
You must be signed in to change notification settings - Fork 40
/
Makefile.common
46 lines (40 loc) · 1.29 KB
/
Makefile.common
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
# SPDX-License-Identifier: LGPL-2.0-or-later
#
# Copyright (C) 2024 Alexey Gladkov <[email protected]>
#
DEFINE_PATHS = \
-DDATADIR=\"$(datadir)\" \
-DLOCALEDIR=\"$(localedir)\" \
-DDEFMAP=\"$(DEFKEYMAP)\" \
-DKERNDIR=\"$(KERNELDIR)\"
AM_CPPFLAGS = \
$(CODE_COVERAGE_CPPFLAGS) \
$(DEFINE_PATHS) \
-I$(top_srcdir)/src/include \
-I$(top_srcdir)/src/libcommon \
-D_GNU_SOURCE
AM_CFLAGS = $(CODE_COVERAGE_CFLAGS)
LDADD = $(CODE_COVERAGE_LIBS)
SUFFIXES = .gen
V_GEN_SED = $(V_GEN_SED_$(V))
V_GEN_SED_ = $(V_GEN_SED_$(AM_DEFAULT_VERBOSITY))
V_GEN_SED_0 = @echo " SED " $@;
V_GEN_SED_1 =
%: %.gen Makefile
$(V_GEN_SED)$(SED) \
-e 's|[@]DATADIR[@]|${datadir}|g' \
-e 's|[@]DEFKEYMAP[@]|$(DEFKEYMAP)|g' \
-e 's|[@]KERNELDIR[@]|$(KERNELDIR)|g' \
-e 's|[@]VERSION[@]|$(VERSION)|g' \
-e 's|[@]KEYMAPDIR[@]|$(KEYMAPDIR)|g' \
-e 's|[@]UNIMAPDIR[@]|$(UNIMAPDIR)|g' \
-e 's|[@]TRANSDIR[@]|$(TRANSDIR)|g' \
-e 's|[@]VIDEOMODEDIR[@]|$(VIDEOMODEDIR)|g' \
-e 's|[@]FONTDIR[@]|$(FONTDIR)|g' \
-e 's|[@]PARTIALDIR[@]|$(PARTIALDIR)|g' \
-e 's|[@]prefix[@]|$(prefix)|g' \
-e 's|[@]exec_prefix[@]|$(exec_prefix)|g' \
-e 's|[@]libdir[@]|$(libdir)|g' \
-e 's|[@]includedir[@]|$(includedir)|g' \
<$< >$@ && \
chmod --reference=$< $@;