Subversion Repositories HelenOS

Rev

Rev 277 | Rev 293 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
164 palkovsky 1
AMD64_TARGET=amd64-linux-gnu
2
AMD64_CC_DIR=/usr/local/amd64/bin
3
AMD64_BINUTILS_DIR=/usr/local/amd64/bin
4
 
5
CC=$(AMD64_CC_DIR)/$(AMD64_TARGET)-gcc
6
AS=$(AMD64_BINUTILS_DIR)/$(AMD64_TARGET)-as
7
LD=$(AMD64_BINUTILS_DIR)/$(AMD64_TARGET)-ld
268 palkovsky 8
OBJCOPY=$(AMD64_BINUTILS_DIR)/$(AMD64_TARGET)-objcopy
9
BFD_NAME=elf64-x86-64
10
BFD_ARCH=i386:x86-64
164 palkovsky 11
 
12
DEFS=-DARCH=$(ARCH)
265 palkovsky 13
 
14
ifdef SMP
15
DEFS+=-D$(SMP)
16
endif
17
 
18
ifdef HT
19
DEFS+=-D$(HT)
20
endif
21
 
22
 
164 palkovsky 23
CPPFLAGS=$(DEFS) -nostdinc -I../include
195 vana 24
CFLAGS=$(CPPFLAGS) -nostdlib -fno-builtin -fno-unwind-tables -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -march=opteron -m64 -mcmodel=kernel -mno-red-zone
289 palkovsky 25
LFLAGS=-M 
164 palkovsky 26
 
289 palkovsky 27
../arch/amd64/_link.ld: ../arch/amd64/_link.ld.in
28
	$(CC) $(CFLAGS) -E -x c $< | grep -v "^\#" > $@
29
 
164 palkovsky 30
arch_sources = arch/dummy.s \
31
	arch/fpu_context.c \
178 palkovsky 32
	arch/boot/boot.S \
33
	arch/boot/memmap.S \
197 palkovsky 34
	arch/pm.c \
200 palkovsky 35
	arch/context.S \
36
	arch/drivers/ega.c \
206 palkovsky 37
	arch/drivers/i8042.c \
38
	arch/drivers/i8254.c \
39
	arch/drivers/i8259.c \
40
	arch/supplib.c \
41
	arch/delay.S \
42
	arch/amd64.c \
216 palkovsky 43
	arch/bios/bios.c \
219 palkovsky 44
	arch/interrupt.c \
45
	arch/mm/frame.c \
46
	arch/mm/page.c \
224 palkovsky 47
	arch/mm/tlb.c \
230 cejka 48
	arch/asm_utils.S \
242 palkovsky 49
	arch/fmath.c \
251 palkovsky 50
	arch/mm/memory_init.c \
257 palkovsky 51
	arch/cpu/cpu.c \
52
	arch/proc/scheduler.c \
268 palkovsky 53
	arch/userspace.c \
54
	arch/acpi/acpi.c \
55
	arch/acpi/madt.c
56
 
57
ifdef SMP
277 palkovsky 58
arch_sources += arch/smp/ap.S \
59
		arch/smp/apic.c \
268 palkovsky 60
		arch/smp/ipi.c \
61
		arch/smp/mps.c \
62
		arch/smp/smp.c
63
endif