Rev 3597 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3597 | Rev 4377 | ||
---|---|---|---|
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 60... | Line 59... | ||
60 | all: $(OUTPUT) $(OUTPUT).disasm |
59 | all: $(OUTPUT) $(OUTPUT).disasm |
61 | 60 | ||
62 | -include Makefile.depend |
61 | -include Makefile.depend |
63 | 62 | ||
64 | clean: |
63 | clean: |
65 | -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend |
64 | -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend $(OBJECTS) |
66 | 65 | ||
67 | depend: |
66 | depend: |
68 | $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend |
67 | $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend |
69 | 68 | ||
70 | $(OUTPUT): $(OBJECTS) $(LIBS) |
69 | $(OUTPUT): $(OBJECTS) $(LIBS) |
71 | $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map |
70 | $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map |
72 | 71 | ||
73 | disasm: $(OUTPUT).disasm |
72 | disasm: $(OUTPUT).disasm |
74 | 73 | ||
75 | $(OUTPUT).disasm: $(OUTPUT) |
74 | $(OUTPUT).disasm: $(OUTPUT) |
76 | $(OBJDUMP) -d $< >$@ |
75 | $(OBJDUMP) -d $< >$@ |