You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
1.2 KiB

  1. EXTENSION?=txt
  2. FORMAT?=DEFAULT
  3. raylib_api:
  4. cc raylib_parser.c -o raylib_parser
  5. ./raylib_parser -i ../src/raylib.h -o raylib_api.txt -f DEFAULT -d RLAPI
  6. ./raylib_parser -i ../src/raylib.h -o raylib_api.json -f JSON -d RLAPI
  7. ./raylib_parser -i ../src/raylib.h -o raylib_api.xml -f XML -d RLAPI
  8. ./raylib_parser -i ../src/raylib.h -o raylib_api.lua -f LUA -d RLAPI
  9. all:
  10. cc raylib_parser.c -o raylib_parser
  11. FORMAT=DEFAULT EXTENSION=txt $(MAKE) parse
  12. FORMAT=JSON EXTENSION=json $(MAKE) parse
  13. FORMAT=XML EXTENSION=xml $(MAKE) parse
  14. FORMAT=LUA EXTENSION=lua $(MAKE) parse
  15. parse:
  16. ./raylib_parser -i ../src/raylib.h -o raylib_api.$(EXTENSION) -f $(FORMAT) -d RLAPI
  17. ./raylib_parser -i ../src/raymath.h -o raymath_api.$(EXTENSION) -f $(FORMAT) -d RMAPI
  18. ./raylib_parser -i ../src/extras/easings.h -o easings_api.$(EXTENSION) -f $(FORMAT) -d EASEDEF
  19. ./raylib_parser -i ../src/extras/physac.h -o physac_api.$(EXTENSION) -f $(FORMAT) -d PHYSACDEF
  20. ./raylib_parser -i ../src/extras/raygui.h -o raygui_api.$(EXTENSION) -f $(FORMAT) -d RAYGUIDEF
  21. ./raylib_parser -i ../src/extras/rmem.h -o rmem_api.$(EXTENSION) -f $(FORMAT) -d RMEMAPI
  22. clean:
  23. rm -f raylib_parser *.json *.txt *.xml *.lua