File: Makefile

package info (click to toggle)
linux 6.17.13-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,735,112 kB
  • sloc: ansic: 26,688,265; asm: 271,225; sh: 147,407; python: 75,980; makefile: 57,304; perl: 36,943; xml: 19,562; cpp: 5,899; yacc: 4,909; lex: 2,943; awk: 1,556; sed: 29; ruby: 25
file content (65 lines) | stat: -rw-r--r-- 1,752 bytes parent folder | download | duplicates (14)
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
# SPDX-License-Identifier: GPL-2.0
#
# This file contains the font map for the default (hardware) font
#
FONTMAPFILE = cp437.uni

obj-$(CONFIG_VT)			+= vt_ioctl.o vc_screen.o \
					   selection.o keyboard.o \
					   vt.o defkeymap.o
obj-$(CONFIG_CONSOLE_TRANSLATIONS)	+= consolemap.o consolemap_deftbl.o \
					   ucs.o

# Files generated that shall be removed upon make clean
clean-files :=	consolemap_deftbl.c defkeymap.c \
		ucs_width_table.h ucs_recompose_table.h ucs_fallback_table.h

hostprogs += conmakehash

quiet_cmd_conmk = CONMK   $@
      cmd_conmk = $(obj)/conmakehash $< > $@

$(obj)/consolemap_deftbl.c: $(src)/$(FONTMAPFILE) $(obj)/conmakehash
	$(call cmd,conmk)

$(obj)/defkeymap.o:  $(obj)/defkeymap.c

# Uncomment if you're changing the keymap and have an appropriate
# loadkeys version for the map. By default, we'll use the shipped
# versions.
# GENERATE_KEYMAP := 1

ifdef GENERATE_KEYMAP

$(obj)/defkeymap.c: $(obj)/%.c: $(src)/%.map
	loadkeys --mktable --unicode $< > $@

endif

$(obj)/ucs.o:	$(src)/ucs.c $(obj)/ucs_width_table.h \
		$(obj)/ucs_recompose_table.h $(obj)/ucs_fallback_table.h

# You may uncomment one of those to have the UCS tables be regenerated
# during the build process. By default the _shipped versions are used.
#
#GENERATE_UCS_TABLES := 1
#GENERATE_UCS_TABLES := 2  # invokes gen_ucs_recompose_table.py with --full

ifdef GENERATE_UCS_TABLES

$(obj)/ucs_width_table.h: $(src)/gen_ucs_width_table.py
	$(PYTHON3) $< -o $@

ifeq ($(GENERATE_UCS_TABLES),2)
gen_recomp_arg := --full
else
gen_recomp_arg :=
endif

$(obj)/ucs_recompose_table.h: $(src)/gen_ucs_recompose_table.py
	$(PYTHON3) $< -o $@ $(gen_recomp_arg)

$(obj)/ucs_fallback_table.h: $(src)/gen_ucs_fallback_table.py
	$(PYTHON3) $< -o $@

endif