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

New makefile #17

Merged
merged 6 commits into from
Aug 10, 2024
Merged

New makefile #17

merged 6 commits into from
Aug 10, 2024

Commits on Aug 9, 2024

  1. New makefile

    1. A single root makefile for everything: library, examples, tests
    2. Introduce makefile variables for all compilation flags
    3. Add comments to explain the -Wl,-E
    4. Use "install" instead of "cp", to set correct permissions.
    5. Can run tests without "make install", using local ptracer.h and pt-run.
    
    Fixes #11
    
    ps.: The new filenames changed all the tracebacks. Can we change the tests so
    that they don't break so easily?
    hugomg committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    32bc5f8 View commit details
    Browse the repository at this point in the history
  2. Compile things before running tests

    If there is a compilation error, then there's no point in running the tests.
    hugomg committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    7cec24a View commit details
    Browse the repository at this point in the history
  3. Get rid of include and src directories

    This way do do not need a -I compilation flag to find the ptracer.h
    and we don't need to discuss what is the name of the include directory.
    hugomg committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    17ab186 View commit details
    Browse the repository at this point in the history
  4. "make install" should never compile things

    It's a bad idea to run the compiler with sudo, and it's not what people expect.
    hugomg committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    a04d767 View commit details
    Browse the repository at this point in the history
  5. Fix -Wformat-security warning

    It was causing the CI to fail, because that's part of -Wextra for them?
    Fixes #18
    hugomg committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    1ecac92 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5f0c41d View commit details
    Browse the repository at this point in the history