mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-04-28 19:03:41 +00:00
21 lines
271 B
Makefile
21 lines
271 B
Makefile
NAME := kernel
|
|
|
|
BIN := $(NAME).bin
|
|
ELF := $(NAME).elf
|
|
OBJ := $(NAME).o
|
|
|
|
all: $(BIN)
|
|
|
|
$(BIN): $(ELF)
|
|
objcopy -O binary $< $@
|
|
|
|
$(ELF): $(OBJ)
|
|
ld -Ttext=0x00 -nostdlib -static $< -o $@
|
|
|
|
%.o: %.S
|
|
gcc -nostdinc -c $< -o $@
|
|
|
|
clean:
|
|
rm -f $(BIN) $(ELF) $(OBJ)
|
|
.PHONY: clean
|