hello-world/Makefile

16 lines
276 B
Makefile
Raw Permalink Normal View History

2020-07-13 10:27:16 +00:00
.PHONY: compile link info exec
dyn: compile link exec
compile:
as hello.s -o hello.obj
link:
@#ld -m elf_x86_64 --entry=main -lc --dynamic-linker /lib64/ld-linux-x86-64.so.2 -o hello hello.obj
ld -m elf_x86_64 -o hello hello.obj
exec:
@./hello
info:
readelf -a hello