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