Rev 3556 | Rev 3560 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3556 | Rev 3557 | ||
---|---|---|---|
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 |
- | |
37 | SOFTINT_PREFIX = ../../lib/softint |
36 | SOFTINT_PREFIX = ../../lib/softint |
38 | RTLD_PREFIX = ../../lib/rtld |
37 | RTLD_PREFIX = ../../lib/rtld |
39 | include $(LIBC_PREFIX)/Makefile.toolchain |
38 | include $(LIBC_PREFIX)/Makefile.toolchain |
40 | 39 | ||
41 | CFLAGS += -I../../lib/libc -O0 |
40 | CFLAGS += -I../../lib/libc -O0 |
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 $(LIBCS_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map |
67 | $(LD) -T $(LIBC_PREFIX)/shared/arch/$(ARCH)/_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 |