Subversion Repositories HelenOS

Rev

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

Rev Author Line No. Line
262 decky 1
IA-32_TARGET=i686-pc-linux-gnu
2
 
3
IA-32_CC_DIR=/usr/local/i686/bin
4
IA-32_BINUTILS_DIR=/usr/local/i686/bin
5
 
6
CC=$(IA-32_CC_DIR)/$(IA-32_TARGET)-gcc
7
AS=$(IA-32_BINUTILS_DIR)/$(IA-32_TARGET)-as
8
LD=$(IA-32_BINUTILS_DIR)/$(IA-32_TARGET)-ld
279 decky 9
OBJCOPY=$(IA-32_BINUTILS_DIR)/$(IA-32_TARGET)-objcopy
262 decky 10
 
279 decky 11
BFD_NAME=elf32-i386
12
BFD_ARCH=i386
13
 
262 decky 14
DEFS:=-DARCH=$(ARCH)
15
 
16
ifdef SMP
17
DEFS+=-D$(SMP)
18
endif
19
 
20
ifdef HT
21
DEFS+=-D$(HT)
22
endif
23
 
24
CPPFLAGS=$(DEFS) -nostdinc -I../include
25
CFLAGS=$(CPPFLAGS) -nostdlib -fno-builtin -fomit-frame-pointer -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3
26
LFLAGS=-M -no-check-sections -T ../arch/ia32/_link.ld
27
 
28
arch_sources= \
29
	arch/context.s \
30
	arch/debug/panic.s \
31
	arch/cpuid.s \
32
	arch/delay.s \
33
	arch/asm.S \
34
	arch/proc/scheduler.c \
35
	arch/acpi/acpi.c \
36
	arch/acpi/madt.c \
37
	arch/bios/bios.c \
38
	arch/smp/ap.S \
39
	arch/smp/apic.c \
40
	arch/smp/mps.c \
41
	arch/smp/smp.c \
42
	arch/atomic.S \
43
	arch/smp/ipi.c \
44
	arch/ia32.c \
45
	arch/interrupt.c \
46
	arch/pm.c \
47
	arch/userspace.c \
48
	arch/cpu/cpu.c \
49
	arch/mm/frame.c \
50
	arch/mm/memory_init.c \
51
	arch/mm/page.c \
52
	arch/mm/tlb.c \
53
	arch/drivers/i8042.c \
54
	arch/drivers/i8254.c \
55
	arch/drivers/i8259.c \
56
	arch/drivers/ega.c \
57
	arch/boot/boot.S \
58
	arch/boot/memmap.S\
59
	arch/fpu_context.c\
60
	arch/fmath.c