[icebreaker] 20/22: Make Makefile respect CC, CFLAGS, LDFLAGS and SDLCONFIG

Andreas Gnau rondom-guest at moszumanska.debian.org
Sat Sep 9 09:06:48 UTC 2017


This is an automated email from the git hooks/post-receive script.

rondom-guest pushed a commit to branch master
in repository icebreaker.

commit 6401e5f2fabbacdaf6e894b954ae03747de98e28
Author: Andreas Gnau <Rondom at Rondom.de>
Date:   Fri Aug 11 19:20:23 2017 -0400

    Make Makefile respect CC, CFLAGS, LDFLAGS and SDLCONFIG
---
 Makefile | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index f0f139b..5ae1922 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
-CC=gcc
+CC?=gcc
 
-SDLCONFIG=sdl-config
+SDLCONFIG?=sdl-config
 
 ifndef prefix
   prefix=/usr/local
@@ -24,7 +24,8 @@ ifndef OPTIMIZE
   OPTIMIZE=-O3
 endif
 
-CFLAGS=-Wall $(OPTIMIZE) $(SDL_CFLAGS) -DDATAPREFIX=\"$(datadir)/icebreaker\" -DHISCOREPREFIX=\"$(highscoredir)\"
+CFLAGS?=-Wall $(OPTIMIZE)
+CFLAGS+=$(SDL_CFLAGS) -DDATAPREFIX=\"$(datadir)/icebreaker\" -DHISCOREPREFIX=\"$(highscoredir)\"
 
 SRC=icebreaker.c cursor.c grid.c laundry.c line.c penguin.c sound.c \
     level.c intro.c text.c status.c transition.c hiscore.c dialog.c \
@@ -94,7 +95,7 @@ icebreaker-$(VERSION).zip: icebreaker.exe
            [ -s $@ ] || rm -f $@
 
 icebreaker:	$(SRC:.c=.o)
-	$(CC) $(CFLAGS) $^ -o icebreaker $(SDL_LIB)
+	$(CC) $(CFLAGS) $^ -o icebreaker $(SDL_LIB) $(LDFLAGS)
 
 man: icebreaker.6
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/icebreaker.git



More information about the Pkg-games-commits mailing list