blob: 895c60b8402ea11299976da719537258952eb7c2 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Linus Torvalds1da177e2005-04-16 15:20:36 -07002# Makefile for the Linux logos
3
4obj-$(CONFIG_LOGO) += logo.o
5obj-$(CONFIG_LOGO_LINUX_MONO) += logo_linux_mono.o
6obj-$(CONFIG_LOGO_LINUX_VGA16) += logo_linux_vga16.o
7obj-$(CONFIG_LOGO_LINUX_CLUT224) += logo_linux_clut224.o
8obj-$(CONFIG_LOGO_DEC_CLUT224) += logo_dec_clut224.o
9obj-$(CONFIG_LOGO_MAC_CLUT224) += logo_mac_clut224.o
10obj-$(CONFIG_LOGO_PARISC_CLUT224) += logo_parisc_clut224.o
11obj-$(CONFIG_LOGO_SGI_CLUT224) += logo_sgi_clut224.o
12obj-$(CONFIG_LOGO_SUN_CLUT224) += logo_sun_clut224.o
13obj-$(CONFIG_LOGO_SUPERH_MONO) += logo_superh_mono.o
14obj-$(CONFIG_LOGO_SUPERH_VGA16) += logo_superh_vga16.o
15obj-$(CONFIG_LOGO_SUPERH_CLUT224) += logo_superh_clut224.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070016
Geert Uytterhoevencca9a6c2007-07-17 04:05:51 -070017obj-$(CONFIG_SPU_BASE) += logo_spe_clut224.o
18
Linus Torvalds1da177e2005-04-16 15:20:36 -070019# How to generate logo's
20
Masahiro Yamada5f2fb522020-02-02 01:49:24 +090021hostprogs := pnmtologo
Sam Ravnborga53c9d52009-06-16 15:34:18 -070022
Linus Torvalds1da177e2005-04-16 15:20:36 -070023# Create commands like "pnmtologo -t mono -n logo_mac_mono -o ..."
Sam Ravnborgcc873e12006-04-30 23:59:16 +020024quiet_cmd_logo = LOGO $@
Masahiro Yamada78a20a02019-08-21 13:12:37 +090025 cmd_logo = $(obj)/pnmtologo -t $(lastword $(subst _, ,$*)) -n $* -o $@ $<
Linus Torvalds1da177e2005-04-16 15:20:36 -070026
Masahiro Yamada78a20a02019-08-21 13:12:37 +090027$(obj)/%.c: $(src)/%.pbm $(obj)/pnmtologo FORCE
Linus Torvalds1da177e2005-04-16 15:20:36 -070028 $(call if_changed,logo)
29
Masahiro Yamada78a20a02019-08-21 13:12:37 +090030$(obj)/%.c: $(src)/%.ppm $(obj)/pnmtologo FORCE
Linus Torvalds1da177e2005-04-16 15:20:36 -070031 $(call if_changed,logo)
32
Masahiro Yamada78a20a02019-08-21 13:12:37 +090033$(obj)/%.c: $(src)/%.pgm $(obj)/pnmtologo FORCE
Linus Torvalds1da177e2005-04-16 15:20:36 -070034 $(call if_changed,logo)
35
Masahiro Yamada01bb2512019-08-21 13:12:35 +090036# generated C files
37targets += *_mono.c *_vga16.c *_clut224.c *_gray256.c