blob: 6ed64dc042c71eacc157bc02f228caab8a3a0e5b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
CC=clang++
CFLAGS_TESTBIN=-O0 -Wfatal-errors -Wall -Werror -Wextra -g3 -fsanitize=address -fsanitize=leak -Wpedantic -Wformat=2 -Wshadow -fno-common -std=c++20 -DDEBUG_S
CFLAGS=-O3 -flto -march=native -DNDEBUG -fomit-frame-pointer -s -static -std=c++20
TARGET=tsr
TESTTARGET=tsr-TESTING
INSTALL_DIRECTORY=/usr/local/bin
MAKEFLAGS +=
SRCS=trashsystem2.cpp
all: release
clean:
rm -f $(TARGET)
rm -f test/$(TESTTARGET)
tests:
$(CC) $(CFLAGS_TESTBIN) $(SRCS) -o test/$(TESTTARGET)
install:
cp $(TARGET) $(INSTALL_DIRECTORY)
release:
$(CC) $(CFLAGS) $(SRCS) -o $(TARGET)
|