Recipe 526 B

12345678910111213141516171819202122232425262728
  1. <recipe>
  2. <script src="C">
  3. define("OUTPUT", "../counter");
  4. define("CC", "clang");
  5. </script>
  6. <rule name="debug">
  7. flags("-ggdb");
  8. </rule>
  9. <rule name="release">
  10. flags("-Ofast");
  11. </rule>
  12. <rule name="rebuild" requires="clear" then="build"/>
  13. <rule name="build" then="link">
  14. sources(glob("*.c"));
  15. flags("-w");
  16. pkg_config("libpng");
  17. </rule>
  18. <rule name="clear">
  19. `rm -rf *.o $_OUT`;
  20. </rule>
  21. <rule name="entry" requires="release,build"/>
  22. </recipe>