How to define cflags in makefile?

Asked by Whitney

Report
in progress 47
7 Answers 137 views

Leave a reply to Whitney : define cflags in makefile


Answers ( 7 )

  1. CFLAGS and CXXFLAGS are either the name of environment variables or of Makefile variables that can be set to specify additional switches to be passed to a compiler in
    Read More

    Ratings : 13 %   

      
  2. Is it possible to put #define VAR in c program to makefile, so that one can control which part of program should be compiled? Thanks
    Read More

    Ratings : 22 %   

      
  3. [Previous: qmake Reference] [Next: qmake Function Reference] qmake Variable Reference. qmake's fundamental behavior is influenced by variable declarations that define
    Read More

    Ratings : 18 %   

      
  4. I am new to Linux OS. I am trying to compile a.c file using a makefile. The math library has to be linked. My makefile looks like this: CC=gcc CFLAGS=-Wall -lm all
    Read More

    Ratings : 22 %   

      
  5. The make program allows you to use macros, which are similar to variables. Macros are defined in a Makefile as = pairs. For example:
    Read More

    Ratings : 33 %   

      
  6. Arch Linux + DWM + Telescope (window switcher) :

    how to define cflags in makefile

    Ratings : 20 %   

      
  7. Programming Arduino in C++11 -- ROM dumping :

    how to define cflags in makefile

    Ratings : 70 %