]> Joshua Wise's Git repositories - netwatch.git/blame_incremental - grubload/Makefile
Add cross-compile support (for fools like me who build on OS X) to the Makefiles.
[netwatch.git] / grubload / Makefile
... / ...
CommitLineData
1-include ../config.mk
2
3OBJS=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 output.o ../lib/sprintf.o ../lib/doprnt.o ../pci/pci.o
4CC=$(CROSS)gcc
5CFLAGS=-nostdlib -I../include -I../include/raw -I. -D__RAW__ -fno-builtin -nostdinc -Wall -Werror -pedantic -std=gnu99
6
7all: multiboot
8
9multiboot: $(OBJS)
10 $(CROSS)ld -o multiboot $(OBJS) -Ttext=0x100000
11
12realmode.bin: realmode.asm
13 nasm -o realmode.bin realmode.asm
14
15realmode.o: realmode.bin
16 $(CROSS)objcopy -I binary -B i386 -O elf32-i386 realmode.bin realmode.o
17
18clean:
19 rm -f $(OBJS) realmode.bin multiboot
This page took 0.020669 seconds and 4 git commands to generate.