]> Joshua Wise's Git repositories - netwatch.git/blobdiff - aseg-paging/Makefile
add paging fork of aseg; totally not working yet.
[netwatch.git] / aseg-paging / Makefile
diff --git a/aseg-paging/Makefile b/aseg-paging/Makefile
new file mode 100644 (file)
index 0000000..ec2474e
--- /dev/null
@@ -0,0 +1,22 @@
+CC=gcc
+CFLAGS=-I../include -I../include/raw \
+       -I../lwip/src/include -I../lwip/src/include/ipv4 \
+       -nostdlib -nostdinc -fno-builtin -D__RAW__ \
+       -Wall -Werror -std=gnu99
+
+STUBOBJS=entry.o pagingstub-asm.o pagingstub.o
+
+OBJS=smi.o ../ich2/smi.o ../ich2/smram-ich2.o vga-overlay.o ../pci/pci-raw.o ../lib/minilib.o ../lib/doprnt.o ../lib/sprintf.o ../lib/console.o
+
+all: aseg.elf
+
+aseg.elf: aseg.lds $(STUBOBJS) $(OBJS)
+       ld -o aseg.elf -T aseg.lds $(STUBOBJS) $(OBJS)
+
+clean:
+       rm -f $(OBJS) aseg.elf entry.bin entry.o
+
+%.o: %.asm
+       nasm -o $@.bin $<
+       objcopy -I binary -B i386 -O elf32-i386 $@.bin $@
+       rm -f $@.bin
This page took 0.007993 seconds and 4 git commands to generate.