Subversion Repositories HelenOS

Rev

Rev 2933 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2933 Rev 2952
Line 30... Line 30...
30
include ../../Makefile.config
30
include ../../Makefile.config
31
 
31
 
32
## Setup toolchain
32
## Setup toolchain
33
#
33
#
34
 
34
 
35
LIBC_PREFIX = ../../lib/libc
35
LIBC_PREFIX = ../../lib/libc-shared
36
SOFTINT_PREFIX = ../../lib/softint
36
SOFTINT_PREFIX = ../../lib/softint
37
include $(LIBC_PREFIX)/Makefile.toolchain
37
include $(LIBC_PREFIX)/Makefile.toolchain
38
include arch/$(ARCH)/Makefile.inc
38
include arch/$(ARCH)/Makefile.inc
39
 
39
 
40
CFLAGS += -I../../srv/kbd/include -fPIC -O0 -ggdb
40
CFLAGS += -I../../srv/kbd/include -I../../srv/console -fPIC -O0
41
LFLAGS = -shared
41
LFLAGS = -shared --no-undefined
42
 
42
 
43
#LIBS = $(LIBC_PREFIX)/libc.a
43
# LIBS = $(LIBC_PREFIX)/libc-pic.a
44
LIBS =
44
LIBS = 
45
DEFS += -DRELEASE=\"$(RELEASE)\"
45
DEFS += -DRELEASE=\"$(RELEASE)\"
46
 
46
 
47
ifdef REVISION
47
ifdef REVISION
48
	DEFS += "-DREVISION=\"$(REVISION)\""
48
	DEFS += "-DREVISION=\"$(REVISION)\""
49
endif
49
endif
Line 55... Line 55...
55
## Sources
55
## Sources
56
#
56
#
57
 
57
 
58
OUTPUT = rtld.so
58
OUTPUT = rtld.so
59
GENERIC_SOURCES = \
59
GENERIC_SOURCES = \
60
	rtld.c
60
	rtld.c \
-
 
61
	ulibc.c \
-
 
62
	syscall.S
61
 
63
 
62
GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES)))
64
GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES)))
63
ARCH_OBJECTS := $(addsuffix .o,$(basename $(ARCH_SOURCES)))
65
ARCH_OBJECTS := $(addsuffix .o,$(basename $(ARCH_SOURCES)))
64
 
66
 
65
.PHONY: all clean depend disasm sections
67
.PHONY: all clean depend disasm sections