shithub: elf-loader

ref: e5e12f806ecf322946c093fe59d909beb9160d0c
dir: /hello/Makefile/

View raw version
CFLAGS=\
	-O2\
	-Wall\
	-fno-pie\
	-mno-mmx\
	-mno-sse\
	-mno-sse2\
	-ffreestanding

LDFLAGS=\
	-nostdlib\
	-no-pie\
	-Tlinker.ld

hello.elf:	l.o hello.o linker.ld
	$(LD) -o $@ l.o hello.o $(LDFLAGS)

CC=	x86_64-elf-gcc
AS=	x86_64-elf-as
LD=	x86_64-elf-ld

clean:
	rm -f *.o hello.elf