summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 0fb7d0e..1d0944a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-OBJ=bootstub.o spi-uart.o head.o sfi.o
+OBJ=bootstub.o spi-uart.o head.o sfi.o e820_bios.o
CMDLINE_SIZE ?= 0x400
CFLAGS=-m32 -ffreestanding -Wall -DCMDLINE_SIZE=${CMDLINE_SIZE}
CC ?= gcc
@@ -24,7 +24,10 @@ sfi.o:sfi.c
${CC} $(CFLAGS) -c sfi.c
head.o:head.S bootstub.h
- ${CC} $(CFLAGS) -c head.S
+ ${CC} $(CFLAGS) -D__ASSEMBLY__ -c head.S
+
+e820_bios.o:e820_bios.S bootstub.h
+ ${CC} $(CFLAGS) -D__ASSEMBLY__ -c e820_bios.S
clean:
rm -rf *.o *.bin *.elf *.bz2 *.rpm