Skip to content
Snippets Groups Projects
  1. May 04, 2021
    • James R.'s avatar
      Rewrite Makefile to be modular as well as more automated · b31056c7
      James R. authored
      Some key points for programmers:
      - Source code files are mostly listed in a 'Sourcefile'.
        So you no longer directly edit the object list. There
        can be multiple Sourcefiles and they can even live in
        subdirectories--the directory name will be prepended to
        every filename in the list. Of course, the Makefile
        still needs to be edited to read from each Sourcefile.
      - Different rules are no longer required for source code
        files that live in subdirectories (such as sdl/ or
        hardware/). Subdirectories Just Work so go ham!
      
      In addition to those points, another important change is
      that the bin directory is no longer divided into platform
      subdirectories (Linux64, Mingw, etc). Executables now go
      directly into bin. If you use DEBUGMODE or target 64-bit,
      then subdirectories for 'debug' and '64' will be made
      though.
      
      Oh by the way, I don't think make clean actually removed
      files before on Windows. It should now. I also fixed as
      many little inconsistencies like that as I noticed.
      
      And now just an overview of the technical aspects that
      shouldn't affect anyone who doesn't REALLY care about the
      Makefile...
      
      objs and dep directories have been moved to a make
      directory. Makefile.cfg and its variants have been moved
      out of their various subdirectories to src/Makefile.d
      make distclean removes the bin and make directories
      entirely, but make clean and cleandep still only affect
      the current build target.
      
      When I say automation, I mean that a lot of copy pasting
      in the Makefile has been reduced.
      b31056c7
    • James R.'s avatar
      Remove bin, objs and dep directories · f637e28d
      James R. authored
      f637e28d
    • James R.'s avatar
      Collect makefiles · 44d21780
      James R. authored
      44d21780
  2. Apr 06, 2021
  3. Mar 01, 2021
  4. Feb 28, 2021
  5. Feb 27, 2021
  6. Feb 25, 2021
  7. Feb 18, 2021
    • James R.'s avatar
      Makefile: add a SILENT flag · 747c278b
      James R. authored
      This makes it print nothing to stdout.
      
      Also fixed some irregularities.
      747c278b
    • James R.'s avatar
      Generate individual dependency files · 3d32f314
      James R. authored
      This removes Makefile.depends. Instead, '.d' files are included from the 'dep'
      directory. This speeds up building because dependencies for every file don't
      need to be regenerated if only one changes.
      
      As a bonus, dependencies also won't be generated if only clean type targets
      are going to be run. Also added a 'distclean' target, which cleans both
      objects and dependency files.
      3d32f314
    • James R.'s avatar
      Makfile: don't print some messages twice · 3003c252
      James R. authored
      3003c252
  8. Dec 24, 2020
  9. Dec 12, 2020
  10. Dec 10, 2020
  11. Nov 29, 2020
  12. Nov 22, 2020
  13. Nov 21, 2020
  14. Nov 19, 2020
  15. Nov 13, 2020
  16. Nov 02, 2020
  17. Oct 31, 2020
  18. Oct 24, 2020
  19. Oct 23, 2020
  20. Oct 20, 2020
  21. Oct 14, 2020
  22. Oct 12, 2020
  23. Oct 03, 2020
Loading