lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
Last change
on this file since 5260478 was 258c3e6, checked in by Martin Decky <martin@…>, 20 years ago |
alternative makefile for building with IA-32 cross-compiler
|
-
Property mode
set to
100644
|
File size:
1.1 KB
|
Line | |
---|
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
|
---|
9 |
|
---|
10 | DEFS:=-DARCH=$(ARCH)
|
---|
11 |
|
---|
12 | ifdef SMP
|
---|
13 | DEFS+=-D$(SMP)
|
---|
14 | endif
|
---|
15 |
|
---|
16 | ifdef HT
|
---|
17 | DEFS+=-D$(HT)
|
---|
18 | endif
|
---|
19 |
|
---|
20 | CPPFLAGS=$(DEFS) -nostdinc -I../include
|
---|
21 | CFLAGS=$(CPPFLAGS) -nostdlib -fno-builtin -fomit-frame-pointer -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3
|
---|
22 | LFLAGS=-M -no-check-sections -T ../arch/ia32/_link.ld
|
---|
23 |
|
---|
24 | arch_sources= \
|
---|
25 | arch/context.s \
|
---|
26 | arch/debug/panic.s \
|
---|
27 | arch/cpuid.s \
|
---|
28 | arch/delay.s \
|
---|
29 | arch/asm.S \
|
---|
30 | arch/proc/scheduler.c \
|
---|
31 | arch/acpi/acpi.c \
|
---|
32 | arch/acpi/madt.c \
|
---|
33 | arch/bios/bios.c \
|
---|
34 | arch/smp/ap.S \
|
---|
35 | arch/smp/apic.c \
|
---|
36 | arch/smp/mps.c \
|
---|
37 | arch/smp/smp.c \
|
---|
38 | arch/atomic.S \
|
---|
39 | arch/smp/ipi.c \
|
---|
40 | arch/ia32.c \
|
---|
41 | arch/interrupt.c \
|
---|
42 | arch/pm.c \
|
---|
43 | arch/userspace.c \
|
---|
44 | arch/cpu/cpu.c \
|
---|
45 | arch/mm/frame.c \
|
---|
46 | arch/mm/memory_init.c \
|
---|
47 | arch/mm/page.c \
|
---|
48 | arch/mm/tlb.c \
|
---|
49 | arch/drivers/i8042.c \
|
---|
50 | arch/drivers/i8254.c \
|
---|
51 | arch/drivers/i8259.c \
|
---|
52 | arch/drivers/ega.c \
|
---|
53 | arch/boot/boot.S \
|
---|
54 | arch/boot/memmap.S\
|
---|
55 | arch/fpu_context.c\
|
---|
56 | arch/fmath.c
|
---|
Note:
See
TracBrowser
for help on using the repository browser.