xref: /illumos-gate/usr/src/data/consfonts/Makefile (revision 4c28a617e3922d92a58e813a5b955eb526b9c386)
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
288x16_FNT=	8x16.fnt
298x16_SRC=	ter-u16n.bdf ter-u16b.bdf
30
3110x18_FNT=	10x18.fnt
3210x18_SRC=	ter-u18n.bdf ter-u18b.bdf
33
3410x20_FNT=	10x20.fnt
3510x20_SRC=	ter-u20n.bdf ter-u20b.bdf
36
3711x22_FNT=	11x22.fnt
3811x22_SRC=	ter-u22n.bdf ter-u22b.bdf
39
4012x24_FNT=	12x24.fnt
4112x24_SRC=	ter-u24n.bdf ter-u24b.bdf
42
4314x28_FNT=	14x28.fnt
4414x28_SRC=	ter-u28n.bdf ter-u28b.bdf
45
4616x32_FNT=	16x32.fnt
4716x32_SRC=	ter-u32n.bdf ter-u32b.bdf
48
49FONTS=	$(GALLANT_FNT) $(6x12_FNT) $(8x14_FNT) $(8x16_FNT) $(10x18_FNT)
50FONTS += $(10x20_FNT) $(11x22_FNT) $(12x24_FNT) $(14x28_FNT) $(16x32_FNT)
51FILES= fonts.dir $(FONTS)
52
53include ../Makefile.data
54
55ROOTFONTDIR=	$(ROOT)/boot/fonts
56ROOTFONTS=	$(FILES:%=$(ROOTFONTDIR)/%)
57ROOTLINK=	$(ROOTSHLIB)/fonts
58
59$(ROOTFONTS) := FILEMODE = 0444
60
61$(ROOTFONTDIR)/%: %
62	$(INS.file)
63
64all:	$(FONTS)
65
66install: all $(ROOTFONTDIR) $(ROOTFONTS) $(ROOTLINK)
67
68clean:
69	-$(RM) $(FONTS)
70
71$(ROOTFONTDIR):
72	$(INS.dir)
73
74$(ROOTLINK): $(ROOTFONTDIR)
75	-$(RM) $@
76	-$(LN) -s ../../../boot/fonts $@
77
78$(GALLANT_FNT): $(GALLANT_SRC)
79	$(VTFONTCVT) -o $@ $(GALLANT_SRC)
80
81$(6x12_FNT): $(6x12_SRC)
82	$(VTFONTCVT) -o $@ $(6x12_SRC)
83
84$(8x14_FNT): $(8x14_SRC)
85	$(VTFONTCVT) -o $@ $(8x14_SRC)
86
87$(8x16_FNT): $(8x16_SRC)
88	$(VTFONTCVT) -o $@ $(8x16_SRC)
89
90$(10x18_FNT): $(10x18_SRC)
91	$(VTFONTCVT) -o $@ $(10x18_SRC)
92
93$(10x20_FNT): $(10x20_SRC)
94	$(VTFONTCVT) -o $@ $(10x20_SRC)
95
96$(11x22_FNT): $(11x22_SRC)
97	$(VTFONTCVT) -o $@ $(11x22_SRC)
98
99$(12x24_FNT): $(12x24_SRC)
100	$(VTFONTCVT) -o $@ $(12x24_SRC)
101
102$(14x28_FNT): $(14x28_SRC)
103	$(VTFONTCVT) -o $@ $(14x28_SRC)
104
105$(16x32_FNT): $(16x32_SRC)
106	$(VTFONTCVT) -o $@ $(16x32_SRC)
107
108include ../Makefile.targ
109