Makefile.in 707 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. ##
  2. # icons Makefile fragment
  3. ##
  4. .PHONY: icons_clean
  5. .SUFFIXES: .rc
  6. icons_src = contrib/icons
  7. icons_obj = contrib/icons/.build
  8. icons = ${icons_obj}/icons.o
  9. icons_objs = ${icons_obj}/quantump.o
  10. ifneq (${V},1)
  11. WINDRES := @${WINDRES}
  12. endif
  13. ${icons_obj}/%.o: ${icons_src}/%.rc
  14. $(if ${V},,@echo " WINDRES " $<)
  15. ${WINDRES} -i $< -o $@
  16. ifeq (${EMBED_ICONS},1)
  17. ${icons}: ${icons_obj} ${icons_objs}
  18. $(if ${V},,@echo " CP " ${icons_objs} ${icons})
  19. ${CP} ${icons_objs} ${icons}
  20. else
  21. ${icons}:
  22. @echo "--> Embedding of icon branding disabled."
  23. endif
  24. ${icons_objs}: $(filter-out $(wildcard ${icons_obj}), ${icons_obj})
  25. icons_clean:
  26. $(if ${V},,@echo " RM " ${icons_obj})
  27. ${RM} -r ${icons_obj}