16 lines
276 B
Makefile
16 lines
276 B
Makefile
.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
|