-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathmakefile
More file actions
32 lines (23 loc) · 737 Bytes
/
makefile
File metadata and controls
32 lines (23 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# HAL (de)compression tools
# copyright 2013 Devin Acker (Revenant)
# See copying.txt for legal information.
CFLAGS += -std=c99 -O3 -Wall -s
# Add extension when compiling for Windows
ifeq ($(OS), Windows_NT)
CC = gcc
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
CFLAGS += $(DEFINES)
all: inhal$(EXT) exhal$(EXT) sniff$(EXT)
clean:
$(RM) inhal$(EXT) exhal$(EXT) sniff$(EXT) *.o
sniff$(EXT): sniff.o compress.o memmem.o
$(CC) $(CFLAGS) -o $@ $^
inhal$(EXT): inhal.o compress.o memmem.o
$(CC) $(CFLAGS) -o $@ $^
exhal$(EXT): exhal.o compress.o memmem.o
$(CC) $(CFLAGS) -o $@ $^