]> Joshua Wise's Git repositories - netwatch.git/blob - grubload/Makefile
1a0fb2af332693ee57d2eebe8b1e6e760dd96df8
[netwatch.git] / grubload / Makefile
1 OBJS=multiboot_c.o multiboot_asm.o realmode.o loader.o ../pci/pci-raw.o ../lib/minilib.o ../lib/console.o
2 CC=gcc
3 CFLAGS=-nostdlib -I../include -I../include/raw -I. -fno-builtin -nostdinc
4
5 all: multiboot
6
7 multiboot: $(OBJS)
8         ld -o multiboot $(OBJS) -Ttext=0x100000
9
10 realmode.bin: realmode.asm
11         nasm -o realmode.bin realmode.asm
12
13 realmode.o: realmode.bin
14         objcopy -I binary -B i386 -O elf32-i386 realmode.bin realmode.o
15
16 clean:
17         rm -f $(OBJS) realmode.bin multiboot
This page took 0.021577 seconds and 2 git commands to generate.