diff options
-rw-r--r-- | tools/Makefile | 25 |
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 @@ | |||
1 | all: scramble descramble sh2d | 1 | CFLAGS := -O3 -s -ansi |
2 | |||
3 | TARGETS := scramble descramble sh2d \ | ||
4 | scramble.static.bz2 descramble.static.bz2 sh2d.static.bz2 | ||
5 | |||
6 | all: $(TARGETS) | ||
2 | 7 | ||
3 | scramble: scramble.c | 8 | scramble: scramble.c |
4 | 9 | ||
5 | descramble: descramble.c | 10 | descramble: descramble.c |
6 | 11 | ||
7 | sh2d: sh2d.c | 12 | sh2d: sh2d.c |
13 | |||
14 | clean: | ||
15 | rm -f $(TARGETS) *~ | ||
16 | |||
17 | descramble.static.bz2: descramble.c | ||
18 | $(CC) -static $(CFLAGS) -o descramble.static $< | ||
19 | bzip2 -f descramble.static | ||
20 | chmod a+r descramble.static.bz2 | ||
21 | |||
22 | scramble.static.bz2: scramble.c | ||
23 | $(CC) -static $(CFLAGS) -o scramble.static $< | ||
24 | bzip2 -f scramble.static | ||
25 | chmod a+r scramble.static.bz2 | ||
26 | |||
27 | sh2d.static.bz2: sh2d.c | ||
28 | $(CC) -static $(CFLAGS) -o sh2d.static $< | ||
29 | bzip2 -f sh2d.static | ||
30 | chmod a+r sh2d.static.bz2 | ||