Makefile 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. # DMGAUDIO is a list of directories containing files to be processed by mod2gbt and s3m2gbt.
  12. # ROMTITLE is a uppercase ASCII, max 12 characters text string containing the output ROM title.
  13. # ROMCODE is a uppercase ASCII, max 4 characters text string containing the output ROM code.
  14. # USERFLAGS is a list of additional compiler flags:
  15. # Pass -flto to enable link-time optimization.
  16. # Pass -O0 to improve debugging.
  17. # USERASFLAGS is a list of additional assembler flags.
  18. # USERLDFLAGS is a list of additional linker flags:
  19. # Pass -flto=auto -save-temps to enable parallel link-time optimization.
  20. # USERLIBDIRS is a list of additional directories containing libraries.
  21. # Each libraries directory must contains include and lib subdirectories.
  22. # USERLIBS is a list of additional libraries to link with the project.
  23. # USERBUILD is a list of additional directories to remove when cleaning the project.
  24. # EXTTOOL is an optional command executed before processing audio, graphics and code files.
  25. #
  26. # All directories are specified relative to the project directory where the makefile is found.
  27. #---------------------------------------------------------------------------------------------------------------------
  28. TARGET := $(notdir $(CURDIR))
  29. BUILD := build
  30. LIBBUTANO := ../butano/butano
  31. PYTHON := python
  32. SOURCES := src
  33. INCLUDES := include
  34. DATA :=
  35. GRAPHICS := graphics
  36. AUDIO := audio
  37. DMGAUDIO :=
  38. ROMTITLE := ONECOIN
  39. ROMCODE := 10YA
  40. USERFLAGS :=
  41. USERASFLAGS :=
  42. USERLDFLAGS :=
  43. USERLIBDIRS :=
  44. USERLIBS :=
  45. USERBUILD :=
  46. EXTTOOL :=
  47. #---------------------------------------------------------------------------------------------------------------------
  48. # Export absolute butano path:
  49. #---------------------------------------------------------------------------------------------------------------------
  50. ifndef LIBBUTANOABS
  51. export LIBBUTANOABS := $(realpath $(LIBBUTANO))
  52. endif
  53. #---------------------------------------------------------------------------------------------------------------------
  54. # Include main makefile:
  55. #---------------------------------------------------------------------------------------------------------------------
  56. include $(LIBBUTANOABS)/butano.mak