xref: /illumos-gate/usr/src/data/consfonts/Makefile (revision 7b34a9a5df26271af0da06974fc361c468cd48d3)
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
226x12b_FNT=	6x12b.fnt
236x12b_SRC=	ter-u12b.bdf
24
258x14_FNT=	8x14.fnt
268x14_SRC=	ter-u14n.bdf ter-u14b.bdf
27
288x14b_FNT=	8x14b.fnt
298x14b_SRC=	ter-u14b.bdf
30
318x14v_FNT=	8x14v.fnt
328x14v_SRC=	ter-u14v.bdf
33
348x16_FNT=	8x16.fnt
358x16_SRC=	ter-u16n.bdf ter-u16b.bdf
36
378x16b_FNT=	8x16b.fnt
388x16b_SRC=	ter-u16b.bdf
39
408x16v_FNT=	8x16v.fnt
418x16v_SRC=	ter-u16v.bdf
42
4310x18_FNT=	10x18.fnt
4410x18_SRC=	ter-u18n.bdf ter-u18b.bdf
45
4610x18b_FNT=	10x18b.fnt
4710x18b_SRC=	ter-u18b.bdf
48
4910x20_FNT=	10x20.fnt
5010x20_SRC=	ter-u20n.bdf ter-u20b.bdf
51
5210x20b_FNT=	10x20b.fnt
5310x20b_SRC=	ter-u20b.bdf
54
5511x22_FNT=	11x22.fnt
5611x22_SRC=	ter-u22n.bdf ter-u22b.bdf
57
5811x22b_FNT=	11x22b.fnt
5911x22b_SRC=	ter-u22b.bdf
60
6112x24_FNT=	12x24.fnt
6212x24_SRC=	ter-u24n.bdf ter-u24b.bdf
63
6412x24b_FNT=	12x24b.fnt
6512x24b_SRC=	ter-u24b.bdf
66
6714x28_FNT=	14x28.fnt
6814x28_SRC=	ter-u28n.bdf ter-u28b.bdf
69
7014x28b_FNT=	14x28b.fnt
7114x28b_SRC=	ter-u28b.bdf
72
7316x32_FNT=	16x32.fnt
7416x32_SRC=	ter-u32n.bdf ter-u32b.bdf
75
7616x32b_FNT=	16x32b.fnt
7716x32b_SRC=	ter-u32b.bdf
78
79FONTS=	$(GALLANT_FNT) $(6x12_FNT) $(8x14_FNT) $(8x16_FNT) $(10x18_FNT)
80FONTS += $(10x20_FNT) $(11x22_FNT) $(12x24_FNT) $(14x28_FNT) $(16x32_FNT)
81FONTS += $(6x12b_FNT) $(8x14b_FNT) $(8x14v_FNT) $(8x16b_FNT) $(8x16v_FNT)
82FONTS += $(10x18b_FNT) $(10x20b_FNT) $(11x22b_FNT) $(12x24b_FNT)
83FONTS += $(14x28b_FNT) $(16x32b_FNT)
84FILES= fonts.dir $(FONTS)
85
86include ../Makefile.data
87
88ROOTFONTDIR=	$(ROOT)/boot/fonts
89ROOTFONTS=	$(FILES:%=$(ROOTFONTDIR)/%)
90ROOTLINK=	$(ROOTSHLIB)/fonts
91
92$(ROOTFONTS) := FILEMODE = 0444
93
94$(ROOTFONTDIR)/%: %
95	$(INS.file)
96
97all:	$(FONTS)
98
99install: all $(ROOTFONTDIR) $(ROOTFONTS) $(ROOTLINK)
100
101clean:
102	-$(RM) $(FONTS)
103
104$(ROOTFONTDIR):
105	$(INS.dir)
106
107$(ROOTLINK): $(ROOTFONTDIR)
108	-$(RM) $@
109	-$(LN) -s ../../../boot/fonts $@
110
111$(GALLANT_FNT): $(GALLANT_SRC)
112	$(VTFONTCVT) -o $@ $(GALLANT_SRC)
113
114$(6x12_FNT): $(6x12_SRC)
115	$(VTFONTCVT) -o $@ $(6x12_SRC)
116
117$(8x14_FNT): $(8x14_SRC)
118	$(VTFONTCVT) -o $@ $(8x14_SRC)
119
120$(8x16_FNT): $(8x16_SRC)
121	$(VTFONTCVT) -o $@ $(8x16_SRC)
122
123$(10x18_FNT): $(10x18_SRC)
124	$(VTFONTCVT) -o $@ $(10x18_SRC)
125
126$(10x20_FNT): $(10x20_SRC)
127	$(VTFONTCVT) -o $@ $(10x20_SRC)
128
129$(11x22_FNT): $(11x22_SRC)
130	$(VTFONTCVT) -o $@ $(11x22_SRC)
131
132$(12x24_FNT): $(12x24_SRC)
133	$(VTFONTCVT) -o $@ $(12x24_SRC)
134
135$(14x28_FNT): $(14x28_SRC)
136	$(VTFONTCVT) -o $@ $(14x28_SRC)
137
138$(16x32_FNT): $(16x32_SRC)
139	$(VTFONTCVT) -o $@ $(16x32_SRC)
140
141$(6x12b_FNT): $(6x12b_SRC)
142	$(VTFONTCVT) -o $@ $(6x12b_SRC)
143
144$(8x14b_FNT): $(8x14b_SRC)
145	$(VTFONTCVT) -o $@ $(8x14b_SRC)
146
147$(8x14v_FNT): $(8x14v_SRC)
148	$(VTFONTCVT) -o $@ $(8x14v_SRC)
149
150$(8x16b_FNT): $(8x16b_SRC)
151	$(VTFONTCVT) -o $@ $(8x16b_SRC)
152
153$(8x16v_FNT): $(8x16v_SRC)
154	$(VTFONTCVT) -o $@ $(8x16v_SRC)
155
156$(10x18b_FNT): $(10x18b_SRC)
157	$(VTFONTCVT) -o $@ $(10x18b_SRC)
158
159$(10x20b_FNT): $(10x20b_SRC)
160	$(VTFONTCVT) -o $@ $(10x20b_SRC)
161
162$(11x22b_FNT): $(11x22b_SRC)
163	$(VTFONTCVT) -o $@ $(11x22b_SRC)
164
165$(12x24b_FNT): $(12x24b_SRC)
166	$(VTFONTCVT) -o $@ $(12x24b_SRC)
167
168$(14x28b_FNT): $(14x28b_SRC)
169	$(VTFONTCVT) -o $@ $(14x28b_SRC)
170
171$(16x32b_FNT): $(16x32b_SRC)
172	$(VTFONTCVT) -o $@ $(16x32b_SRC)
173
174include ../Makefile.targ
175