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

Popular posts from this blog

asp.net - Change the driver in the connection string to a data source in VB.Net -

objective c - iPhone and it's wireless area -

unix - Listing all shared memory segments used by a process on AIX5.3+ -