Rev 3803 | 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 | SOFTINT_PREFIX = ../../lib/softint |
33 | SOFTINT_PREFIX = ../../lib/softint |
- | 34 | ||
36 | include $(LIBC_PREFIX)/Makefile.toolchain |
35 | include $(LIBC_PREFIX)/Makefile.toolchain |
37 | 36 | ||
38 | CFLAGS += -I../../srv/kbd/include |
37 | CFLAGS += -I../../srv/kbd/include |
39 | 38 | ||
40 | LIBS = $(LIBC_PREFIX)/libc.a |
39 | LIBS = $(LIBC_PREFIX)/libc.a |
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: |
69 | disasm: |
71 | $(OBJDUMP) -d $(OUTPUT) >$(OUTPUT).disasm |
70 | $(OBJDUMP) -d $(OUTPUT) >$(OUTPUT).disasm |
72 | 71 | ||
73 | %.o: %.S |
72 | %.o: %.S |