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 27... | Line 27... | ||
27 | # |
27 | # |
28 | 28 | ||
29 | ## Setup toolchain |
29 | ## Setup toolchain |
30 | # |
30 | # |
31 | 31 | ||
32 | -include ../../../../Makefile.config |
- | |
33 | - | ||
34 | LIBC_PREFIX = ../../../lib/libc |
32 | LIBC_PREFIX = ../../../lib/libc |
35 | LIBFS_PREFIX = ../../../lib/libfs |
33 | LIBFS_PREFIX = ../../../lib/libfs |
36 | LIBBLOCK_PREFIX = ../../../lib/libblock |
34 | LIBBLOCK_PREFIX = ../../../lib/libblock |
37 | SOFTINT_PREFIX = ../../../lib/softint |
35 | SOFTINT_PREFIX = ../../../lib/softint |
- | 36 | ||
38 | include $(LIBC_PREFIX)/Makefile.toolchain |
37 | include $(LIBC_PREFIX)/Makefile.toolchain |
39 | 38 | ||
40 | CFLAGS += -I $(LIBFS_PREFIX) -I $(LIBBLOCK_PREFIX) |
39 | CFLAGS += -I $(LIBFS_PREFIX) -I $(LIBBLOCK_PREFIX) |
41 | 40 | ||
42 | LIBS = \ |
41 | LIBS = \ |
Line 68... | Line 67... | ||
68 | 67 | ||
69 | depend: |
68 | depend: |
70 | $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend |
69 | $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend |
71 | 70 | ||
72 | $(OUTPUT): $(OBJECTS) $(LIBS) |
71 | $(OUTPUT): $(OBJECTS) $(LIBS) |
73 | $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map |
72 | $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map |
74 | 73 | ||
75 | disasm: $(OUTPUT).disasm |
74 | disasm: $(OUTPUT).disasm |
76 | 75 | ||
77 | $(OUTPUT).disasm: $(OUTPUT) |
76 | $(OUTPUT).disasm: $(OUTPUT) |
78 | $(OBJDUMP) -d $< >$@ |
77 | $(OBJDUMP) -d $< >$@ |