Skip to main content

Generate command-line options for C compiler from used headers

Project description

Headers as Dependencies

HaD reads the #included headers from a bunch of C files and prints the corresponding compiler options. For instance, if #include <math.h> is used, option -lm is required, or if #include <pthread.h> is used, -pthread is required.

To do so, HaD relies on a database maintained by hand, as well as on pkg-config. It currently supports only GCC and Clang on Linux.

Contributions welcome!

You can help a lot by enriching files hadlib/*.cfg. This is actually the heart of the tool. All the rest is simple code to read and present this knowledge.

Licence

HaD is published as free software under the terms of the MIT licence

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Headers as Dependencies-0.3.tar.gz (6.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page