xref: /illumos-gate/usr/src/data/consfonts/Makefile (revision 689b9301078f0c35c7f198fcee8032a0d30eff3a)
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.PARALLEL: $(FONTS) $(ROOTFONTS)
95
96$(ROOTFONTDIR)/%: %
97	$(INS.file)
98
99all:	$(FONTS)
100
101install: all $(ROOTFONTDIR) $(ROOTFONTS) $(ROOTLINK)
102
103clean:
104	-$(RM) $(FONTS)
105
106$(ROOTFONTDIR):
107	$(INS.dir)
108
109$(ROOTLINK): $(ROOTFONTDIR)
110	-$(RM) $@
111	-$(LN) -s ../../../boot/fonts $@
112
113$(GALLANT_FNT): $(GALLANT_SRC)
114	$(VTFONTCVT) -o $@ $(GALLANT_SRC)
115
116$(6x12_FNT): $(6x12_SRC)
117	$(VTFONTCVT) -o $@ $(6x12_SRC)
118
119$(8x14_FNT): $(8x14_SRC)
120	$(VTFONTCVT) -o $@ $(8x14_SRC)
121
122$(8x16_FNT): $(8x16_SRC)
123	$(VTFONTCVT) -o $@ $(8x16_SRC)
124
125$(10x18_FNT): $(10x18_SRC)
126	$(VTFONTCVT) -o $@ $(10x18_SRC)
127
128$(10x20_FNT): $(10x20_SRC)
129	$(VTFONTCVT) -o $@ $(10x20_SRC)
130
131$(11x22_FNT): $(11x22_SRC)
132	$(VTFONTCVT) -o $@ $(11x22_SRC)
133
134$(12x24_FNT): $(12x24_SRC)
135	$(VTFONTCVT) -o $@ $(12x24_SRC)
136
137$(14x28_FNT): $(14x28_SRC)
138	$(VTFONTCVT) -o $@ $(14x28_SRC)
139
140$(16x32_FNT): $(16x32_SRC)
141	$(VTFONTCVT) -o $@ $(16x32_SRC)
142
143$(6x12b_FNT): $(6x12b_SRC)
144	$(VTFONTCVT) -o $@ $(6x12b_SRC)
145
146$(8x14b_FNT): $(8x14b_SRC)
147	$(VTFONTCVT) -o $@ $(8x14b_SRC)
148
149$(8x14v_FNT): $(8x14v_SRC)
150	$(VTFONTCVT) -o $@ $(8x14v_SRC)
151
152$(8x16b_FNT): $(8x16b_SRC)
153	$(VTFONTCVT) -o $@ $(8x16b_SRC)
154
155$(8x16v_FNT): $(8x16v_SRC)
156	$(VTFONTCVT) -o $@ $(8x16v_SRC)
157
158$(10x18b_FNT): $(10x18b_SRC)
159	$(VTFONTCVT) -o $@ $(10x18b_SRC)
160
161$(10x20b_FNT): $(10x20b_SRC)
162	$(VTFONTCVT) -o $@ $(10x20b_SRC)
163
164$(11x22b_FNT): $(11x22b_SRC)
165	$(VTFONTCVT) -o $@ $(11x22b_SRC)
166
167$(12x24b_FNT): $(12x24b_SRC)
168	$(VTFONTCVT) -o $@ $(12x24b_SRC)
169
170$(14x28b_FNT): $(14x28b_SRC)
171	$(VTFONTCVT) -o $@ $(14x28b_SRC)
172
173$(16x32b_FNT): $(16x32b_SRC)
174	$(VTFONTCVT) -o $@ $(16x32b_SRC)
175
176include ../Makefile.targ
177