commit fa6667605a57517b97fce6c196098567171b2cd4
parent 28028036161ef3990b5d14d9f79db1ee6a143cca
Author: Ed van Bruggen <edvb@uw.edu>
Date: Fri, 16 Aug 2019 02:04:56 -0700
Optimize binary when not in debug mode
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
@@ -4,8 +4,8 @@
include config.mk
ifeq ($(DEBUG), 1)
-CFLAGS += -g -DDEBUG
-LDFLAGS += -g
+CFLAGS += -g -Og -DDEBUG
+LDFLAGS += -g -Og
endif
EXE = tisp
diff --git a/config.mk b/config.mk
@@ -11,8 +11,8 @@ LIBS = -lm -ldl
# flags
CPPFLAGS = -DVERSION=\"$(VERSION)\" -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=600
-CFLAGS = -std=c99 -pedantic -Wall -fPIC $(INCS) $(CPPFLAGS)
-LDFLAGS = -Wl,-rpath=$(DESTDIR)$(PREFIX)/lib/tisp $(LIBS)
+CFLAGS = -std=c99 -O3 -pedantic -Wall -fPIC $(INCS) $(CPPFLAGS)
+LDFLAGS = -O3 -Wl,-rpath=$(DESTDIR)$(PREFIX)/lib/tisp $(LIBS)
# turn off debug mode by default
DEBUG ?= 0