Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | # Makefile for the Linux logos |
| 3 | |
| 4 | obj-$(CONFIG_LOGO) += logo.o |
| 5 | obj-$(CONFIG_LOGO_LINUX_MONO) += logo_linux_mono.o |
| 6 | obj-$(CONFIG_LOGO_LINUX_VGA16) += logo_linux_vga16.o |
| 7 | obj-$(CONFIG_LOGO_LINUX_CLUT224) += logo_linux_clut224.o |
| 8 | obj-$(CONFIG_LOGO_DEC_CLUT224) += logo_dec_clut224.o |
| 9 | obj-$(CONFIG_LOGO_MAC_CLUT224) += logo_mac_clut224.o |
| 10 | obj-$(CONFIG_LOGO_PARISC_CLUT224) += logo_parisc_clut224.o |
| 11 | obj-$(CONFIG_LOGO_SGI_CLUT224) += logo_sgi_clut224.o |
| 12 | obj-$(CONFIG_LOGO_SUN_CLUT224) += logo_sun_clut224.o |
| 13 | obj-$(CONFIG_LOGO_SUPERH_MONO) += logo_superh_mono.o |
| 14 | obj-$(CONFIG_LOGO_SUPERH_VGA16) += logo_superh_vga16.o |
| 15 | obj-$(CONFIG_LOGO_SUPERH_CLUT224) += logo_superh_clut224.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | |
Geert Uytterhoeven | cca9a6c | 2007-07-17 04:05:51 -0700 | [diff] [blame] | 17 | obj-$(CONFIG_SPU_BASE) += logo_spe_clut224.o |
| 18 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | # How to generate logo's |
| 20 | |
Sam Ravnborg | a53c9d5 | 2009-06-16 15:34:18 -0700 | [diff] [blame] | 21 | pnmtologo := scripts/pnmtologo |
| 22 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 23 | # Create commands like "pnmtologo -t mono -n logo_mac_mono -o ..." |
Sam Ravnborg | cc873e1 | 2006-04-30 23:59:16 +0200 | [diff] [blame] | 24 | quiet_cmd_logo = LOGO $@ |
Masahiro Yamada | e3c639b | 2019-08-21 13:12:36 +0900 | [diff] [blame^] | 25 | cmd_logo = $(pnmtologo) -t $(lastword $(subst _, ,$*)) -n $* -o $@ $< |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 26 | |
Masahiro Yamada | e3c639b | 2019-08-21 13:12:36 +0900 | [diff] [blame^] | 27 | $(obj)/%.c: $(src)/%.pbm $(pnmtologo) FORCE |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 28 | $(call if_changed,logo) |
| 29 | |
Masahiro Yamada | e3c639b | 2019-08-21 13:12:36 +0900 | [diff] [blame^] | 30 | $(obj)/%.c: $(src)/%.ppm $(pnmtologo) FORCE |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 31 | $(call if_changed,logo) |
| 32 | |
Masahiro Yamada | e3c639b | 2019-08-21 13:12:36 +0900 | [diff] [blame^] | 33 | $(obj)/%.c: $(src)/%.pgm $(pnmtologo) FORCE |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 34 | $(call if_changed,logo) |
| 35 | |
Masahiro Yamada | 01bb251 | 2019-08-21 13:12:35 +0900 | [diff] [blame] | 36 | # generated C files |
| 37 | targets += *_mono.c *_vga16.c *_clut224.c *_gray256.c |