Rev 328 | Rev 381 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
328 | jermar | 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 |
||
13 | CC=gcc |
||
14 | AS=as |
||
15 | LD=ld |
||
16 | OBJCOPY=objcopy |
||
17 | OBJDUMP=objdump |
||
18 | endif |
||
19 | |||
268 | palkovsky | 20 | BFD_NAME=elf32-i386 |
21 | BFD_ARCH=i386 |
||
1 | jermar | 22 | |
309 | palkovsky | 23 | DEFS:=-DARCH=$(ARCH) -DFPU_LAZY |
1 | jermar | 24 | |
25 | ifdef SMP |
||
26 | DEFS+=-D$(SMP) |
||
27 | endif |
||
28 | |||
29 | ifdef HT |
||
30 | DEFS+=-D$(HT) |
||
31 | endif |
||
32 | |||
376 | jermar | 33 | CPPFLAGS=$(DEFS) -nostdinc -Iinclude/ |
328 | jermar | 34 | CFLAGS=$(CPPFLAGS) -nostdlib -fno-builtin -fomit-frame-pointer -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 |
35 | LFLAGS=-M |
||
1 | jermar | 36 | |
376 | jermar | 37 | arch/$(ARCH)/_link.ld: arch/$(ARCH)/_link.ld.in |
328 | jermar | 38 | $(CC) $(CFLAGS) -E -x c $< | grep -v "^\#" > $@ |
301 | palkovsky | 39 | |
1 | jermar | 40 | arch_sources= \ |
376 | jermar | 41 | src/arch/context.s \ |
42 | src/arch/debug/panic.s \ |
||
43 | src/arch/cpuid.s \ |
||
44 | src/arch/delay.s \ |
||
45 | src/arch/asm.S \ |
||
46 | src/arch/proc/scheduler.c \ |
||
47 | src/arch/acpi/acpi.c \ |
||
48 | src/arch/acpi/madt.c \ |
||
49 | src/arch/bios/bios.c \ |
||
50 | src/arch/smp/ap.S \ |
||
51 | src/arch/smp/apic.c \ |
||
52 | src/arch/smp/mps.c \ |
||
53 | src/arch/smp/smp.c \ |
||
54 | src/arch/atomic.S \ |
||
55 | src/arch/smp/ipi.c \ |
||
56 | src/arch/ia32.c \ |
||
57 | src/arch/interrupt.c \ |
||
58 | src/arch/pm.c \ |
||
59 | src/arch/userspace.c \ |
||
60 | src/arch/cpu/cpu.c \ |
||
61 | src/arch/mm/frame.c \ |
||
62 | src/arch/mm/memory_init.c \ |
||
63 | src/arch/mm/page.c \ |
||
64 | src/arch/mm/tlb.c \ |
||
65 | src/arch/drivers/i8042.c \ |
||
66 | src/arch/drivers/i8254.c \ |
||
67 | src/arch/drivers/i8259.c \ |
||
68 | src/arch/drivers/ega.c \ |
||
69 | src/arch/boot/boot.S \ |
||
70 | src/arch/boot/memmap.S\ |
||
71 | src/arch/fpu_context.c\ |
||
72 | src/arch/fmath.c |