Rev 3386 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3386 | Rev 4153 | ||
---|---|---|---|
Line 30... | Line 30... | ||
30 | ## Setup toolchain |
30 | ## Setup toolchain |
31 | # |
31 | # |
32 | 32 | ||
33 | LIBC_PREFIX = ../../lib/libc |
33 | LIBC_PREFIX = ../../lib/libc |
34 | SOFTINT_PREFIX = ../../lib/softint |
34 | SOFTINT_PREFIX = ../../lib/softint |
- | 35 | ||
35 | include $(LIBC_PREFIX)/Makefile.toolchain |
36 | include $(LIBC_PREFIX)/Makefile.toolchain |
36 | 37 | ||
37 | LIBS = $(LIBC_PREFIX)/libc.a |
38 | LIBS = $(LIBC_PREFIX)/libc.a |
38 | 39 | ||
39 | ## Sources |
40 | ## Sources |
Line 55... | Line 56... | ||
55 | all: $(OUTPUT) $(OUTPUT).disasm |
56 | all: $(OUTPUT) $(OUTPUT).disasm |
56 | 57 | ||
57 | -include Makefile.depend |
58 | -include Makefile.depend |
58 | 59 | ||
59 | clean: |
60 | clean: |
60 | -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend |
61 | -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend $(OBJECTS) |
61 | 62 | ||
62 | depend: |
63 | depend: |
63 | $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend |
64 | $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend |
64 | 65 | ||
65 | $(OUTPUT): $(OBJECTS) $(LIBS) |
66 | $(OUTPUT): $(OBJECTS) $(LIBS) |
66 | $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map |
67 | $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map |
67 | 68 | ||
68 | disasm: $(OUTPUT).disasm |
69 | disasm: $(OUTPUT).disasm |
69 | 70 | ||
70 | $(OUTPUT).disasm: $(OUTPUT) |
71 | $(OUTPUT).disasm: $(OUTPUT) |
71 | $(OBJDUMP) -d $< >$@ |
72 | $(OBJDUMP) -d $< >$@ |