Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | # Makefile for the Linux logos |
| 2 | |
| 3 | obj-$(CONFIG_LOGO) += logo.o |
| 4 | obj-$(CONFIG_LOGO_LINUX_MONO) += logo_linux_mono.o |
| 5 | obj-$(CONFIG_LOGO_LINUX_VGA16) += logo_linux_vga16.o |
| 6 | obj-$(CONFIG_LOGO_LINUX_CLUT224) += logo_linux_clut224.o |
Robin Getz | 122a881 | 2008-05-14 16:05:48 -0700 | [diff] [blame] | 7 | obj-$(CONFIG_LOGO_BLACKFIN_CLUT224) += logo_blackfin_clut224.o |
| 8 | obj-$(CONFIG_LOGO_BLACKFIN_VGA16) += logo_blackfin_vga16.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | obj-$(CONFIG_LOGO_DEC_CLUT224) += logo_dec_clut224.o |
| 10 | obj-$(CONFIG_LOGO_MAC_CLUT224) += logo_mac_clut224.o |
| 11 | obj-$(CONFIG_LOGO_PARISC_CLUT224) += logo_parisc_clut224.o |
| 12 | obj-$(CONFIG_LOGO_SGI_CLUT224) += logo_sgi_clut224.o |
| 13 | obj-$(CONFIG_LOGO_SUN_CLUT224) += logo_sun_clut224.o |
| 14 | obj-$(CONFIG_LOGO_SUPERH_MONO) += logo_superh_mono.o |
| 15 | obj-$(CONFIG_LOGO_SUPERH_VGA16) += logo_superh_vga16.o |
| 16 | obj-$(CONFIG_LOGO_SUPERH_CLUT224) += logo_superh_clut224.o |
Hirokazu Takata | 316240f | 2005-07-07 17:59:32 -0700 | [diff] [blame] | 17 | obj-$(CONFIG_LOGO_M32R_CLUT224) += logo_m32r_clut224.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | |
Geert Uytterhoeven | cca9a6c | 2007-07-17 04:05:51 -0700 | [diff] [blame] | 19 | obj-$(CONFIG_SPU_BASE) += logo_spe_clut224.o |
| 20 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 21 | # How to generate logo's |
| 22 | |
Adrian Bunk | 943ffb5 | 2006-01-10 00:10:13 +0100 | [diff] [blame] | 23 | # Use logo-cfiles to retrieve list of .c files to be built |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 24 | logo-cfiles = $(notdir $(patsubst %.$(2), %.c, \ |
| 25 | $(wildcard $(srctree)/$(src)/*$(1).$(2)))) |
| 26 | |
| 27 | |
| 28 | # Mono logos |
| 29 | extra-y += $(call logo-cfiles,_mono,pbm) |
| 30 | |
| 31 | # VGA16 logos |
| 32 | extra-y += $(call logo-cfiles,_vga16,ppm) |
| 33 | |
| 34 | # 224 Logos |
| 35 | extra-y += $(call logo-cfiles,_clut224,ppm) |
| 36 | |
| 37 | # Gray 256 |
| 38 | extra-y += $(call logo-cfiles,_gray256,pgm) |
| 39 | |
Sam Ravnborg | a53c9d5 | 2009-06-16 15:34:18 -0700 | [diff] [blame] | 40 | pnmtologo := scripts/pnmtologo |
| 41 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 42 | # Create commands like "pnmtologo -t mono -n logo_mac_mono -o ..." |
Sam Ravnborg | cc873e1 | 2006-04-30 23:59:16 +0200 | [diff] [blame] | 43 | quiet_cmd_logo = LOGO $@ |
Sam Ravnborg | a53c9d5 | 2009-06-16 15:34:18 -0700 | [diff] [blame] | 44 | cmd_logo = $(pnmtologo) \ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 45 | -t $(patsubst $*_%,%,$(notdir $(basename $<))) \ |
| 46 | -n $(notdir $(basename $<)) -o $@ $< |
| 47 | |
Sam Ravnborg | a53c9d5 | 2009-06-16 15:34:18 -0700 | [diff] [blame] | 48 | $(obj)/%_mono.c: $(src)/%_mono.pbm $(pnmtologo) FORCE |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 49 | $(call if_changed,logo) |
| 50 | |
Sam Ravnborg | a53c9d5 | 2009-06-16 15:34:18 -0700 | [diff] [blame] | 51 | $(obj)/%_vga16.c: $(src)/%_vga16.ppm $(pnmtologo) FORCE |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 52 | $(call if_changed,logo) |
| 53 | |
Sam Ravnborg | a53c9d5 | 2009-06-16 15:34:18 -0700 | [diff] [blame] | 54 | $(obj)/%_clut224.c: $(src)/%_clut224.ppm $(pnmtologo) FORCE |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 55 | $(call if_changed,logo) |
| 56 | |
Sam Ravnborg | a53c9d5 | 2009-06-16 15:34:18 -0700 | [diff] [blame] | 57 | $(obj)/%_gray256.c: $(src)/%_gray256.pgm $(pnmtologo) FORCE |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 58 | $(call if_changed,logo) |
| 59 | |
| 60 | # Files generated that shall be removed upon make clean |
| 61 | clean-files := *.o *_mono.c *_vga16.c *_clut224.c *_gray256.c |