23 lines
479 B
Makefile

all: build run
debug: buildd run clean
zip:
zip naloga.zip hello.c Makefile fun.c fun.h main.c
build: build_hello build_elf_changer
build_hello: hello.c
gcc -m32 hello.c -o hello
buildd: main.c fun.c
gcc -g -m32 main.c fun.c -o elf_changer -fsanitize=address -fno-omit-frame-pointer -Wall -Wextra -Wpedantic -Werror
build_elf_changer:
gcc -m32 main.c fun.c -o elf_changer -Wall -Wextra -Wpedantic -Werror
run:
./elf_changer -h hello
clean:
rm -f hello elf_changer