sim-card
/
qemu
Archived
10
0
Fork 0
This repository has been archived on 2022-03-30. You can view files and clone it, but cannot push or open issues or pull requests.
qemu/pc-bios/Makefile

25 lines
328 B
Makefile

#
# 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 *~