Makefile for ICL


/ Published in: Makefile
Save to your folder(s)

ICL - Windows ICon Library


Copy this code and paste it in your HTML
  1. .PHONY: icl
  2. .SUFFIXES: .icl .ico .rc .res .
  3.  
  4. ##-----------------------------
  5. ## ICL - ICon Library rules
  6. ##-----------------------------
  7.  
  8. icl: (notdir $(CURDIR)).icl
  9.  
  10. %.icl: %.res
  11. gcc -mwindows -s -shared -nostartfiles -o $@ $^
  12.  
  13. %.res: %.rc
  14. windres -O coff -o $@ -i $<
  15.  
  16. %.rc: $(wildcard *.ico)
  17. ls -1 $^ | sed -e 's/\(.\+\).ico/"\1" ICON "&"/' > $@

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.