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.

28 lines
1.3 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/rlgl.h -o rlgl_api.$(EXTENSION) -f $(FORMAT) -d RLAPI -t "RLGL IMPLEMENTATION"
  19. ./raylib_parser -i ../src/easings.h -o easings_api.$(EXTENSION) -f $(FORMAT) -d EASEDEF
  20. ./raylib_parser -i ../src/rmem.h -o rmem_api.$(EXTENSION) -f $(FORMAT) -d RMEMAPI -t "RMEM IMPLEMENTATION"
  21. ./raylib_parser -i ../physac.h -o physac_api.$(EXTENSION) -f $(FORMAT) -d PHYSACDEF -t "PHYSAC IMPLEMENTATION"
  22. ./raylib_parser -i ../raygui.h -o raygui_api.$(EXTENSION) -f $(FORMAT) -d RAYGUIAPI -t "RAYGUI IMPLEMENTATION"
  23. clean:
  24. rm -f raylib_parser *.json *.txt *.xml *.lua