What is the difference between cppflags and cxxflags




















Macros is an old name for them, still used by some. GNU make doc calls them variables. The only reason that the names matter is the default make rules, visible via make -p , which use some of them. The Android NDK, for one huge example. Compiling C programs n. And just to make what Mizux said as a minimal example:. Those variables are only used in make's implicit rules automatically: if compilation had used our own explicit rules, then we would have to explicitly use those variables as in:.

Not always. Etc, etc, etc. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 12 years, 9 months ago. Active 4 years, 1 month ago. Viewed 65k times. Improve this question. You can get make to print out its predefined variables and rules database using the invocation make -p — Daniele Pallastrelli.

Add a comment. Active Oldest Votes. Improve this answer. Ergwun Kieron Kieron It is also not uncommon to override a user variable at make -time. Many installers do this with prefix , but this can be useful with compiler flags too. So in general, users could conceivably want to place options at arbitrary places in the command line, but Automake does not support this. It would be difficult to make such generality comprehensible. Being able to specify the final options commonly suffices.

Even something like.



0コメント

  • 1000 / 1000