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