summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/Makefile25
1 files changed, 24 insertions, 1 deletions
diff --git a/tools/Makefile b/tools/Makefile
index 67c48afb79..25b2419b01 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -1,7 +1,30 @@
1all: scramble descramble sh2d 1CFLAGS := -O3 -s -ansi
2
3TARGETS := scramble descramble sh2d \
4 scramble.static.bz2 descramble.static.bz2 sh2d.static.bz2
5
6all: $(TARGETS)
2 7
3scramble: scramble.c 8scramble: scramble.c
4 9
5descramble: descramble.c 10descramble: descramble.c
6 11
7sh2d: sh2d.c 12sh2d: sh2d.c
13
14clean:
15 rm -f $(TARGETS) *~
16
17descramble.static.bz2: descramble.c
18 $(CC) -static $(CFLAGS) -o descramble.static $<
19 bzip2 -f descramble.static
20 chmod a+r descramble.static.bz2
21
22scramble.static.bz2: scramble.c
23 $(CC) -static $(CFLAGS) -o scramble.static $<
24 bzip2 -f scramble.static
25 chmod a+r scramble.static.bz2
26
27sh2d.static.bz2: sh2d.c
28 $(CC) -static $(CFLAGS) -o sh2d.static $<
29 bzip2 -f sh2d.static
30 chmod a+r sh2d.static.bz2