xref: /illumos-gate/usr/src/data/consfonts/Makefile (revision 8329232e00f1048795bae53acb230316243aadb5)
1#
2# This file and its contents are supplied under the terms of the
3# Common Development and Distribution License ("CDDL"), version 1.0.
4# You may only use this file in accordance with the terms of version
5# 1.0 of the CDDL.
6#
7# A full copy of the text of the CDDL should have accompanied this
8# source.  A copy of the CDDL is also available via the Internet at
9# http://www.illumos.org/license/CDDL.
10#
11
12#
13# Copyright 2017 Toomas Soome <tsoome@me.com>
14#
15
16GALLANT_FNT=	Gallant19.fnt
17GALLANT_SRC=	Gallant19.bdf
18
196x12_FNT=	6x12.fnt
206x12_SRC=	ter-u12n.bdf ter-u12b.bdf
21
228x14_FNT=	8x14.fnt
238x14_SRC=	ter-u14n.bdf ter-u14b.bdf
24
258x16_FNT=	8x16.fnt
268x16_SRC=	ter-u16n.bdf ter-u16b.bdf
27
2810x18_FNT=	10x18.fnt
2910x18_SRC=	ter-u18n.bdf ter-u18b.bdf
30
3110x20_FNT=	10x20.fnt
3210x20_SRC=	ter-u20n.bdf ter-u20b.bdf
33
3411x22_FNT=	11x22.fnt
3511x22_SRC=	ter-u22n.bdf ter-u22b.bdf
36
3712x24_FNT=	12x24.fnt
3812x24_SRC=	ter-u24n.bdf ter-u24b.bdf
39
4014x28_FNT=	14x28.fnt
4114x28_SRC=	ter-u28n.bdf ter-u28b.bdf
42
4316x32_FNT=	16x32.fnt
4416x32_SRC=	ter-u32n.bdf ter-u32b.bdf
45
46FONTS=	$(GALLANT_FNT) $(6x12_FNT) $(8x14_FNT) $(8x16_FNT) $(10x18_FNT)
47FONTS += $(10x20_FNT) $(11x22_FNT) $(12x24_FNT) $(14x28_FNT) $(16x32_FNT)
48FILES= fonts.dir $(FONTS)
49
50include ../Makefile.data
51
52ROOTFONTDIR=	$(ROOT)/boot/fonts
53ROOTFONTS=	$(FILES:%=$(ROOTFONTDIR)/%)
54ROOTLINK=	$(ROOTSHLIB)/fonts
55
56$(ROOTFONTS) := FILEMODE = 0444
57
58$(ROOTFONTDIR)/%: %
59	$(INS.file)
60
61all:	$(FONTS)
62
63install: all $(ROOTFONTDIR) $(ROOTFONTS) $(ROOTLINK)
64
65clean:
66	-$(RM) $(FONTS)
67
68$(ROOTFONTDIR):
69	$(INS.dir)
70
71$(ROOTLINK): $(ROOTFONTDIR)
72	-$(RM) $@
73	-$(LN) -s ../../../boot/fonts $@
74
75$(GALLANT_FNT): $(GALLANT_SRC)
76	$(VTFONTCVT) -o $@ $(GALLANT_SRC)
77
78$(6x12_FNT): $(6x12_SRC)
79	$(VTFONTCVT) -o $@ $(6x12_SRC)
80
81$(8x14_FNT): $(8x14_SRC)
82	$(VTFONTCVT) -o $@ $(8x14_SRC)
83
84$(8x16_FNT): $(8x16_SRC)
85	$(VTFONTCVT) -o $@ $(8x16_SRC)
86
87$(10x18_FNT): $(10x18_SRC)
88	$(VTFONTCVT) -o $@ $(10x18_SRC)
89
90$(10x20_FNT): $(10x20_SRC)
91	$(VTFONTCVT) -o $@ $(10x20_SRC)
92
93$(11x22_FNT): $(11x22_SRC)
94	$(VTFONTCVT) -o $@ $(11x22_SRC)
95
96$(12x24_FNT): $(12x24_SRC)
97	$(VTFONTCVT) -o $@ $(12x24_SRC)
98
99$(14x28_FNT): $(14x28_SRC)
100	$(VTFONTCVT) -o $@ $(14x28_SRC)
101
102$(16x32_FNT): $(16x32_SRC)
103	$(VTFONTCVT) -o $@ $(16x32_SRC)
104
105include ../Makefile.targ
106