summaryrefslogtreecommitdiffstats
path: root/tools/Makefile
blob: 25b2419b01a9a3754abb32bbd8385698b09dc08b (plain)
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
CFLAGS := -O3 -s -ansi

TARGETS := scramble descramble sh2d \
	scramble.static.bz2 descramble.static.bz2 sh2d.static.bz2

all: $(TARGETS)

scramble: scramble.c

descramble: descramble.c

sh2d: sh2d.c

clean:
	rm -f $(TARGETS) *~

descramble.static.bz2: descramble.c
	$(CC) -static $(CFLAGS) -o descramble.static $<
	bzip2 -f descramble.static
	chmod a+r descramble.static.bz2

scramble.static.bz2: scramble.c
	$(CC) -static $(CFLAGS) -o scramble.static $<
	bzip2 -f scramble.static
	chmod a+r scramble.static.bz2

sh2d.static.bz2: sh2d.c
	$(CC) -static $(CFLAGS) -o sh2d.static $<
	bzip2 -f sh2d.static
	chmod a+r sh2d.static.bz2