]> Joshua Wise's Git repositories - netwatch.git/blob - grubload/Makefile
More churn moving files around.
[netwatch.git] / grubload / Makefile
1 -include ../config.mk
2 -include ../hardware/ich2/config.mk
3
4 OBJS=main.o mbentry.o realmode.o loader.o ../pci/pci-raw.o ../lib/minilib.o ../lib/console.o $(CHIP_OBJS) output.o ../lib/sprintf.o ../lib/doprnt.o ../pci/pci.o
5 CC=$(CROSS)gcc
6 CFLAGS+=-nostdlib -I../include -I../include/raw -I. -D__RAW__ -fno-builtin -nostdinc -Wall -Werror -pedantic -std=gnu99
7
8 all: smmload
9
10 smmload: $(OBJS)
11         $(CROSS)ld -o smmload $(OBJS) -Ttext=0x100000
12
13 realmode.bin: realmode.asm
14         nasm -o realmode.bin realmode.asm
15
16 realmode.o: realmode.bin
17         $(CROSS)objcopy -I binary -B i386 -O elf32-i386 realmode.bin realmode.o
18
19 clean:
20         rm -f $(OBJS) realmode.bin smmload
This page took 0.028136 seconds and 4 git commands to generate.