From a7d5c8c41464ff8e6cf4f9a3e3a1e8086339d038 Mon Sep 17 00:00:00 2001 From: Oskar Date: Mon, 24 Jun 2024 18:01:11 +0200 Subject: first commit --- Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..91fdebd --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +CC=gcc +CFLAGS_TESTBIN=-O3 -Wfatal-errors -Wall -Werror -Wextra -g -fsanitize=address -Wpedantic -std=gnu99 +CFLAGS=-O3 -flto -march=native -DNDEBUG -fomit-frame-pointer -s -static -std=gnu99 +TARGET=tsr +TESTTARGET=tsr-TESTING +INSTALL_DIRECTORY=/usr/local/bin +MAKEFLAGS += +SRCS=trashsys.c + +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) -- cgit v1.2.3