2005-04-16 18:20:36 -04:00
|
|
|
# Makefile for the Linux logos
|
|
|
|
|
|
|
|
obj-$(CONFIG_LOGO) += logo.o
|
|
|
|
obj-$(CONFIG_LOGO_LINUX_MONO) += logo_linux_mono.o
|
|
|
|
obj-$(CONFIG_LOGO_LINUX_VGA16) += logo_linux_vga16.o
|
|
|
|
obj-$(CONFIG_LOGO_LINUX_CLUT224) += logo_linux_clut224.o
|
2008-05-14 19:05:48 -04:00
|
|
|
obj-$(CONFIG_LOGO_BLACKFIN_CLUT224) += logo_blackfin_clut224.o
|
|
|
|
obj-$(CONFIG_LOGO_BLACKFIN_VGA16) += logo_blackfin_vga16.o
|
2005-04-16 18:20:36 -04:00
|
|
|
obj-$(CONFIG_LOGO_DEC_CLUT224) += logo_dec_clut224.o
|
|
|
|
obj-$(CONFIG_LOGO_MAC_CLUT224) += logo_mac_clut224.o
|
|
|
|
obj-$(CONFIG_LOGO_PARISC_CLUT224) += logo_parisc_clut224.o
|
|
|
|
obj-$(CONFIG_LOGO_SGI_CLUT224) += logo_sgi_clut224.o
|
|
|
|
obj-$(CONFIG_LOGO_SUN_CLUT224) += logo_sun_clut224.o
|
|
|
|
obj-$(CONFIG_LOGO_SUPERH_MONO) += logo_superh_mono.o
|
|
|
|
obj-$(CONFIG_LOGO_SUPERH_VGA16) += logo_superh_vga16.o
|
|
|
|
obj-$(CONFIG_LOGO_SUPERH_CLUT224) += logo_superh_clut224.o
|
2005-07-07 20:59:32 -04:00
|
|
|
obj-$(CONFIG_LOGO_M32R_CLUT224) += logo_m32r_clut224.o
|
2005-04-16 18:20:36 -04:00
|
|
|
|
2007-07-17 07:05:51 -04:00
|
|
|
obj-$(CONFIG_SPU_BASE) += logo_spe_clut224.o
|
|
|
|
|
2005-04-16 18:20:36 -04:00
|
|
|
# How to generate logo's
|
|
|
|
|
2006-01-09 18:10:13 -05:00
|
|
|
# Use logo-cfiles to retrieve list of .c files to be built
|
2005-04-16 18:20:36 -04:00
|
|
|
logo-cfiles = $(notdir $(patsubst %.$(2), %.c, \
|
|
|
|
$(wildcard $(srctree)/$(src)/*$(1).$(2))))
|
|
|
|
|
|
|
|
|
|
|
|
# Mono logos
|
|
|
|
extra-y += $(call logo-cfiles,_mono,pbm)
|
|
|
|
|
|
|
|
# VGA16 logos
|
|
|
|
extra-y += $(call logo-cfiles,_vga16,ppm)
|
|
|
|
|
|
|
|
# 224 Logos
|
|
|
|
extra-y += $(call logo-cfiles,_clut224,ppm)
|
|
|
|
|
|
|
|
# Gray 256
|
|
|
|
extra-y += $(call logo-cfiles,_gray256,pgm)
|
|
|
|
|
2009-06-16 18:34:18 -04:00
|
|
|
pnmtologo := scripts/pnmtologo
|
|
|
|
|
2005-04-16 18:20:36 -04:00
|
|
|
# Create commands like "pnmtologo -t mono -n logo_mac_mono -o ..."
|
2006-04-30 17:59:16 -04:00
|
|
|
quiet_cmd_logo = LOGO $@
|
2009-06-16 18:34:18 -04:00
|
|
|
cmd_logo = $(pnmtologo) \
|
2005-04-16 18:20:36 -04:00
|
|
|
-t $(patsubst $*_%,%,$(notdir $(basename $<))) \
|
|
|
|
-n $(notdir $(basename $<)) -o $@ $<
|
|
|
|
|
2009-06-16 18:34:18 -04:00
|
|
|
$(obj)/%_mono.c: $(src)/%_mono.pbm $(pnmtologo) FORCE
|
2005-04-16 18:20:36 -04:00
|
|
|
$(call if_changed,logo)
|
|
|
|
|
2009-06-16 18:34:18 -04:00
|
|
|
$(obj)/%_vga16.c: $(src)/%_vga16.ppm $(pnmtologo) FORCE
|
2005-04-16 18:20:36 -04:00
|
|
|
$(call if_changed,logo)
|
|
|
|
|
2009-06-16 18:34:18 -04:00
|
|
|
$(obj)/%_clut224.c: $(src)/%_clut224.ppm $(pnmtologo) FORCE
|
2005-04-16 18:20:36 -04:00
|
|
|
$(call if_changed,logo)
|
|
|
|
|
2009-06-16 18:34:18 -04:00
|
|
|
$(obj)/%_gray256.c: $(src)/%_gray256.pgm $(pnmtologo) FORCE
|
2005-04-16 18:20:36 -04:00
|
|
|
$(call if_changed,logo)
|
|
|
|
|
|
|
|
# Files generated that shall be removed upon make clean
|
|
|
|
clean-files := *.o *_mono.c *_vga16.c *_clut224.c *_gray256.c
|