]>
Commit | Line | Data |
---|---|---|
d0ea4930 JW |
1 | -include ../config.mk |
2 | ||
83a02556 | 3 | 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 output.o ../lib/sprintf.o ../lib/doprnt.o ../pci/pci.o |
d0ea4930 | 4 | CC=$(CROSS)gcc |
f2da2cd3 | 5 | CFLAGS=-nostdlib -I../include -I../include/raw -I. -D__RAW__ -fno-builtin -nostdinc -Wall -Werror -pedantic -std=gnu99 |
9b8c947b JW |
6 | |
7 | all: multiboot | |
8 | ||
9 | multiboot: $(OBJS) | |
d0ea4930 | 10 | $(CROSS)ld -o multiboot $(OBJS) -Ttext=0x100000 |
c4a16564 JW |
11 | |
12 | realmode.bin: realmode.asm | |
13 | nasm -o realmode.bin realmode.asm | |
14 | ||
15 | realmode.o: realmode.bin | |
d0ea4930 | 16 | $(CROSS)objcopy -I binary -B i386 -O elf32-i386 realmode.bin realmode.o |
7e16b8e6 JP |
17 | |
18 | clean: | |
4122ee13 | 19 | rm -f $(OBJS) realmode.bin multiboot |