GNU Make and GNU GCC DEBUG vs RELEASE compiler options
I have an application which has several source/header files along with their corresponding Makefiles.
I want to define two common modes for compilation of all source files contained in the project: DEBUG and RELEASE
What is the best practice to define common DEBUG and RELEASE modes with their own compiler options for all the source/header files contained in the project ?
I don't want to say that the following solution is the ultimate common practice, but it might serve as the basis for some discussion about what is good style and what is bad style ;-)
Assuming the use of GNU make:
main: main.o file.o
- Andi -
|All times are GMT -5. The time now is 07:27 PM.|