Rev 3569 | Rev 3772 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 3569 | Rev 3686 | ||
|---|---|---|---|
| Line 33... | Line 33... | ||
| 33 | include ../../Makefile.config |
33 | include ../../Makefile.config |
| 34 | 34 | ||
| 35 | LIBC_PREFIX = $(shell pwd) |
35 | LIBC_PREFIX = $(shell pwd) |
| 36 | SOFTINT_PREFIX = ../softint |
36 | SOFTINT_PREFIX = ../softint |
| 37 | CONSOLE_PREFIX = ../../srv/console |
37 | CONSOLE_PREFIX = ../../srv/console |
| - | 38 | RTLD_PREFIX = ../../lib/rtld |
|
| 38 | 39 | ||
| 39 | ## Setup toolchain |
40 | ## Setup toolchain |
| 40 | # |
41 | # |
| 41 | 42 | ||
| 42 | include $(LIBC_PREFIX)/Makefile.toolchain |
43 | include $(LIBC_PREFIX)/Makefile.toolchain |
| 43 | 44 | ||
| 44 | CFLAGS += -I$(CONSOLE_PREFIX) |
45 | CFLAGS += -I$(CONSOLE_PREFIX) -I$(RTLD_PREFIX)/include -I../../srv/loader/include -D__32_BITS__ |
| 45 | PIC_CFLAGS := $(CFLAGS) -fPIC -D__IN_SHARED_LIBC__ |
46 | PIC_CFLAGS := $(CFLAGS) -fPIC -D__IN_SHARED_LIBC__ |
| 46 | 47 | ||
| 47 | ## Sources |
48 | ## Sources |
| 48 | # |
49 | # |
| 49 | 50 | ||
| Line 73... | Line 74... | ||
| 73 | generic/io/printf_core.c \ |
74 | generic/io/printf_core.c \ |
| 74 | malloc/malloc.c \ |
75 | malloc/malloc.c \ |
| 75 | generic/sysinfo.c \ |
76 | generic/sysinfo.c \ |
| 76 | generic/ipc.c \ |
77 | generic/ipc.c \ |
| 77 | generic/async.c \ |
78 | generic/async.c \ |
| - | 79 | generic/dlfcn.c \ |
|
| 78 | generic/loader.c \ |
80 | generic/loader.c \ |
| 79 | generic/getopt.c \ |
81 | generic/getopt.c \ |
| 80 | generic/libadt/list.o \ |
82 | generic/libadt/list.o \ |
| 81 | generic/libadt/hash_table.o \ |
83 | generic/libadt/hash_table.o \ |
| 82 | generic/time.c \ |
84 | generic/time.c \ |
| Line 115... | Line 117... | ||
| 115 | depend: kerninc |
117 | depend: kerninc |
| 116 | -makedepend -f - -- $(DEFS) $(CFLAGS) -- $(ARCH_SOURCES) $(GENERIC_SOURCES) > Makefile.depend 2> /dev/null |
118 | -makedepend -f - -- $(DEFS) $(CFLAGS) -- $(ARCH_SOURCES) $(GENERIC_SOURCES) > Makefile.depend 2> /dev/null |
| 117 | -makedepend $(DEFS) $(PIC_CFLAGS) -o.pio -f - $(ARCH_SOURCES) $(GENERIC_SOURCES) >> Makefile.depend 2> /dev/null |
119 | -makedepend $(DEFS) $(PIC_CFLAGS) -o.pio -f - $(ARCH_SOURCES) $(GENERIC_SOURCES) >> Makefile.depend 2> /dev/null |
| 118 | 120 | ||
| 119 | libc.a: depend $(OBJECTS) |
121 | libc.a: depend $(OBJECTS) |
| 120 | $(AR) rc $@ $(LIBS) $(OBJECTS) |
122 | $(AR) rc $@ $(LIBS) $(OBJECTS) $(RTLD_PREFIX)/librtld.a |
| 121 | 123 | ||
| 122 | libc.pic.a: depend $(PIC_OBJECTS) |
124 | libc.pic.a: depend $(PIC_OBJECTS) |
| 123 | $(AR) rc $@ $(LIBS) $(PIC_OBJECTS) |
125 | $(AR) rc $@ $(LIBS) $(PIC_OBJECTS) |
| 124 | 126 | ||
| 125 | arch/$(ARCH)/_link.ld: arch/$(ARCH)/_link.ld.in |
127 | arch/$(ARCH)/_link.ld: arch/$(ARCH)/_link.ld.in |