Rev 290 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 290 | Rev 309 | ||
---|---|---|---|
1 | IA-32_TARGET=i686-pc-linux-gnu |
1 | IA-32_TARGET=i686-pc-linux-gnu |
2 | 2 | ||
3 | IA-32_CC_DIR=/usr/local/i686/bin |
3 | IA-32_CC_DIR=/usr/local/i686/bin |
4 | IA-32_BINUTILS_DIR=/usr/local/i686/bin |
4 | IA-32_BINUTILS_DIR=/usr/local/i686/bin |
5 | 5 | ||
6 | CC=$(IA-32_CC_DIR)/$(IA-32_TARGET)-gcc |
6 | CC=$(IA-32_CC_DIR)/$(IA-32_TARGET)-gcc |
7 | AS=$(IA-32_BINUTILS_DIR)/$(IA-32_TARGET)-as |
7 | AS=$(IA-32_BINUTILS_DIR)/$(IA-32_TARGET)-as |
8 | LD=$(IA-32_BINUTILS_DIR)/$(IA-32_TARGET)-ld |
8 | LD=$(IA-32_BINUTILS_DIR)/$(IA-32_TARGET)-ld |
9 | OBJCOPY=$(IA-32_BINUTILS_DIR)/$(IA-32_TARGET)-objcopy |
9 | OBJCOPY=$(IA-32_BINUTILS_DIR)/$(IA-32_TARGET)-objcopy |
- | 10 | OBJDUMP=$(IA-32_BINUTILS_DIR)/$(IA-32_TARGET)-objdump |
|
10 | 11 | ||
11 | BFD_NAME=elf32-i386 |
12 | BFD_NAME=elf32-i386 |
12 | BFD_ARCH=i386 |
13 | BFD_ARCH=i386 |
13 | 14 | ||
14 | DEFS:=-DARCH=$(ARCH) |
15 | DEFS:=-DARCH=$(ARCH) -DFPU_LAZY |
15 | 16 | ||
16 | ifdef SMP |
17 | ifdef SMP |
17 | DEFS+=-D$(SMP) |
18 | DEFS+=-D$(SMP) |
18 | endif |
19 | endif |
19 | 20 | ||
20 | ifdef HT |
21 | ifdef HT |
21 | DEFS+=-D$(HT) |
22 | DEFS+=-D$(HT) |
22 | endif |
23 | endif |
23 | 24 | ||
24 | CPPFLAGS=$(DEFS) -nostdinc -I../include |
25 | CPPFLAGS=$(DEFS) -nostdinc -I../include |
25 | CFLAGS=$(CPPFLAGS) -nostdlib -fno-builtin -fomit-frame-pointer -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 |
26 | CFLAGS=$(CPPFLAGS) -nostdlib -fno-builtin -fomit-frame-pointer -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 |
26 | LFLAGS=-M -no-check-sections |
27 | LFLAGS=-M -no-check-sections |
27 | 28 | ||
- | 29 | ../arch/$(ARCH)/_link.ld: ../arch/$(ARCH)/_link.ld.in |
|
- | 30 | $(CC) $(CFLAGS) -E -x c $< | grep -v "^\#" > $@ |
|
- | 31 | ||
28 | arch_sources= \ |
32 | arch_sources= \ |
29 | arch/context.s \ |
33 | arch/context.s \ |
30 | arch/debug/panic.s \ |
34 | arch/debug/panic.s \ |
31 | arch/cpuid.s \ |
35 | arch/cpuid.s \ |
32 | arch/delay.s \ |
36 | arch/delay.s \ |
33 | arch/asm.S \ |
37 | arch/asm.S \ |
34 | arch/proc/scheduler.c \ |
38 | arch/proc/scheduler.c \ |
35 | arch/acpi/acpi.c \ |
39 | arch/acpi/acpi.c \ |
36 | arch/acpi/madt.c \ |
40 | arch/acpi/madt.c \ |
37 | arch/bios/bios.c \ |
41 | arch/bios/bios.c \ |
38 | arch/smp/ap.S \ |
42 | arch/smp/ap.S \ |
39 | arch/smp/apic.c \ |
43 | arch/smp/apic.c \ |
40 | arch/smp/mps.c \ |
44 | arch/smp/mps.c \ |
41 | arch/smp/smp.c \ |
45 | arch/smp/smp.c \ |
42 | arch/atomic.S \ |
46 | arch/atomic.S \ |
43 | arch/smp/ipi.c \ |
47 | arch/smp/ipi.c \ |
44 | arch/ia32.c \ |
48 | arch/ia32.c \ |
45 | arch/interrupt.c \ |
49 | arch/interrupt.c \ |
46 | arch/pm.c \ |
50 | arch/pm.c \ |
47 | arch/userspace.c \ |
51 | arch/userspace.c \ |
48 | arch/cpu/cpu.c \ |
52 | arch/cpu/cpu.c \ |
49 | arch/mm/frame.c \ |
53 | arch/mm/frame.c \ |
50 | arch/mm/memory_init.c \ |
54 | arch/mm/memory_init.c \ |
51 | arch/mm/page.c \ |
55 | arch/mm/page.c \ |
52 | arch/mm/tlb.c \ |
56 | arch/mm/tlb.c \ |
53 | arch/drivers/i8042.c \ |
57 | arch/drivers/i8042.c \ |
54 | arch/drivers/i8254.c \ |
58 | arch/drivers/i8254.c \ |
55 | arch/drivers/i8259.c \ |
59 | arch/drivers/i8259.c \ |
56 | arch/drivers/ega.c \ |
60 | arch/drivers/ega.c \ |
57 | arch/boot/boot.S \ |
61 | arch/boot/boot.S \ |
58 | arch/boot/memmap.S\ |
62 | arch/boot/memmap.S\ |
59 | arch/fpu_context.c\ |
63 | arch/fpu_context.c\ |
60 | arch/fmath.c |
64 | arch/fmath.c |
61 | 65 |