3 OBJS=main.o mbentry.o realmode.o loader.o ../pci/pci-raw.o ../lib/minilib.o ../lib/console.o ../ich2/smram-ich2.o ../ich2/smi.o output.o ../lib/sprintf.o ../lib/doprnt.o ../pci/pci.o
5 CFLAGS=-nostdlib -I../include -I../include/raw -I. -D__RAW__ -fno-builtin -nostdinc -Wall -Werror -pedantic -std=gnu99
10 $(CROSS)ld -o smmload $(OBJS) -Ttext=0x100000
12 realmode.bin: realmode.asm
13 nasm -o realmode.bin realmode.asm
15 realmode.o: realmode.bin
16 $(CROSS)objcopy -I binary -B i386 -O elf32-i386 realmode.bin realmode.o
19 rm -f $(OBJS) realmode.bin smmload