Introduction
Introduction Statistics Contact Development Disclaimer Help
Improve Makefile - gramscii - A simple editor for ASCII box-and-arrow charts
Log
Files
Refs
Tags
README
LICENSE
---
commit 24ef5b3f6cd5000acaa7f2149d95a04680d0be5c
parent 2e329d4d55fa9a296a5c27fa3d306840167d25c5
Author: Quentin Rameau <[email protected]>
Date: Mon, 5 Aug 2019 00:43:46 +0200
Improve Makefile
Actually use LDFLAGS in the build receipe
Don't force cc on users
Remove unnecessary pattern in clean target
Use ${} consistently
Diffstat:
M Makefile | 12 ++++++------
M config.mk | 2 +-
2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/Makefile b/Makefile
@@ -11,19 +11,19 @@ all: options gramscii
options:
@echo "-+- build options -+-"
- @echo "PREFIX = $(PREFIX)"
- @echo "CFLAGS = $(CFLAGS)"
- @echo "LDFLAGS = $(LDFLAGS)"
- @echo "CC = $(CC)"
+ @echo "PREFIX = ${PREFIX}"
+ @echo "CFLAGS = ${CFLAGS}"
+ @echo "LDFLAGS = ${LDFLAGS}"
+ @echo "CC = ${CC}"
@echo "-+-+-+-+-+-+-+-+-+-+-"
gramscii: ${SRC} ${INC}
- $(CC) $(CFLAGS) -o gramscii ${SRC}
+ ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${SRC}
clean:
@echo cleaning
- @rm -f $(SRC:.c=) gramscii
+ @rm -f gramscii
install: all
@echo installing executable to ${DESTDIR}${BINDIR}
diff --git a/config.mk b/config.mk
@@ -4,4 +4,4 @@ BINDIR = ${PREFIX}/bin
MANDIR = ${PREFIX}/share/man
CFLAGS = -O3 -std=c90 -pedantic -Wall
-CC = cc
+#CC = cc
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.