Subversion Repositories HelenOS

Rev

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

Rev 3536 Rev 4377
Line 24... Line 24...
24
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
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
DEFS = -DARCH=$(ARCH)
29
CFLAGS = -fno-builtin -Wall -Werror-implicit-function-declaration \
-
 
30
	-fexec-charset=UTF-8 -fwide-exec-charset=UTF-32 -finput-charset=UTF-8 \
30
CFLAGS = -fno-builtin -Wall -Werror-implicit-function-declaration -Wmissing-prototypes -O3 -nostdlib -nostdinc -I$(LIBC_PREFIX)/include -pipe
31
	-Wmissing-prototypes -O3 -nostdlib -nostdinc -imacros \
-
 
32
	$(LIBC_PREFIX)/../../../config.h -I$(LIBC_PREFIX)/include -pipe -g
31
LFLAGS = -M -N $(SOFTINT_PREFIX)/libsoftint.a
33
LFLAGS = -M -N $(SOFTINT_PREFIX)/libsoftint.a
32
AFLAGS =
34
AFLAGS =
-
 
35
 
-
 
36
## Cross-toolchain prefix
-
 
37
#
-
 
38
 
-
 
39
ifndef CROSS_PREFIX
-
 
40
	CROSS_PREFIX = /usr/local
33
#-Werror
41
endif
34
 
42
 
35
## Setup platform configuration
43
## Setup platform configuration
36
#
44
#
37
 
45
 
-
 
46
-include $(LIBC_PREFIX)/../../../Makefile.config
-
 
47
-include $(LIBC_PREFIX)/../../../config.defs
38
include $(LIBC_PREFIX)/arch/$(ARCH)/Makefile.inc
48
-include $(LIBC_PREFIX)/arch/$(UARCH)/Makefile.inc
39
 
49
 
40
## Simple detection of the host system
50
## Simple detection of the host system
41
#
51
#
42
HOST = $(shell uname)
52
HOST = $(shell uname)
43
 
53
 
Line 57... Line 67...
57
	AS = $(BINUTILS_PREFIX)as
67
	AS = $(BINUTILS_PREFIX)as
58
	LD = $(BINUTILS_PREFIX)ld
68
	LD = $(BINUTILS_PREFIX)ld
59
	AR = $(BINUTILS_PREFIX)ar
69
	AR = $(BINUTILS_PREFIX)ar
60
	OBJCOPY = $(BINUTILS_PREFIX)objcopy
70
	OBJCOPY = $(BINUTILS_PREFIX)objcopy
61
	OBJDUMP = $(BINUTILS_PREFIX)objdump
71
	OBJDUMP = $(BINUTILS_PREFIX)objdump
-
 
72
	DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
62
endif
73
endif
63
 
74
 
64
ifeq ($(COMPILER),icc_native)
75
ifeq ($(COMPILER),icc_native)
65
	CC = icc
76
	CC = icc
66
	AS = as
77
	AS = as
67
	LD = ld
78
	LD = ld
68
	AR = ar
79
	AR = ar
69
	OBJCOPY = objcopy
80
	OBJCOPY = objcopy
70
	OBJDUMP = objdump
81
	OBJDUMP = objdump
-
 
82
	DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
71
endif
83
endif
72
 
84
 
73
ifeq ($(COMPILER),gcc_cross)
85
ifeq ($(COMPILER),gcc_cross)
74
	CC = $(TOOLCHAIN_DIR)/$(TARGET)-gcc
86
	CC = $(TOOLCHAIN_DIR)/$(TARGET)-gcc
75
	AS = $(TOOLCHAIN_DIR)/$(TARGET)-as
87
	AS = $(TOOLCHAIN_DIR)/$(TARGET)-as
76
	LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld
88
	LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld
77
	AR = $(TOOLCHAIN_DIR)/$(TARGET)-ar
89
	AR = $(TOOLCHAIN_DIR)/$(TARGET)-ar
78
	OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy
90
	OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy
79
	OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump
91
	OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump
-
 
92
	DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
80
endif
93
endif
81
 
-