changeset 20:2ac93f2b93ae

Update Makefile.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 15 Mar 2013 20:31:22 +0200
parents 16efabca7e04
children 19fccd4a7404
files Makefile
diffstat 1 files changed, 11 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Fri Mar 15 20:27:12 2013 +0200
+++ b/Makefile	Fri Mar 15 20:31:22 2013 +0200
@@ -1,13 +1,21 @@
 # mAKEFiLE fOR 3x666 bY oCSA
+SDL_CFLAGS=`sdl-config --cflags`
+SDL_LDFLAGS=`sdl-config --libs`
+
 CC = gcc
-
 CFLAGS = -O3 -march=core2
 
-CFLAGS += -g -Wall `sdl-config --cflags`
-LDFLAGS = `sdl-config --libs` -lm
+
+CFLAGS += -g -W -Wall $(SDL_CFLAGS)
+LDFLAGS = $(SDL_LDFLAGS) -lm
+
 
 3x666: 3x666.o
 	$(CC) -o $@ $+ $(LDFLAGS)
 
 3x666.o: 3x666.c config.h 3xfont.h
 	$(CC) $(CFLAGS) -c -o $@ $<
+
+clean:
+	$(RM) 3x666.o 3x666
+