Rev 3211 | Rev 3569 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3211 | Rev 3563 | ||
---|---|---|---|
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 |
- | 36 | include $(LIBC_PREFIX)/Makefile.app |
|
35 | include ../../../Makefile.config |
37 | include ../../../Makefile.config |
36 | 38 | ||
37 | CFLAGS += -Iinclude -I../libadt/include |
39 | CFLAGS += -Iinclude -I../libadt/include |
38 | 40 | ||
39 | LIBS = $(LIBC_PREFIX)/libc.a |
- | |
40 | - | ||
41 | ## Sources |
41 | ## Sources |
42 | # |
42 | # |
43 | 43 | ||
44 | OUTPUT = kbd |
44 | OUTPUT = kbd |
45 | GENERIC_SOURCES = \ |
45 | GENERIC_SOURCES = \ |
Line 96... | Line 96... | ||
96 | 96 | ||
97 | depend: |
97 | depend: |
98 | $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend |
98 | $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend |
99 | 99 | ||
100 | $(OUTPUT): $(ARCH_OBJECTS) $(GENERIC_OBJECTS) $(GENARCH_OBJECTS) $(LIBS) |
100 | $(OUTPUT): $(ARCH_OBJECTS) $(GENERIC_OBJECTS) $(GENARCH_OBJECTS) $(LIBS) |
101 | $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(GENERIC_OBJECTS) $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map |
101 | $(LD) -T $(LD_SCRIPT) $(GENERIC_OBJECTS) $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map |
102 | 102 | ||
103 | disasm: $(OUTPUT).disasm |
103 | disasm: $(OUTPUT).disasm |
104 | 104 | ||
105 | $(OUTPUT).disasm: $(OUTPUT) |
105 | $(OUTPUT).disasm: $(OUTPUT) |
106 | $(OBJDUMP) -d $< >$@ |
106 | $(OBJDUMP) -d $< >$@ |