I know that there is a flag that can be used in makefile to include a header file in all the files which are being compiled, just like there is a -D flag to include a define. What flag is exactly for including header files. I don't remember know.
Linux – How to include header file through makefile
cgcclinuxmakefile
Related Topic
- Linux – Shell command to tar directory excluding certain files/folders
- Linux – Looping through the content of a file in Bash
- Sqlite – Improve INSERT-per-second performance of SQLite
- The purpose of .PHONY in a Makefile
- C++ – C/C++ include header file order
- Linux – How to change permissions for a folder and its subfolders/files in one step
- Linux – How to find all files containing specific text on Linux
Best Answer
In your compile command, you can use the
-include
option: