Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[hlc] Implement automatic compilation with make and Build.xml templates #706

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Commits on Sep 1, 2024

  1. Add Makefile hlc template

    tobil4sk committed Sep 1, 2024
    Configuration menu
    Copy the full SHA
    79e244d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7c32b7d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    373c97e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e674dab View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0f065ca View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    3039f39 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    5254469 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ce0acd2 View commit details
    Browse the repository at this point in the history
  9. Improve makefile template

    Use LDLIBS for passing libraries to the linker:
    https://www.gnu.org/software/make/manual/html_node/Implicit-Variables.html#index-LDLIBS
    
    Compile .c files into separate .o files to avoid recompiling the entire
    project every time. Use .d files to keep track of .c files that
    depend on .h files. For reference:
    https://stackoverflow.com/a/52036564
    tobil4sk committed Sep 1, 2024
    Configuration menu
    Copy the full SHA
    eb320f4 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    a6483ef View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    f3760bd View commit details
    Browse the repository at this point in the history
  12. Fix include path in generated makefile for mingw

    For some reason, mingw doesn't like `-I./`, this causes it to be unable
    to find the includes
    tobil4sk committed Sep 1, 2024
    Configuration menu
    Copy the full SHA
    91e237e View commit details
    Browse the repository at this point in the history
  13. Keep makefile tmp files within hlgen.makefilepath

    Previously it would always generate them next to the .c files,
    regardless of whether hlgen.makefilepath had been set. Now it ensures
    that it doesn't write outside of the Makefile directory.
    
    This means that it first has to create the directories, otherwise the
    compiler complains about directories not existing when it tries to
    write the output files.
    
    ".SUFFIXES" also has to be set as an empty target, otherwise the built-
    in rules mess up the rule dependencies.
    tobil4sk committed Sep 1, 2024
    Configuration menu
    Copy the full SHA
    3b41429 View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2024

  1. Configuration menu
    Copy the full SHA
    b17d6c0 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2024

  1. Configuration menu
    Copy the full SHA
    af2a41b View commit details
    Browse the repository at this point in the history