Subversion Repositories HelenOS-historic

Rev

Rev 290 | 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
309 palkovsky 10
OBJDUMP=$(IA-32_BINUTILS_DIR)/$(IA-32_TARGET)-objdump
262 decky 11
 
279 decky 12
BFD_NAME=elf32-i386
13
BFD_ARCH=i386
14
 
309 palkovsky 15
DEFS:=-DARCH=$(ARCH) -DFPU_LAZY
262 decky 16
 
17
ifdef SMP
18
DEFS+=-D$(SMP)
19
endif
20
 
21
ifdef HT
22
DEFS+=-D$(HT)
23
endif
24
 
25
CPPFLAGS=$(DEFS) -nostdinc -I../include
26
CFLAGS=$(CPPFLAGS) -nostdlib -fno-builtin -fomit-frame-pointer -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3
290 palkovsky 27
LFLAGS=-M -no-check-sections
262 decky 28
 
309 palkovsky 29
../arch/$(ARCH)/_link.ld: ../arch/$(ARCH)/_link.ld.in
30
	$(CC) $(CFLAGS) -E -x c $< | grep -v "^\#" > $@
31
 
262 decky 32
arch_sources= \
33
	arch/context.s \
34
	arch/debug/panic.s \
35
	arch/cpuid.s \
36
	arch/delay.s \
37
	arch/asm.S \
38
	arch/proc/scheduler.c \
39
	arch/acpi/acpi.c \
40
	arch/acpi/madt.c \
41
	arch/bios/bios.c \
42
	arch/smp/ap.S \
43
	arch/smp/apic.c \
44
	arch/smp/mps.c \
45
	arch/smp/smp.c \
46
	arch/atomic.S \
47
	arch/smp/ipi.c \
48
	arch/ia32.c \
49
	arch/interrupt.c \
50
	arch/pm.c \
51
	arch/userspace.c \
52
	arch/cpu/cpu.c \
53
	arch/mm/frame.c \
54
	arch/mm/memory_init.c \
55
	arch/mm/page.c \
56
	arch/mm/tlb.c \
57
	arch/drivers/i8042.c \
58
	arch/drivers/i8254.c \
59
	arch/drivers/i8259.c \
60
	arch/drivers/ega.c \
61
	arch/boot/boot.S \
62
	arch/boot/memmap.S\
63
	arch/fpu_context.c\
64
	arch/fmath.c