c - Append to GNU make variables via command line -
I have a GNU make makefile to create a C project with multiple targets ( all
I'm using) Clear
, and some project specific goals). In the process of debugging, I want to add some flag permanently without adding makefil (such as adding a debugging signal or setting a preprocessor flag).
In the past I have done this (using debugging symbols example):
target CFLAG = = g
Unfortunately , This CFLAGS
variable, but instead, to prevent it from being cleared and compiling it, CFLAGS
and LDFLAGS
Check that you may need to modify the Mayfile once, but you should do it Which you want.
Example message file:
override seaflage + = -Wall app: main.c gcc example (cflajs) - one app main.c
Example command lines:
$ make gcc -Wall -o app main.c $ make CFLAGS = -GGC-G-Wal-A App main.c
< / Pre>
Comments
Post a Comment