]> git.mdlowis.com Git - projs/tide.git/commitdiff
tweak makefile to build on systems with insane default LD commands (I'm looking at...
authorMichael D. Lowis <mike@mdlowis.com>
Thu, 25 May 2017 00:29:28 +0000 (20:29 -0400)
committerMichael D. Lowis <mike@mdlowis.com>
Thu, 25 May 2017 00:29:28 +0000 (20:29 -0400)
TODO.md
config.mk

diff --git a/TODO.md b/TODO.md
index 6daf18e8fe3066152c49f453462662d704d9b56d..07058e0d7b108ed319c590bf571c6b64666c48c1 100644 (file)
--- a/TODO.md
+++ b/TODO.md
@@ -2,13 +2,13 @@
 
 Up Next:
 
-* use transaction ids to only mark buffer dirty when it really is
 * Make Fn keys execute nth command in the tags buffers
 * move by words is inconsistent. Example:
     var infoId = 'readerinfo'+reader.id;
 
 The Future:
 
+* use transaction ids to only mark buffer dirty when it really is
 * refactor selection handling to buf.c to prepare for multiple selections.
 * 100% coverage with unit and unit-integration tests
 * right click to fetch file or line
index 61ab9b2b5ff7022ebe0ad2d9a012ec7fd4bbeffe..3a522b139fb0821a6ed091e0ed1fc22fca940bc8 100644 (file)
--- a/config.mk
+++ b/config.mk
@@ -13,7 +13,7 @@ INCS += -I/usr/include/freetype2
 
 # Compiler Setup
 CC = cc
-CFLAGS = --std=c99 -MMD -g -O0 $(INCS)
+CFLAGS = --std=c99 -MMD $(INCS)
 
 # Linker Setup
 LD = $(CC)
@@ -26,13 +26,19 @@ ARFLAGS = rcs
 # Treat all  warnings as errors (poor man's lint?)
 #CFLAGS += -Wall -Wextra -Werror
 
+# GCC Debugging
+ifeq ($(DEBUG), 1)
+    CFLAGS  += -g -O0
+    LDFLAGS += -g -O0
+endif
+
 # GCC Profiling
 ifeq ($(GPROF), 1)
     CFLAGS  += -pg
     LDFLAGS += -pg
 endif
 
-# Gcov Coverage
+# GCC Coverage
 ifeq ($(GCOV), 1)
     CFLAGS  += --coverage
     LDFLAGS += --coverage