devinacker 2013-11-12 17:07:14 -05:00
parent 39e2c2c03d
commit d8e6310bb5
2 changed files with 12 additions and 7 deletions

5
.gitignore vendored
View file

@ -1,6 +1,11 @@
*.bin *.bin
*.exe *.exe
*.o *.o
*.zip
*.sfc
*.nes
*.gb
*.gbc
################# #################
## Eclipse ## Eclipse

View file

@ -2,13 +2,13 @@
# copyright 2013 Devin Acker (Revenant) # copyright 2013 Devin Acker (Revenant)
# See copying.txt for legal information. # See copying.txt for legal information.
FLAGS = -std=c99 -Os -Wall -s CFLAGS += -std=c99 -Os -Wall -s
DELETE = rm -f
# Add extension when compiling for Windows # Add extension when compiling for Windows
ifdef SystemRoot ifdef SystemRoot
CC = gcc
EXT = .exe EXT = .exe
DELETE = del RM = del
endif endif
# Comment this line to suppress detailed decompression information on stdout # Comment this line to suppress detailed decompression information on stdout
@ -19,13 +19,13 @@ DEFINES += -DEXTRA_OUT
all: inhal exhal all: inhal exhal
clean: clean:
$(DELETE) inhal$(EXT) exhal$(EXT) compress.o $(RM) inhal$(EXT) exhal$(EXT) compress.o
inhal: inhal.c 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 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 compress.o: compress.c
$(CC) $(DEFINES) $(FLAGS) -c compress.c $(CC) $(DEFINES) $(CFLAGS) -c compress.c