Rev 4341 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4341 | Rev 4342 | ||
---|---|---|---|
Line 25... | Line 25... | ||
25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | # |
27 | # |
28 | 28 | ||
29 | include ../../../version |
29 | include ../../../version |
30 | -include ../../../Makefile.config |
- | |
31 | 30 | ||
32 | ## Setup toolchain |
31 | ## Setup toolchain |
33 | # |
32 | # |
34 | 33 | ||
35 | LIBC_PREFIX = ../../lib/libc |
34 | LIBC_PREFIX = ../../lib/libc |
36 | SOFTINT_PREFIX = ../../lib/softint |
35 | SOFTINT_PREFIX = ../../lib/softint |
37 | RTLD_PREFIX = ../../lib/rtld |
36 | RTLD_PREFIX = ../../lib/rtld |
- | 37 | ||
38 | include $(LIBC_PREFIX)/Makefile.toolchain |
38 | include $(LIBC_PREFIX)/Makefile.toolchain |
39 | 39 | ||
40 | CFLAGS += -I../../lib/libc -O0 |
40 | CFLAGS += -I../../lib/libc -O0 |
41 | LFLAGS := -Bdynamic -I/lib/rtld -rpath-link $(RTLD_PREFIX) |
41 | LFLAGS := -Bdynamic -I/lib/rtld -rpath-link $(RTLD_PREFIX) |
42 | 42 | ||
Line 56... | Line 56... | ||
56 | all: $(OUTPUT) disasm |
56 | all: $(OUTPUT) disasm |
57 | 57 | ||
58 | -include Makefile.depend |
58 | -include Makefile.depend |
59 | 59 | ||
60 | clean: |
60 | clean: |
61 | -rm -f $(OUTPUT) $(OBJECTS) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend arch/$(ARCH)/_link.ld |
61 | -rm -f $(OUTPUT) $(OBJECTS) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend arch/$(UARCH)/_link.ld |
62 | 62 | ||
63 | depend: |
63 | depend: |
64 | $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend |
64 | $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend |
65 | 65 | ||
66 | $(OUTPUT): $(OBJECTS) $(LIBS) |
66 | $(OUTPUT): $(OBJECTS) $(LIBS) |
67 | $(LD) -T $(LIBC_PREFIX)/shared/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map |
67 | $(LD) -T $(LIBC_PREFIX)/shared/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map |
68 | 68 | ||
69 | disasm: |
69 | disasm: |
70 | $(OBJDUMP) -d $(OUTPUT) >$(OUTPUT).disasm |
70 | $(OBJDUMP) -d $(OUTPUT) >$(OUTPUT).disasm |
71 | 71 | ||
72 | %.o: %.S |
72 | %.o: %.S |