Subversion Repositories HelenOS

Rev

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

Rev 326 Rev 328
Line -... Line 1...
-
 
1
ifeq (${CROSS_COMPILER},yes)
-
 
2
	IA-32_TARGET=i686-pc-linux-gnu
-
 
3
 
-
 
4
	IA-32_CC_DIR=/usr/local/i686/bin
-
 
5
	IA-32_BINUTILS_DIR=/usr/local/i686/bin
-
 
6
 
-
 
7
	CC=$(IA-32_CC_DIR)/$(IA-32_TARGET)-gcc
-
 
8
	AS=$(IA-32_BINUTILS_DIR)/$(IA-32_TARGET)-as
-
 
9
	LD=$(IA-32_BINUTILS_DIR)/$(IA-32_TARGET)-ld
-
 
10
	OBJCOPY=$(IA-32_BINUTILS_DIR)/$(IA-32_TARGET)-objcopy
-
 
11
	OBJDUMP=$(IA-32_BINUTILS_DIR)/$(IA-32_TARGET)-objdump
-
 
12
else
1
CC=gcc
13
	CC=gcc
2
AS=as
14
	AS=as
3
LD=ld
15
	LD=ld
4
OBJDUMP=objdump
16
	OBJCOPY=objcopy
5
OBJCOPY=objcopy
17
	OBJDUMP=objdump
-
 
18
endif
-
 
19
 
6
BFD_NAME=elf32-i386
20
BFD_NAME=elf32-i386
7
BFD_ARCH=i386
21
BFD_ARCH=i386
8
 
22
 
9
 
-
 
10
DEFS:=-DARCH=$(ARCH) -DFPU_LAZY
23
DEFS:=-DARCH=$(ARCH) -DFPU_LAZY
11
 
24
 
12
ifdef SMP
25
ifdef SMP
13
DEFS+=-D$(SMP)
26
DEFS+=-D$(SMP)
14
endif
27
endif
15
 
28
 
16
ifdef HT
29
ifdef HT
17
DEFS+=-D$(HT)
30
DEFS+=-D$(HT)
18
endif
31
endif
19
 
32
 
20
CFLAGS=$(DEFS) -nostdlib -fno-builtin -fomit-frame-pointer -O3
33
CPPFLAGS=$(DEFS) -nostdinc -I../include
-
 
34
CFLAGS=$(CPPFLAGS) -nostdlib -fno-builtin -fomit-frame-pointer -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3
21
LFLAGS=-M -no-check-sections
35
LFLAGS=-M
22
 
36
 
23
../arch/$(ARCH)/_link.ld: ../arch/$(ARCH)/_link.ld.in
37
../arch/$(ARCH)/_link.ld: ../arch/$(ARCH)/_link.ld.in
24
	$(CC) $(CFLAGS) -C -E -x c $< | grep -v "^\#" > $@
38
	$(CC) $(CFLAGS) -E -x c $< | grep -v "^\#" > $@
25
 
39
 
26
arch_sources= \
40
arch_sources= \
27
	arch/context.s \
41
	arch/context.s \
28
	arch/debug/panic.s \
42
	arch/debug/panic.s \
29
	arch/cpuid.s \
43
	arch/cpuid.s \