Rev 4341 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4341 | Rev 4342 | ||
---|---|---|---|
Line 32... | Line 32... | ||
32 | ## Setup toolchain |
32 | ## Setup toolchain |
33 | # |
33 | # |
34 | 34 | ||
35 | LIBC_PREFIX = ../../lib/libc |
35 | LIBC_PREFIX = ../../lib/libc |
36 | include $(LIBC_PREFIX)/Makefile.toolchain |
36 | include $(LIBC_PREFIX)/Makefile.toolchain |
37 | include arch/$(ARCH)/Makefile.inc |
37 | include arch/$(UARCH)/Makefile.inc |
38 | 38 | ||
39 | #CFLAGS += -Iinclude -I../../srv/loader/include -fPIC -O0 -ggdb |
39 | #CFLAGS += -Iinclude -I../../srv/loader/include -fPIC -O0 -ggdb |
40 | #LFLAGS += -shared --no-undefined -soname rtld.so |
40 | #LFLAGS += -shared --no-undefined -soname rtld.so |
41 | CFLAGS += -Iinclude -I../../srv/loader/include -O0 -ggdb |
41 | CFLAGS += -Iinclude -I../../srv/loader/include -O0 -ggdb |
42 | LFLAGS += |
42 | LFLAGS += |
Line 73... | Line 73... | ||
73 | .PHONY: all clean depend disasm sections inc |
73 | .PHONY: all clean depend disasm sections inc |
74 | 74 | ||
75 | all: inc $(OUTPUT) librtld.pic.a |
75 | all: inc $(OUTPUT) librtld.pic.a |
76 | 76 | ||
77 | inc: |
77 | inc: |
78 | ln -sfn ../arch/$(ARCH)/include include/arch |
78 | ln -sfn ../arch/$(UARCH)/include include/arch |
79 | 79 | ||
80 | -include Makefile.depend |
80 | -include Makefile.depend |
81 | 81 | ||
82 | clean: |
82 | clean: |
83 | -rm -f $(OUTPUT) librtld.pic.a $(OUTPUT).map $(OUTPUT).disasm $(OUTPUT).sections Makefile.depend *.o $(PIC_OBJECTS) arch/$(ARCH)/_link.ld include/arch |
83 | -rm -f $(OUTPUT) librtld.pic.a $(OUTPUT).map $(OUTPUT).disasm $(OUTPUT).sections Makefile.depend *.o $(PIC_OBJECTS) arch/$(UARCH)/_link.ld include/arch |
84 | find arch/$(ARCH)/ -name '*.o' -follow -exec rm \{\} \; |
84 | find arch/$(UARCH)/ -name '*.o' -follow -exec rm \{\} \; |
85 | 85 | ||
86 | depend: |
86 | depend: |
87 | $(CC) $(DEFS) $(CFLAGS) -M $(ARCH_SOURCES) $(GENERIC_SOURCES)> Makefile.depend |
87 | $(CC) $(DEFS) $(CFLAGS) -M $(ARCH_SOURCES) $(GENERIC_SOURCES)> Makefile.depend |
88 | 88 | ||
89 | $(OUTPUT): depend $(OBJECTS) |
89 | $(OUTPUT): depend $(OBJECTS) |