changeset 54:779352498a8a

make: beautify
author David Demelier <markand@malikania.fr>
date Sat, 18 Jan 2020 15:27:40 +0100
parents 2e3a1945728e
children 87b32293b95a
files Makefile
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Sat Jan 18 08:44:53 2020 +0100
+++ b/Makefile	Sat Jan 18 15:27:40 2020 +0100
@@ -67,6 +67,10 @@
 TOOLS_OBJS=     ${TOOLS:.c=}
 TOOLS_DEPS=     ${TOOLS:.c=.d}
 
+DEFINES=        -DPREFIX=\""${PREFIX}"\" \
+                -DBINDIR=\""${BINDIR}"\" \
+                -DSHAREDIR=\""${SHAREDIR}"\"
+
 .SUFFIXES:
 .SUFFIXES: .c .o
 
@@ -75,7 +79,7 @@
 -include ${DEPS} ${TESTS_DEPS} ${TOOLS_DEPS}
 
 .c.o:
-	${CC} -DPREFIX=\""${PREFIX}"\" -DBINDIR=\""${BINDIR}"\" -DSHAREDIR=\""${SHAREDIR}"\" ${SDL_CFLAGS} ${CFLAGS} -c $< -o $@
+	${CC} ${DEFINES} ${SDL_CFLAGS} ${CFLAGS} -c $< -o $@
 
 .c:
 	${CC} ${TESTS_INCS} -o $@ ${CFLAGS} $< ${TESTS_LIBS}