diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2023-01-31 21:55:33 +0100 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2023-01-31 21:55:33 +0100 |
commit | 258c9ef71e45c8e6dff9ee708ce51681dc90ecf9 (patch) | |
tree | 78a99cc9919ee1a9c8d586c2ebbe168dfb5193d2 /makefile | |
download | ebs-258c9ef71e45c8e6dff9ee708ce51681dc90ecf9.tar ebs-258c9ef71e45c8e6dff9ee708ce51681dc90ecf9.tar.gz ebs-258c9ef71e45c8e6dff9ee708ce51681dc90ecf9.tar.bz2 ebs-258c9ef71e45c8e6dff9ee708ce51681dc90ecf9.tar.lz ebs-258c9ef71e45c8e6dff9ee708ce51681dc90ecf9.tar.xz ebs-258c9ef71e45c8e6dff9ee708ce51681dc90ecf9.tar.zst ebs-258c9ef71e45c8e6dff9ee708ce51681dc90ecf9.zip |
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/makefile b/makefile new file mode 100644 index 0000000..5b5889b --- /dev/null +++ b/makefile @@ -0,0 +1,26 @@ +DESTDIR=/ +CC=cc +MYCFLAGS=-Ofast -march=native -Wall -Wextra -Wformat -pedantic -g -I. # -fsanitize=address +MYLDFLAGS=-lpthread + +default: ebs disass + +ebs: main.c ebs.c + $(CC) $(MYCFLAGS) $(CFLAGS) main.c -o$@ $(MYLDFLAGS) $(LDFLAGS) + +disass: disass + $(CC) $(MYCFLAGS) $(CFLAGS) disass.c -o$@ $(MYLDFLAGS) $(LDFLAGS) + +install: + mkdir -p $(DESTDIR)/usr/bin/ + cp ebs $(DESTDIR)/usr/bin/ + +distclean: clean + +clean: + rm -rf ebs tmp + +valgrind: + valgrind --error-exitcode=59 --leak-check=full --show-leak-kinds=all --track-origins=yes --verbose --log-file=valgrind-out.txt $(CMD) + +.PHONY: default install distclean clean valgrind ebs disass |