Björn Stenberg | b913925 | 2002-04-11 08:53:12 +0000 | [diff] [blame^] | 1 | # __________ __ ___. |
| 2 | # Open \______ \ ____ ____ | | _\_ |__ _______ ___ |
| 3 | # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / |
| 4 | # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < |
| 5 | # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ |
| 6 | # \/ \/ \/ \/ \/ |
| 7 | # $Id$ |
| 8 | # |
Björn Stenberg | efdfdc3 | 2002-03-28 14:42:55 +0000 | [diff] [blame] | 9 | CFLAGS := -O3 -s -ansi |
| 10 | |
| 11 | TARGETS := scramble descramble sh2d \ |
| 12 | scramble.static.bz2 descramble.static.bz2 sh2d.static.bz2 |
| 13 | |
| 14 | all: $(TARGETS) |
Björn Stenberg | e1715c2 | 2002-03-28 14:34:13 +0000 | [diff] [blame] | 15 | |
| 16 | scramble: scramble.c |
| 17 | |
| 18 | descramble: descramble.c |
| 19 | |
| 20 | sh2d: sh2d.c |
Björn Stenberg | efdfdc3 | 2002-03-28 14:42:55 +0000 | [diff] [blame] | 21 | |
| 22 | clean: |
| 23 | rm -f $(TARGETS) *~ |
| 24 | |
| 25 | descramble.static.bz2: descramble.c |
| 26 | $(CC) -static $(CFLAGS) -o descramble.static $< |
| 27 | bzip2 -f descramble.static |
| 28 | chmod a+r descramble.static.bz2 |
| 29 | |
| 30 | scramble.static.bz2: scramble.c |
| 31 | $(CC) -static $(CFLAGS) -o scramble.static $< |
| 32 | bzip2 -f scramble.static |
| 33 | chmod a+r scramble.static.bz2 |
| 34 | |
| 35 | sh2d.static.bz2: sh2d.c |
| 36 | $(CC) -static $(CFLAGS) -o sh2d.static $< |
| 37 | bzip2 -f sh2d.static |
| 38 | chmod a+r sh2d.static.bz2 |