old-exhal/makefile
2013-10-22 19:00:57 -04:00

32 lines
747 B
Makefile

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