summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2002-05-14 13:45:58 +0000
committerBjörn Stenberg <bjorn@haxx.se>2002-05-14 13:45:58 +0000
commit20dab8c59caa7d2601c74944cbe0e82485df2f6e (patch)
tree2d4a534f8136e3c629938ca9f162a34ed2113a3a
parente6564e2005d12510b3c4159b049de0b774667cbb (diff)
downloadrockbox-20dab8c59caa7d2601c74944cbe0e82485df2f6e.tar.gz
rockbox-20dab8c59caa7d2601c74944cbe0e82485df2f6e.zip
Now creates librockbox.a instead of archos.mod
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@577 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/Makefile28
1 files changed, 7 insertions, 21 deletions
diff --git a/firmware/Makefile b/firmware/Makefile
index efa7c59b4e..62bb9f98da 100644
--- a/firmware/Makefile
+++ b/firmware/Makefile
@@ -20,36 +20,22 @@ TARGET = -DARCHOS_PLAYER=1
20#TARGET = -DARCHOS_PLAYER_OLD=1 20#TARGET = -DARCHOS_PLAYER_OLD=1
21#TARGET = -DARCHOS_RECORDER=1 21#TARGET = -DARCHOS_RECORDER=1
22 22
23CFLAGS = -Os -Wall -m1 -nostdlib -Wstrict-prototypes -fomit-frame-pointer -fschedule-insns $(INCLUDES) $(TARGET) -DDEBUG 23CFLAGS = -Os -W -Wall -m1 -nostdlib -Wstrict-prototypes -fomit-frame-pointer -fschedule-insns $(INCLUDES) $(TARGET) -DDEBUG
24AFLAGS += -small -relax 24AFLAGS += -small -relax
25 25
26SRC := $(wildcard drivers/*.c common/*.c *.c) 26SRC := $(wildcard drivers/*.c common/*.c malloc/*.c *.c)
27OBJS := $(SRC:%.c=%.o) crt0.o 27OBJS := $(SRC:%.c=%.o) crt0.o
28DEPS:=.deps
29DEPDIRS:=$(DEPS) $(DEPS)/drivers $(DEPS)/common $(DEPS)/malloc
28 30
29all : archos.mod # archos.asm
30
31archos.elf : $(OBJS) app.lds
32 $(CC) -nostdlib -o archos.elf $(OBJS) -lgcc -lc -Tapp.lds -Wl,-Map,archos.map
33
34archos.bin : archos.elf
35 $(OC) -O binary archos.elf archos.bin
36
37archos.asm: archos.bin
38 ../tools/sh2d -sh1 archos.bin > archos.asm
39
40archos.mod : archos.bin
41 ../tools/scramble archos.bin archos.mod
42 31
43dist: 32librockbox.a: $(OBJS)
44 tar czvf dist.tar.gz Makefile main.c start.s app.lds 33 $(AR) ruv $@ $+
45 34
46clean: 35clean:
47 -rm -f *.x *.i *.o *.elf *.bin *.map *.mod *.bak *~ 36 -rm -f $(OBJS) *.x *.i *.o *.elf *.bin *.map *.mod *.bak *~
48 -$(RM) -r $(DEPS) 37 -$(RM) -r $(DEPS)
49 38
50DEPS:=.deps
51DEPDIRS:=$(DEPS) $(DEPS)/drivers $(DEPS)/common
52
53$(DEPS)/%.d: %.c 39$(DEPS)/%.d: %.c
54 @$(SHELL) -c 'for d in $(DEPDIRS); do { if [ ! -d $$d ]; then mkdir $$d; fi; }; done' 40 @$(SHELL) -c 'for d in $(DEPDIRS); do { if [ ! -d $$d ]; then mkdir $$d; fi; }; done'
55 @echo "Updating dependencies for $<" 41 @echo "Updating dependencies for $<"