Statistics
| Branch: | Revision:

root / pc-bios / Makefile @ fa36761d

History | View | Annotate | Download (328 Bytes)

1 a735aa31 bellard
#
2 a735aa31 bellard
# NOTE: only compilable with x86 cross compile tools
3 a735aa31 bellard
#
4 a735aa31 bellard
include ../config-host.mak
5 a735aa31 bellard
6 a735aa31 bellard
DEFINES=
7 a735aa31 bellard
8 a735aa31 bellard
TARGETS=
9 a735aa31 bellard
ifeq ($(ARCH),i386)
10 a735aa31 bellard
TARGETS+=linux_boot.bin
11 a735aa31 bellard
endif
12 a735aa31 bellard
13 a735aa31 bellard
all: $(TARGETS)
14 a735aa31 bellard
15 a735aa31 bellard
linux_boot.bin: linux_boot.o
16 a735aa31 bellard
	ld --oformat binary -Ttext 0 -o $@ $<
17 a735aa31 bellard
	chmod a-x $@
18 a735aa31 bellard
19 a735aa31 bellard
%.o: %.S
20 a735aa31 bellard
	$(CC) $(DEFINES) -c -o $@ $<
21 a735aa31 bellard
22 a735aa31 bellard
clean:
23 a735aa31 bellard
	rm -f $(TARGETS) *.o *~