xref: /illumos-gate/usr/src/data/consfonts/Makefile (revision 4b529e40b9b8c5bcd0a4bc923a168c7988b72748)
1*4b529e40SToomas Soome#
2*4b529e40SToomas Soome# This file and its contents are supplied under the terms of the
3*4b529e40SToomas Soome# Common Development and Distribution License ("CDDL"), version 1.0.
4*4b529e40SToomas Soome# You may only use this file in accordance with the terms of version
5*4b529e40SToomas Soome# 1.0 of the CDDL.
6*4b529e40SToomas Soome#
7*4b529e40SToomas Soome# A full copy of the text of the CDDL should have accompanied this
8*4b529e40SToomas Soome# source.  A copy of the CDDL is also available via the Internet at
9*4b529e40SToomas Soome# http://www.illumos.org/license/CDDL.
10*4b529e40SToomas Soome#
11*4b529e40SToomas Soome
12*4b529e40SToomas Soome#
13*4b529e40SToomas Soome# Copyright 2017 Toomas Soome <tsoome@me.com>
14*4b529e40SToomas Soome#
15*4b529e40SToomas Soome
16*4b529e40SToomas SoomeGALLANT_FNT=	Gallant19.fnt
17*4b529e40SToomas SoomeGALLANT_SRC=	Gallant19.bdf
18*4b529e40SToomas Soome
19*4b529e40SToomas Soome6x12_FNT=	6x12.fnt
20*4b529e40SToomas Soome6x12_SRC=	ter-u12n.bdf ter-u12b.bdf
21*4b529e40SToomas Soome
22*4b529e40SToomas Soome8x14_FNT=	8x14.fnt
23*4b529e40SToomas Soome8x14_SRC=	ter-u14n.bdf ter-u14b.bdf
24*4b529e40SToomas Soome
25*4b529e40SToomas Soome8x16_FNT=	8x16.fnt
26*4b529e40SToomas Soome8x16_SRC=	ter-u16n.bdf ter-u16b.bdf
27*4b529e40SToomas Soome
28*4b529e40SToomas Soome8x16_FNT=	8x16.fnt
29*4b529e40SToomas Soome8x16_SRC=	ter-u16n.bdf ter-u16b.bdf
30*4b529e40SToomas Soome
31*4b529e40SToomas Soome10x18_FNT=	10x18.fnt
32*4b529e40SToomas Soome10x18_SRC=	ter-u18n.bdf ter-u18b.bdf
33*4b529e40SToomas Soome
34*4b529e40SToomas Soome10x20_FNT=	10x20.fnt
35*4b529e40SToomas Soome10x20_SRC=	ter-u20n.bdf ter-u20b.bdf
36*4b529e40SToomas Soome
37*4b529e40SToomas Soome11x22_FNT=	11x22.fnt
38*4b529e40SToomas Soome11x22_SRC=	ter-u22n.bdf ter-u22b.bdf
39*4b529e40SToomas Soome
40*4b529e40SToomas Soome12x24_FNT=	12x24.fnt
41*4b529e40SToomas Soome12x24_SRC=	ter-u24n.bdf ter-u24b.bdf
42*4b529e40SToomas Soome
43*4b529e40SToomas Soome14x28_FNT=	14x28.fnt
44*4b529e40SToomas Soome14x28_SRC=	ter-u28n.bdf ter-u28b.bdf
45*4b529e40SToomas Soome
46*4b529e40SToomas Soome16x32_FNT=	16x32.fnt
47*4b529e40SToomas Soome16x32_SRC=	ter-u32n.bdf ter-u32b.bdf
48*4b529e40SToomas Soome
49*4b529e40SToomas SoomeFONTS=	$(GALLANT_FNT) $(6x12_FNT) $(8x14_FNT) $(8x16_FNT) $(10x18_FNT)
50*4b529e40SToomas SoomeFONTS += $(10x20_FNT) $(11x22_FNT) $(12x24_FNT) $(14x28_FNT) $(16x32_FNT)
51*4b529e40SToomas SoomeFILES= fonts.dir $(FONTS)
52*4b529e40SToomas Soome
53*4b529e40SToomas Soomeinclude ../Makefile.data
54*4b529e40SToomas Soome
55*4b529e40SToomas SoomeROOTFONTDIR=	$(ROOT)/boot/fonts
56*4b529e40SToomas SoomeROOTFONTS=	$(FILES:%=$(ROOTFONTDIR)/%)
57*4b529e40SToomas SoomeROOTLINK=	$(ROOTSHLIB)/fonts
58*4b529e40SToomas Soome
59*4b529e40SToomas Soome$(ROOTFONTS) := FILEMODE = 0444
60*4b529e40SToomas Soome
61*4b529e40SToomas Soome$(ROOTFONTDIR)/%: %
62*4b529e40SToomas Soome	$(INS.file)
63*4b529e40SToomas Soome
64*4b529e40SToomas Soomeall:	$(FONTS)
65*4b529e40SToomas Soome
66*4b529e40SToomas Soomeinstall: all $(ROOTFONTDIR) $(ROOTFONTS) $(ROOTLINK)
67*4b529e40SToomas Soome
68*4b529e40SToomas Soomeclean:
69*4b529e40SToomas Soome	-$(RM) $(FONTS)
70*4b529e40SToomas Soome
71*4b529e40SToomas Soome$(ROOTFONTDIR):
72*4b529e40SToomas Soome	$(INS.dir)
73*4b529e40SToomas Soome
74*4b529e40SToomas Soome$(ROOTLINK): $(ROOTFONTDIR)
75*4b529e40SToomas Soome	-$(RM) $@
76*4b529e40SToomas Soome	-$(LN) -s ../../../boot/fonts $@
77*4b529e40SToomas Soome
78*4b529e40SToomas Soome$(GALLANT_FNT): $(GALLANT_SRC)
79*4b529e40SToomas Soome	$(VTFONTCVT) -o $@ $(GALLANT_SRC)
80*4b529e40SToomas Soome
81*4b529e40SToomas Soome$(6x12_FNT): $(6x12_SRC)
82*4b529e40SToomas Soome	$(VTFONTCVT) -o $@ $(6x12_SRC)
83*4b529e40SToomas Soome
84*4b529e40SToomas Soome$(8x14_FNT): $(8x14_SRC)
85*4b529e40SToomas Soome	$(VTFONTCVT) -o $@ $(8x14_SRC)
86*4b529e40SToomas Soome
87*4b529e40SToomas Soome$(8x16_FNT): $(8x16_SRC)
88*4b529e40SToomas Soome	$(VTFONTCVT) -o $@ $(8x16_SRC)
89*4b529e40SToomas Soome
90*4b529e40SToomas Soome$(10x18_FNT): $(10x18_SRC)
91*4b529e40SToomas Soome	$(VTFONTCVT) -o $@ $(10x18_SRC)
92*4b529e40SToomas Soome
93*4b529e40SToomas Soome$(10x20_FNT): $(10x20_SRC)
94*4b529e40SToomas Soome	$(VTFONTCVT) -o $@ $(10x20_SRC)
95*4b529e40SToomas Soome
96*4b529e40SToomas Soome$(11x22_FNT): $(11x22_SRC)
97*4b529e40SToomas Soome	$(VTFONTCVT) -o $@ $(11x22_SRC)
98*4b529e40SToomas Soome
99*4b529e40SToomas Soome$(12x24_FNT): $(12x24_SRC)
100*4b529e40SToomas Soome	$(VTFONTCVT) -o $@ $(12x24_SRC)
101*4b529e40SToomas Soome
102*4b529e40SToomas Soome$(14x28_FNT): $(14x28_SRC)
103*4b529e40SToomas Soome	$(VTFONTCVT) -o $@ $(14x28_SRC)
104*4b529e40SToomas Soome
105*4b529e40SToomas Soome$(16x32_FNT): $(16x32_SRC)
106*4b529e40SToomas Soome	$(VTFONTCVT) -o $@ $(16x32_SRC)
107*4b529e40SToomas Soome
108*4b529e40SToomas Soomeinclude ../Makefile.targ
109