Makefile 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # Makefile for the Linux logos
  2. obj-$(CONFIG_LOGO) += logo.o
  3. obj-$(CONFIG_LOGO_LINUX_MONO) += logo_linux_mono.o
  4. obj-$(CONFIG_LOGO_LINUX_VGA16) += logo_linux_vga16.o
  5. obj-$(CONFIG_LOGO_LINUX_CLUT224) += logo_linux_clut224.o
  6. obj-$(CONFIG_LOGO_BLACKFIN_CLUT224) += logo_blackfin_clut224.o
  7. obj-$(CONFIG_LOGO_BLACKFIN_VGA16) += logo_blackfin_vga16.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
  16. obj-$(CONFIG_LOGO_M32R_CLUT224) += logo_m32r_clut224.o
  17. obj-$(CONFIG_SPU_BASE) += logo_spe_clut224.o
  18. # How to generate logo's
  19. # Use logo-cfiles to retrieve list of .c files to be built
  20. logo-cfiles = $(notdir $(patsubst %.$(2), %.c, \
  21. $(wildcard $(srctree)/$(src)/*$(1).$(2))))
  22. # Mono logos
  23. extra-y += $(call logo-cfiles,_mono,pbm)
  24. # VGA16 logos
  25. extra-y += $(call logo-cfiles,_vga16,ppm)
  26. # 224 Logos
  27. extra-y += $(call logo-cfiles,_clut224,ppm)
  28. # Gray 256
  29. extra-y += $(call logo-cfiles,_gray256,pgm)
  30. pnmtologo := scripts/pnmtologo
  31. # Create commands like "pnmtologo -t mono -n logo_mac_mono -o ..."
  32. quiet_cmd_logo = LOGO $@
  33. cmd_logo = $(pnmtologo) \
  34. -t $(patsubst $*_%,%,$(notdir $(basename $<))) \
  35. -n $(notdir $(basename $<)) -o $@ $<
  36. $(obj)/%_mono.c: $(src)/%_mono.pbm $(pnmtologo) FORCE
  37. $(call if_changed,logo)
  38. $(obj)/%_vga16.c: $(src)/%_vga16.ppm $(pnmtologo) FORCE
  39. $(call if_changed,logo)
  40. $(obj)/%_clut224.c: $(src)/%_clut224.ppm $(pnmtologo) FORCE
  41. $(call if_changed,logo)
  42. $(obj)/%_gray256.c: $(src)/%_gray256.pgm $(pnmtologo) FORCE
  43. $(call if_changed,logo)
  44. # Files generated that shall be removed upon make clean
  45. clean-files := *.o *_mono.c *_vga16.c *_clut224.c *_gray256.c