summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorQuentin Rameau <quinq@fifth.space>2019-08-05 00:43:46 +0200
committerKatolaZ <katolaz@freaknet.org>2019-08-05 07:06:45 +0100
commit24ef5b3f6cd5000acaa7f2149d95a04680d0be5c (patch)
tree51a4638b4535c27a5218b843a558b31b2877f836 /Makefile
parent2e329d4d55fa9a296a5c27fa3d306840167d25c5 (diff)
Improve Makefile
Actually use LDFLAGS in the build receipe Don't force cc on users Remove unnecessary pattern in clean target Use ${} consistently
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 874d6c5..24aa1d3 100644
--- 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}