From d8e6310bb5e0be20ec01635248501c3db895dda2 Mon Sep 17 00:00:00 2001 From: devinacker Date: Tue, 12 Nov 2013 17:07:14 -0500 Subject: [PATCH] http://www.jerkcity.com/_jerkcity490.html --- .gitignore | 5 +++++ makefile | 14 +++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index fc6ddd7..9582303 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,11 @@ *.bin *.exe *.o +*.zip +*.sfc +*.nes +*.gb +*.gbc ################# ## Eclipse diff --git a/makefile b/makefile index 3668acb..11815d2 100644 --- a/makefile +++ b/makefile @@ -2,13 +2,13 @@ # copyright 2013 Devin Acker (Revenant) # See copying.txt for legal information. -FLAGS = -std=c99 -Os -Wall -s -DELETE = rm -f +CFLAGS += -std=c99 -Os -Wall -s # Add extension when compiling for Windows ifdef SystemRoot + CC = gcc EXT = .exe - DELETE = del + RM = del endif # Comment this line to suppress detailed decompression information on stdout @@ -19,13 +19,13 @@ DEFINES += -DEXTRA_OUT all: inhal exhal clean: - $(DELETE) inhal$(EXT) exhal$(EXT) compress.o + $(RM) inhal$(EXT) exhal$(EXT) compress.o inhal: inhal.c compress.o - $(CC) $(DEFINES) $(FLAGS) -o inhal$(EXT) inhal.c compress.o + $(CC) $(DEFINES) $(CFLAGS) -o inhal$(EXT) inhal.c compress.o exhal: exhal.c compress.o - $(CC) $(DEFINES) $(FLAGS) -o exhal$(EXT) exhal.c compress.o + $(CC) $(DEFINES) $(CFLAGS) -o exhal$(EXT) exhal.c compress.o compress.o: compress.c - $(CC) $(DEFINES) $(FLAGS) -c compress.c + $(CC) $(DEFINES) $(CFLAGS) -c compress.c