diff options
author | Oskar <[email protected]> | 2024-10-14 11:27:58 +0200 |
---|---|---|
committer | Oskar <[email protected]> | 2024-10-14 11:27:58 +0200 |
commit | 9cb882cdb61c9613bc73d8e6042959fb18765c9a (patch) | |
tree | 2dedd566739ef0ffaabc72afe565413003b7ddd6 /Makefile |
first commit, not much done yet. source file and header file. Same scripts used as version 1 trash system. Will probably make better test scripts eventually.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..52e9f35 --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +CC=g++ +CFLAGS_TESTBIN=-O0 -Wfatal-errors -Wall -Werror -Wextra -g3 -fsanitize=address -fsanitize=leak -Wpedantic -Wformat=2 -Wshadow -Wformat-truncation=2 -Wformat-overflow -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) |