Rev 3211 | Rev 4337 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3211 | Rev 3560 | ||
---|---|---|---|
Line 29... | Line 29... | ||
29 | ## Setup toolchain |
29 | ## Setup toolchain |
30 | # |
30 | # |
31 | 31 | ||
32 | LIBC_PREFIX = ../../lib/libc |
32 | LIBC_PREFIX = ../../lib/libc |
33 | SOFTINT_PREFIX = ../../lib/softint |
33 | SOFTINT_PREFIX = ../../lib/softint |
- | 34 | RTLD_PREFIX = ../../lib/rtld |
|
34 | include $(LIBC_PREFIX)/Makefile.toolchain |
35 | include $(LIBC_PREFIX)/Makefile.toolchain |
35 | - | ||
36 | LIBS = $(LIBC_PREFIX)/libc.a |
36 | include $(LIBC_PREFIX)/Makefile.app |
37 | 37 | ||
38 | ## Sources |
38 | ## Sources |
39 | # |
39 | # |
40 | 40 | ||
41 | OUTPUT = klog |
41 | OUTPUT = klog |
Line 56... | Line 56... | ||
56 | 56 | ||
57 | depend: |
57 | depend: |
58 | $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend |
58 | $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend |
59 | 59 | ||
60 | $(OUTPUT): $(OBJECTS) $(LIBS) |
60 | $(OUTPUT): $(OBJECTS) $(LIBS) |
61 | $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map |
61 | $(LD) -T $(LD_SCRIPT) $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map |
62 | 62 | ||
63 | disasm: $(OUTPUT).disasm |
63 | disasm: $(OUTPUT).disasm |
64 | 64 | ||
65 | $(OUTPUT).disasm: $(OUTPUT) |
65 | $(OUTPUT).disasm: $(OUTPUT) |
66 | $(OBJDUMP) -d $< >$@ |
66 | $(OBJDUMP) -d $< >$@ |