1 OBJS=multiboot_c.o multiboot_asm.o realmode.o loader.o ../pci/pci-raw.o ../lib/minilib.o ../lib/console.o ../ich2/smram-ich2.o ../ich2/smi.o
3 CFLAGS=-nostdlib -I../include -I../include/raw -I. -D__RAW__ -fno-builtin -nostdinc
8 ld -o multiboot $(OBJS) -Ttext=0x100000
10 realmode.bin: realmode.asm
11 nasm -o realmode.bin realmode.asm
13 realmode.o: realmode.bin
14 objcopy -I binary -B i386 -O elf32-i386 realmode.bin realmode.o
17 rm -f $(OBJS) realmode.bin multiboot