From a735aa3139c5b9785eac09dcf6384d89c8d8c445 Mon Sep 17 00:00:00 2001 From: bellard Date: Wed, 25 Feb 2004 23:54:25 +0000 Subject: added precompiled linux boot sector git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@652 c046a42c-6fe2-441c-8c8c-71466251a162 --- pc-bios/Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pc-bios/Makefile (limited to 'pc-bios/Makefile') diff --git a/pc-bios/Makefile b/pc-bios/Makefile new file mode 100644 index 0000000..7ae0ff0 --- /dev/null +++ b/pc-bios/Makefile @@ -0,0 +1,24 @@ +# +# NOTE: only compilable with x86 cross compile tools +# +include ../config-host.mak + +DEFINES= + +TARGETS= +ifeq ($(ARCH),i386) +TARGETS+=linux_boot.bin +endif + +all: $(TARGETS) + +linux_boot.bin: linux_boot.o + ld --oformat binary -Ttext 0 -o $@ $< + chmod a-x $@ + +%.o: %.S + $(CC) $(DEFINES) -c -o $@ $< + +clean: + rm -f $(TARGETS) *.o *~ + -- cgit v1.1