summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index 7f5f162..1a4f71f 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,6 +1,7 @@
CC := gcc
CFLAGS := -std=c99 -m32 -ffreestanding -O0 -g -Wall -Werror
LD := ld
+LDFLAGS := -f elf32
all: image.bin
@@ -42,7 +43,7 @@ serial.o: serial.c serial.h
$(CC) $(CFLAGS) -c -o serial.o serial.c
port_asm.o: port.asm
- nasm port.asm -f elf32 -o port_asm.o
+ nasm port.asm $(LDFLAGS) -o port_asm.o
string.o: string.c string.h
$(CC) $(CFLAGS) -c -o string.o string.c