summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f215dd1..baf60e1 100644
--- a/Makefile
+++ b/Makefile
@@ -20,7 +20,7 @@ OBJS= head.o reloc.o main.o test.o init.o lib.o patn.o screen_buffer.o \
smp.o vmem.o random.o
-all: memtest.bin memtest
+all: memtest.bin memtest memtest.0
# Link it statically once so I know I don't have undefined
# symbols and then link it dynamically so I have full
@@ -45,10 +45,17 @@ bootsect.s: bootsect.S config.h defs.h
setup.s: setup.S config.h defs.h
$(CC) -E -traditional $< -o $@
+pxe.s: pxe.S config.h defs.h
+ $(CC) -E -traditional $< -o $@
+
memtest.bin: memtest_shared.bin bootsect.o setup.o memtest.bin.lds
$(LD) -T memtest.bin.lds bootsect.o setup.o -b binary \
memtest_shared.bin -o memtest.bin
+memtest.0: memtest_shared.bin pxe.o setup.o memtest.bin.lds
+ $(LD) -T memtest.bin.lds pxe.o setup.o -b binary \
+ memtest_shared.bin -o memtest.0
+
reloc.o: reloc.c
$(CC) -c $(CFLAGS) -fno-strict-aliasing reloc.c
@@ -64,7 +71,7 @@ build_number:
clean:
rm -f *.o *.s *.iso memtest.bin memtest memtest_shared \
- memtest_shared.bin memtest.iso
+ memtest_shared.bin memtest.iso memtest.0
iso:
make all