Björn Stenberg | efdfdc3 | 2002-03-28 14:42:55 +0000 | [diff] [blame^] | 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) |
Björn Stenberg | e1715c2 | 2002-03-28 14:34:13 +0000 | [diff] [blame] | 7 | |
| 8 | scramble: scramble.c |
| 9 | |
| 10 | descramble: descramble.c |
| 11 | |
| 12 | sh2d: sh2d.c |
Björn Stenberg | efdfdc3 | 2002-03-28 14:42:55 +0000 | [diff] [blame^] | 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 |