blob: e109eeefb758fc46290722d3a29b423f365e1ba4 (
plain) (
tree)
|
|
DESTDIR=/
CC=cc
MYCFLAGS=-O3 -DFAST_RAM -DNO_HOOKS -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.c
$(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
|