Rev 3803 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3803 | Rev 3882 | ||
---|---|---|---|
Line 28... | Line 28... | ||
28 | # |
28 | # |
29 | 29 | ||
30 | ## Setup toolchain |
30 | ## Setup toolchain |
31 | # |
31 | # |
32 | 32 | ||
33 | -include ../../../Makefile.config |
- | |
34 | - | ||
35 | LIBC_PREFIX = ../../lib/libc |
33 | LIBC_PREFIX = ../../lib/libc |
36 | SOFTINT_PREFIX = ../../lib/softint |
34 | SOFTINT_PREFIX = ../../lib/softint |
- | 35 | ||
37 | include $(LIBC_PREFIX)/Makefile.toolchain |
36 | include $(LIBC_PREFIX)/Makefile.toolchain |
38 | 37 | ||
39 | LIBS = $(LIBC_PREFIX)/libc.a |
38 | LIBS = $(LIBC_PREFIX)/libc.a |
40 | 39 | ||
41 | ## Sources |
40 | ## Sources |
Line 63... | Line 62... | ||
63 | 62 | ||
64 | depend: |
63 | depend: |
65 | $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend |
64 | $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend |
66 | 65 | ||
67 | $(OUTPUT): $(OBJECTS) $(LIBS) |
66 | $(OUTPUT): $(OBJECTS) $(LIBS) |
68 | $(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 |
69 | 68 | ||
70 | disasm: $(OUTPUT).disasm |
69 | disasm: $(OUTPUT).disasm |
71 | 70 | ||
72 | $(OUTPUT).disasm: $(OUTPUT) |
71 | $(OUTPUT).disasm: $(OUTPUT) |
73 | $(OBJDUMP) -d $< >$@ |
72 | $(OBJDUMP) -d $< >$@ |