commit 300556e1e829f68f9a3365f1f0162fc96e925a08
parent 391372be1431acde8f40b26c0207427e22c42a76
Author: Frederic Cambus <fred@statdns.com>
Date: Thu, 21 Feb 2019 21:55:42 +0100
Makefile improvements: do not hardcode CC and do not overwrite CFLAGS.
Diffstat:
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
@@ -9,13 +9,12 @@
# See LICENSE file for details.
#
-CC = gcc
-TARGET = all
-CFLAGS = -Wall -ansi -pedantic
+CC ?= cc
+CFLAGS += -Wall -ansi -pedantic
all:
$(CC) $(CFLAGS) -o pcx2gba pcx2gba.c
$(CC) $(CFLAGS) -o wav2gba wav2gba.c
clean:
- rm -f pcx2gba wav2gba *.o *.core core
+ rm -f pcx2gba wav2gba *.o