Introduction
Introduction Statistics Contact Development Disclaimer Help
Arrange makefile debug target - gramscii - A simple editor for ASCII box-and-ar…
Log
Files
Refs
Tags
README
LICENSE
---
commit 39ec615b54c0cc2734ac29ba4caac574c21503a4
parent 3d5be35e1e30fb6e1fda0ef9a9db6b6d5d839114
Author: Quentin Rameau <[email protected]>
Date: Mon, 12 Aug 2019 14:31:10 +0200
Arrange makefile debug target
Do not try defining macros in the prerequisite section
Make the DEBUG macro a config macro
Diffstat:
M Makefile | 9 ++-------
M config.mk | 4 ++--
2 files changed, 4 insertions(+), 9 deletions(-)
---
diff --git a/Makefile b/Makefile
@@ -8,9 +8,6 @@ INC = config.h gramscii.h arg.h
OBJ = ${SRC:.c=.o}
DISTFILES = ${SRC} ${INC} Makefile config.mk README.md Changelog
-DEBUG = -O0 -Wall -pedantic -g -DDEBUG
-
-
all: options gramscii
options:
@@ -21,13 +18,12 @@ options:
@echo "CC = ${CC}"
@echo "-+-+-+-+-+-+-+-+-+-+-"
-
gramscii: ${OBJ}
${OBJ}: ${INC}
-debug: CFLAGS = ${DEBUG}
-debug: clean all
+debug: clean
+ ${MAKE} CFLAGS="${DEBUG}" all
clean:
@echo cleaning
@@ -57,4 +53,3 @@ dist: clean
@tar -cf gramscii-${VERSION}.tar ./gramscii-${VERSION}
@gzip gramscii-${VERSION}.tar
@rm -rf gramscii-${VERSION}
-
diff --git a/config.mk b/config.mk
@@ -3,5 +3,5 @@ PREFIX = /usr/local
BINDIR = ${PREFIX}/bin
MANDIR = ${PREFIX}/share/man
-CFLAGS = -O3 -std=c99 -pedantic -Wall
-#CC = cc
+CFLAGS = -O3 -std=c99
+DEBUG = -O0 -std=c99 -Wall -pedantic -g -DDEBUG
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.