diff options
author | Björn Stenberg <bjorn@haxx.se> | 2002-05-24 16:20:49 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2002-05-24 16:20:49 +0000 |
commit | a057e5cce9e306f706c7eeb574edf91b6f0e7ec9 (patch) | |
tree | 092fd19b4d6c371b21129c7e0de901489d6ff3b2 /firmware | |
parent | 13f8775f7220738a807ab02c492095ef4179d77f (diff) |
.S files should be compiled with gcc, not gas
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@706 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/Makefile | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/firmware/Makefile b/firmware/Makefile index a95481cb3f..d1a3ebf5f2 100644 --- a/firmware/Makefile +++ b/firmware/Makefile @@ -31,8 +31,6 @@ else CFLAGS += -fomit-frame-pointer -fschedule-insns endif -AFLAGS += -small -relax - SRC := $(wildcard drivers/*.c common/*.c malloc/*.c *.c) OBJS := $(SRC:%.c=$(OBJDIR)/%.o) $(OBJDIR)/crt0.o @@ -48,6 +46,10 @@ $(OBJDIR)/%.o: %.c @mkdir -p `dirname $@` $(CC) $(CFLAGS) -c $< -o $@ +$(OBJDIR)/%.o: %.S + @mkdir -p `dirname $@` + $(CC) $(CFLAGS) -c $< -o $@ + clean: rm -f $(OBJS) $(OUTPUT) rm -rf $(OBJDIR)/$(DEPS) @@ -56,9 +58,6 @@ clean: $(OBJDIR)/thread.o: thread.c thread.h $(CC) -c -O -fomit-frame-pointer $(CFLAGS) $< -o $@ -$(OBJDIR)/crt0.o: crt0.S - $(AS) $(AFLAGS) -o $@ $< - $(OBJDIR)/$(DEPS)/%.d: %.c @$(SHELL) -c 'for d in $(DEPDIRS); do { if [ ! -d $(OBJDIR)/$$d ]; then mkdir $(OBJDIR)/$$d; fi; }; done' @echo "Updating dependencies for $<" |