diff --git a/apps/onlyhlt/.gitignore b/apps/onlyhlt/.gitignore index cddb46364..31d3ebc4f 100644 --- a/apps/onlyhlt/.gitignore +++ b/apps/onlyhlt/.gitignore @@ -1 +1,2 @@ /onlyhlt +/onlyhlt.o diff --git a/apps/onlyhlt/Makefile b/apps/onlyhlt/Makefile index 0942c6bdd..3cb72e68e 100644 --- a/apps/onlyhlt/Makefile +++ b/apps/onlyhlt/Makefile @@ -1,7 +1,4 @@ TARGET = onlyhlt - -.PHONY: all -all: $(TARGET) - -onlyhlt: onlyhlt.asm Makefile - nasm -f bin -o $@ $< +OBJS = onlyhlt.o +include ../Makefile.elfapp +OBJS = onlyhlt.o diff --git a/apps/onlyhlt/onlyhlt.asm b/apps/onlyhlt/onlyhlt.asm index f3b34cbc1..396e15f59 100644 --- a/apps/onlyhlt/onlyhlt.asm +++ b/apps/onlyhlt/onlyhlt.asm @@ -1,6 +1,8 @@ bits 64 section .text +global _start +_start: loop: hlt jmp loop