Skip to content

Commit

Permalink
Makefile: Use more effective compile flags
Browse files Browse the repository at this point in the history
The ones added are pretty common, and useful.

  -O2 often gives a real performance boost.

  -g  gives us the needed debug symbols, and
      makes it much easier to blame the coder :)

N.B. -Wterror -Wextra -pedantic are (IMHO) of limited
     use, they just point to lesser errors, not the real
     ones.
  • Loading branch information
thomas committed Jan 25, 2019
1 parent 5ade3f7 commit c8f382c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#

CFLAGS= -Wall -Werror -Wextra -pedantic \
-std=gnu99
-std=gnu99 -O2 -g

LDFLAGS=-lm -lXaw -lXt -lX11
# gcc -o xdu -O2 -fno-strength-reduce -fno-strict-aliasing -L/usr/lib64 xdu.o xwin.o -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11
Expand Down

0 comments on commit c8f382c

Please sign in to comment.