old-exhal/makefile
Devin Acker 23a609086f this is where I try out the github windows client
Ten years ago we had Steve Jobs, Johnny Cash, and Bob Hope. Now, we have
no jobs, no cash, and no hope.
2013-06-04 21:56:07 -04:00

30 lines
No EOL
735 B
Makefile

# HAL (de)compression tools
# copyright 2013 Devin Acker (Revenant)
# See copying.txt for legal information.
CC = gcc
FLAGS = -std=c99 -O2 -Wall
# Add extension when compiling for Windows
ifdef SystemRoot
EXT = .exe
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$(EXT) exhal$(EXT)
clean:
del inhal$(EXT) exhal$(EXT) compress.o
inhal$(EXT): inhal.c compress.o
$(CC) $(DEFINES) $(FLAGS) -o inhal$(EXT) inhal.c compress.o
exhal$(EXT): exhal.c compress.o
$(CC) $(DEFINES) $(FLAGS) -o exhal$(EXT) exhal.c compress.o
compress.o: compress.c
$(CC) $(DEFINES) $(FLAGS) -c compress.c