Rev 3552 | Rev 3556 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3552 | Rev 3555 | ||
---|---|---|---|
Line 31... | Line 31... | ||
31 | 31 | ||
32 | ## Setup toolchain |
32 | ## Setup toolchain |
33 | # |
33 | # |
34 | 34 | ||
35 | LIBC_PREFIX = ../../lib/libc |
35 | LIBC_PREFIX = ../../lib/libc |
- | 36 | LIBCS_PREFIX = ../../lib/libc-shared |
|
36 | SOFTINT_PREFIX = ../../lib/softint |
37 | SOFTINT_PREFIX = ../../lib/softint |
37 | RTLD_PREFIX = ../../lib/rtld |
38 | RTLD_PREFIX = ../../lib/rtld |
38 | include $(LIBC_PREFIX)/Makefile.toolchain |
39 | include $(LIBC_PREFIX)/Makefile.toolchain |
39 | 40 | ||
40 | CFLAGS += -I../../lib/libc -O0 |
41 | CFLAGS += -I../../lib/libc -O0 |
Line 71... | Line 72... | ||
71 | -rm -f $(OUTPUT) $(OBJECTS) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend arch/$(ARCH)/_link.ld |
72 | -rm -f $(OUTPUT) $(OBJECTS) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend arch/$(ARCH)/_link.ld |
72 | 73 | ||
73 | depend: |
74 | depend: |
74 | $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend |
75 | $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend |
75 | 76 | ||
76 | $(OUTPUT): $(OBJECTS) $(LIBS) arch/$(ARCH)/_link.ld |
77 | $(OUTPUT): $(OBJECTS) $(LIBS) |
77 | $(LD) -T arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map |
78 | $(LD) -T $(LIBCS_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map |
78 | 79 | ||
79 | disasm: |
80 | disasm: |
80 | $(OBJDUMP) -d $(OUTPUT) >$(OUTPUT).disasm |
81 | $(OBJDUMP) -d $(OUTPUT) >$(OUTPUT).disasm |
81 | 82 | ||
82 | arch/$(ARCH)/_link.ld: arch/$(ARCH)/_link.ld.in |
83 | #arch/$(ARCH)/_link.ld: arch/$(ARCH)/_link.ld.in |
83 | $(CC) $(DEFS) $(CFLAGS) -DLIBC_PREFIX=$(LIBC_PREFIX) -E -x c $< | grep -v "^\#" > $@ |
84 | # $(CC) $(DEFS) $(CFLAGS) -DLIBC_PREFIX=$(LIBC_PREFIX) -E -x c $< | grep -v "^\#" > $@ |
84 | 85 | ||
85 | %.o: %.S |
86 | %.o: %.S |
86 | $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@ |
87 | $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@ |
87 | 88 | ||
88 | %.o: %.s |
89 | %.o: %.s |