blob: 5b5889beaa2f9c9c03ea2c6782d5179ea04fbb69 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
|