2013-06-04 21:56:07 -04:00
|
|
|
# HAL (de)compression tools
|
|
|
|
# copyright 2013 Devin Acker (Revenant)
|
|
|
|
# See copying.txt for legal information.
|
|
|
|
|
|
|
|
CC = gcc
|
2013-10-22 19:00:57 -04:00
|
|
|
FLAGS = -std=c99 -Os -Wall -s
|
2013-06-20 11:56:57 +03:00
|
|
|
DELETE = rm
|
2013-06-04 21:56:07 -04:00
|
|
|
|
|
|
|
# Add extension when compiling for Windows
|
|
|
|
ifdef SystemRoot
|
|
|
|
EXT = .exe
|
2013-06-20 11:56:57 +03:00
|
|
|
DELETE = del
|
2013-06-04 21:56:07 -04:00
|
|
|
endif
|
|
|
|
|
|
|
|
# Comment this line to suppress detailed decompression information on stdout
|
|
|
|
DEFINES += -DEXTRA_OUT
|
|
|
|
# Uncomment this line to enable debug output
|
|
|
|
#DEFINES += -DDEBUG_OUT
|
|
|
|
|
2013-10-22 17:02:37 -04:00
|
|
|
all: inhal exhal
|
2013-06-04 21:56:07 -04:00
|
|
|
|
|
|
|
clean:
|
2013-06-20 11:56:57 +03:00
|
|
|
$(DELETE) inhal$(EXT) exhal$(EXT) compress.o
|
2013-06-04 21:56:07 -04:00
|
|
|
|
2013-10-22 17:02:37 -04:00
|
|
|
inhal: inhal.c compress.o
|
2013-06-04 21:56:07 -04:00
|
|
|
$(CC) $(DEFINES) $(FLAGS) -o inhal$(EXT) inhal.c compress.o
|
|
|
|
|
2013-10-22 17:02:37 -04:00
|
|
|
exhal: exhal.c compress.o
|
2013-06-04 21:56:07 -04:00
|
|
|
$(CC) $(DEFINES) $(FLAGS) -o exhal$(EXT) exhal.c compress.o
|
|
|
|
|
|
|
|
compress.o: compress.c
|
2013-06-20 11:56:57 +03:00
|
|
|
$(CC) $(DEFINES) $(FLAGS) -c compress.c
|