Makefile 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #---------------------------------------------------------------------------------------------------------------------
  2. # TARGET is the name of the output.
  3. # BUILD is the directory where object files & intermediate files will be placed.
  4. # LIBBUTANO is the main directory of butano library (https://github.com/GValiente/butano).
  5. # PYTHON is the path to the python interpreter.
  6. # SOURCES is a list of directories containing source code.
  7. # INCLUDES is a list of directories containing extra header files.
  8. # DATA is a list of directories containing binary data.
  9. # GRAPHICS is a list of directories containing files to be processed by grit.
  10. # AUDIO is a list of directories containing files to be processed by mmutil.
  11. # ROMTITLE is a uppercase ASCII, max 12 characters text string containing the output ROM title.
  12. # ROMCODE is a uppercase ASCII, max 4 characters text string containing the output ROM code.
  13. # USERFLAGS is a list of additional compiler flags:
  14. # Pass -flto to enable link-time optimization.
  15. # Pass -O0 to improve debugging.
  16. # USERLIBDIRS is a list of additional directories containing libraries.
  17. # Each libraries directory must contains include and lib subdirectories.
  18. # USERLIBS is a list of additional libraries to link with the project.
  19. # USERBUILD is a list of additional directories to remove when cleaning the project.
  20. # EXTTOOL is an optional command executed before processing audio, graphics and code files.
  21. #
  22. # All directories are specified relative to the project directory where the makefile is found.
  23. #---------------------------------------------------------------------------------------------------------------------
  24. TARGET := $(notdir $(CURDIR))
  25. BUILD := build
  26. LIBBUTANO := ../butano/butano
  27. PYTHON := python
  28. SOURCES := src
  29. INCLUDES := include
  30. DATA :=
  31. GRAPHICS := graphics
  32. AUDIO := audio
  33. ROMTITLE := NOTENOGRAM
  34. ROMCODE := NGRM
  35. USERFLAGS :=
  36. USERLIBDIRS :=
  37. USERLIBS :=
  38. USERBUILD :=
  39. EXTTOOL :=
  40. #---------------------------------------------------------------------------------------------------------------------
  41. # Export absolute butano path:
  42. #---------------------------------------------------------------------------------------------------------------------
  43. ifndef LIBBUTANOABS
  44. export LIBBUTANOABS := $(realpath $(LIBBUTANO))
  45. endif
  46. #---------------------------------------------------------------------------------------------------------------------
  47. # Include main makefile:
  48. #---------------------------------------------------------------------------------------------------------------------
  49. include $(LIBBUTANOABS)/butano.mak