summaryrefslogtreecommitdiffstats
path: root/tools/Makefile
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2002-03-28 14:42:55 +0000
committerBjörn Stenberg <bjorn@haxx.se>2002-03-28 14:42:55 +0000
commitefdfdc32842b13225650c551fc434ccf8eca3ade (patch)
tree5ab7e92f6b898cad95443e47090fe0ac2a66196a /tools/Makefile
parent09efa1bf0d58d1cbd4b574dc47034f5eeb75fd9e (diff)
downloadrockbox-efdfdc32842b13225650c551fc434ccf8eca3ade.tar.gz
rockbox-efdfdc32842b13225650c551fc434ccf8eca3ade.zip
Added more targets
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@57 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/Makefile')
-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 @@
-all: scramble descramble sh2d
+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