1 # Makefile for the Linux logos
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
7 obj-
$(CONFIG_LOGO_BLACKFIN_CLUT224
) += logo_blackfin_clut224.o
8 obj-
$(CONFIG_LOGO_BLACKFIN_VGA16
) += logo_blackfin_vga16.o
9 obj-
$(CONFIG_LOGO_ZEN_CLUT224
) += logo_zen_clut224.o
10 obj-
$(CONFIG_LOGO_OLDZEN_CLUT224
) += logo_oldzen_clut224.o
11 obj-
$(CONFIG_LOGO_ARCH_CLUT224
) += logo_arch_clut224.o
12 obj-
$(CONFIG_LOGO_GENTOO_CLUT224
) += logo_gentoo_clut224.o
13 obj-
$(CONFIG_LOGO_EXHERBO_CLUT224
) += logo_exherbo_clut224.o
14 obj-
$(CONFIG_LOGO_SLACKWARE_CLUT224
) += logo_slackware_clut224.o
15 obj-
$(CONFIG_LOGO_DEBIAN_CLUT224
) += logo_debian_clut224.o
16 obj-
$(CONFIG_LOGO_FEDORASIMPLE_CLUT224
) += logo_fedorasimple_clut224.o
17 obj-
$(CONFIG_LOGO_FEDORAGLOSSY_CLUT224
) += logo_fedoraglossy_clut224.o
18 obj-
$(CONFIG_LOGO_TITS_CLUT224
) += logo_tits_clut224.o
19 obj-
$(CONFIG_LOGO_BSD_CLUT224
) += logo_bsd_clut224.o
20 obj-
$(CONFIG_LOGO_FBSD_CLUT224
) += logo_fbsd_clut224.o
21 obj-
$(CONFIG_LOGO_DEC_CLUT224
) += logo_dec_clut224.o
22 obj-
$(CONFIG_LOGO_MAC_CLUT224
) += logo_mac_clut224.o
23 obj-
$(CONFIG_LOGO_PARISC_CLUT224
) += logo_parisc_clut224.o
24 obj-
$(CONFIG_LOGO_SGI_CLUT224
) += logo_sgi_clut224.o
25 obj-
$(CONFIG_LOGO_SUN_CLUT224
) += logo_sun_clut224.o
26 obj-
$(CONFIG_LOGO_SUPERH_MONO
) += logo_superh_mono.o
27 obj-
$(CONFIG_LOGO_SUPERH_VGA16
) += logo_superh_vga16.o
28 obj-
$(CONFIG_LOGO_SUPERH_CLUT224
) += logo_superh_clut224.o
29 obj-
$(CONFIG_LOGO_M32R_CLUT224
) += logo_m32r_clut224.o
31 obj-
$(CONFIG_SPU_BASE
) += logo_spe_clut224.o
33 # How to generate logo's
35 # Use logo-cfiles to retrieve list of .c files to be built
36 logo-cfiles
= $(notdir $(patsubst %.
$(2), %.c
, \
37 $(wildcard $(srctree
)/$(src
)/*$(1).
$(2))))
41 extra-y
+= $(call logo-cfiles
,_mono
,pbm
)
44 extra-y
+= $(call logo-cfiles
,_vga16
,ppm
)
47 extra-y
+= $(call logo-cfiles
,_clut224
,ppm
)
50 extra-y
+= $(call logo-cfiles
,_gray256
,pgm
)
52 pnmtologo
:= scripts
/pnmtologo
54 # Create commands like "pnmtologo -t mono -n logo_mac_mono -o ..."
55 quiet_cmd_logo
= LOGO
$@
56 cmd_logo
= $(pnmtologo
) \
57 -t
$(patsubst $*_
%,%,$(notdir $(basename $<))) \
58 -n
$(notdir $(basename $<)) -o
$@
$<
60 $(obj
)/%_mono.c
: $(src
)/%_mono.pbm
$(pnmtologo
) FORCE
61 $(call if_changed
,logo
)
63 $(obj
)/%_vga16.c
: $(src
)/%_vga16.ppm
$(pnmtologo
) FORCE
64 $(call if_changed
,logo
)
66 $(obj
)/%_clut224.c
: $(src
)/%_clut224.ppm
$(pnmtologo
) FORCE
67 $(call if_changed
,logo
)
69 $(obj
)/%_gray256.c
: $(src
)/%_gray256.pgm
$(pnmtologo
) FORCE
70 $(call if_changed
,logo
)
72 # Files generated that shall be removed upon make clean
73 clean-files
:= *.o
*_mono.c
*_vga16.c
*_clut224.c
*_gray256.c