elf files
This commit is contained in:
parent
380d96e70e
commit
80700af624
7
Makefile
7
Makefile
|
@ -3,8 +3,8 @@ PPC = powerpc-eabi
|
||||||
QEMU = qemu-system-ppc
|
QEMU = qemu-system-ppc
|
||||||
RES = 1600x900x32
|
RES = 1600x900x32
|
||||||
|
|
||||||
SOURCES_C = $(wildcard entry/*.c)
|
SOURCES_C = $(shell find entry -name "*.c")
|
||||||
SOURCES_S = $(wildcard entry/*.s)
|
SOURCES_S = $(shell find entry -name "*.s")
|
||||||
OBJECTS = $(SOURCES_C:.c=.elf) $(SOURCES_S:.s=.elf)
|
OBJECTS = $(SOURCES_C:.c=.elf) $(SOURCES_S:.s=.elf)
|
||||||
|
|
||||||
.PHONY: clean run debug beige
|
.PHONY: clean run debug beige
|
||||||
|
@ -36,7 +36,8 @@ kernel.elf: $(OBJECTS)
|
||||||
$(PPC)-as -c $< -o $@
|
$(PPC)-as -c $< -o $@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.APM *elf *txt
|
rm -f *.APM *txt
|
||||||
|
find entry -name "*.elf" -type f -delete
|
||||||
|
|
||||||
run:
|
run:
|
||||||
$(QEMU) -hda *.APM -g $(RES) -machine $(MACHINE)
|
$(QEMU) -hda *.APM -g $(RES) -machine $(MACHINE)
|
||||||
|
|
Loading…
Reference in New Issue