blob: 3b437813584cec4f3d73ba5364353ac4a5cbb29b [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001# Makefile for the Linux logos
2
3obj-$(CONFIG_LOGO) += logo.o
4obj-$(CONFIG_LOGO_LINUX_MONO) += logo_linux_mono.o
5obj-$(CONFIG_LOGO_LINUX_VGA16) += logo_linux_vga16.o
6obj-$(CONFIG_LOGO_LINUX_CLUT224) += logo_linux_clut224.o
Robin Getz122a8812008-05-14 16:05:48 -07007obj-$(CONFIG_LOGO_BLACKFIN_CLUT224) += logo_blackfin_clut224.o
8obj-$(CONFIG_LOGO_BLACKFIN_VGA16) += logo_blackfin_vga16.o
Linus Torvalds1da177e2005-04-16 15:20:36 -07009obj-$(CONFIG_LOGO_DEC_CLUT224) += logo_dec_clut224.o
10obj-$(CONFIG_LOGO_MAC_CLUT224) += logo_mac_clut224.o
11obj-$(CONFIG_LOGO_PARISC_CLUT224) += logo_parisc_clut224.o
12obj-$(CONFIG_LOGO_SGI_CLUT224) += logo_sgi_clut224.o
13obj-$(CONFIG_LOGO_SUN_CLUT224) += logo_sun_clut224.o
14obj-$(CONFIG_LOGO_SUPERH_MONO) += logo_superh_mono.o
15obj-$(CONFIG_LOGO_SUPERH_VGA16) += logo_superh_vga16.o
16obj-$(CONFIG_LOGO_SUPERH_CLUT224) += logo_superh_clut224.o
Hirokazu Takata316240f2005-07-07 17:59:32 -070017obj-$(CONFIG_LOGO_M32R_CLUT224) += logo_m32r_clut224.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070018
Geert Uytterhoevencca9a6c2007-07-17 04:05:51 -070019obj-$(CONFIG_SPU_BASE) += logo_spe_clut224.o
20
Linus Torvalds1da177e2005-04-16 15:20:36 -070021# How to generate logo's
22
Adrian Bunk943ffb52006-01-10 00:10:13 +010023# Use logo-cfiles to retrieve list of .c files to be built
Linus Torvalds1da177e2005-04-16 15:20:36 -070024logo-cfiles = $(notdir $(patsubst %.$(2), %.c, \
25 $(wildcard $(srctree)/$(src)/*$(1).$(2))))
26
27
28# Mono logos
29extra-y += $(call logo-cfiles,_mono,pbm)
30
31# VGA16 logos
32extra-y += $(call logo-cfiles,_vga16,ppm)
33
34# 224 Logos
35extra-y += $(call logo-cfiles,_clut224,ppm)
36
37# Gray 256
38extra-y += $(call logo-cfiles,_gray256,pgm)
39
Sam Ravnborga53c9d52009-06-16 15:34:18 -070040pnmtologo := scripts/pnmtologo
41
Linus Torvalds1da177e2005-04-16 15:20:36 -070042# Create commands like "pnmtologo -t mono -n logo_mac_mono -o ..."
Sam Ravnborgcc873e12006-04-30 23:59:16 +020043quiet_cmd_logo = LOGO $@
Sam Ravnborga53c9d52009-06-16 15:34:18 -070044 cmd_logo = $(pnmtologo) \
Linus Torvalds1da177e2005-04-16 15:20:36 -070045 -t $(patsubst $*_%,%,$(notdir $(basename $<))) \
46 -n $(notdir $(basename $<)) -o $@ $<
47
Sam Ravnborga53c9d52009-06-16 15:34:18 -070048$(obj)/%_mono.c: $(src)/%_mono.pbm $(pnmtologo) FORCE
Linus Torvalds1da177e2005-04-16 15:20:36 -070049 $(call if_changed,logo)
50
Sam Ravnborga53c9d52009-06-16 15:34:18 -070051$(obj)/%_vga16.c: $(src)/%_vga16.ppm $(pnmtologo) FORCE
Linus Torvalds1da177e2005-04-16 15:20:36 -070052 $(call if_changed,logo)
53
Sam Ravnborga53c9d52009-06-16 15:34:18 -070054$(obj)/%_clut224.c: $(src)/%_clut224.ppm $(pnmtologo) FORCE
Linus Torvalds1da177e2005-04-16 15:20:36 -070055 $(call if_changed,logo)
56
Sam Ravnborga53c9d52009-06-16 15:34:18 -070057$(obj)/%_gray256.c: $(src)/%_gray256.pgm $(pnmtologo) FORCE
Linus Torvalds1da177e2005-04-16 15:20:36 -070058 $(call if_changed,logo)
59
60# Files generated that shall be removed upon make clean
61clean-files := *.o *_mono.c *_vga16.c *_clut224.c *_gray256.c