Skip to content

Commit

Permalink
Makefile: Add a commented out CFLAGS for developing
Browse files Browse the repository at this point in the history
- Use -DDEBUG
- Use -O0 instead of -Os, since Os includes -O2, a thing that makes
  using a debugger harder due to a changed order of computation and
  an inability to inspect variables that got optimized.
  • Loading branch information
ampli committed Sep 14, 2015
1 parent 106502d commit 38c0ed7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
# license that can be found in the LICENSE file.

CC=gcc
# Add -DDEBUG to CFLAGS when developing/testing

CFLAGS=-g -Wall -Os
# Comment out when developing/testing
#CFLAGS=-DDEBUG -g -Wall -O0

TARG=re
OFILES=\
Expand Down

0 comments on commit 38c0ed7

Please sign in to comment.