From 62569083ce2422a0554d514a0a4dee5c85b89d4e Mon Sep 17 00:00:00 2001 From: iamcheeseman <[hidden email]> Date: Sat, 28 Feb 2026 17:59:15 -0500 Subject: init --- Makefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..79a4243 --- /dev/null +++ b/Makefile @@ -0,0 +1,25 @@ +CC=cc +CFLAGS+=-std=c99 -pedantic -Wall -Wextra -O2 +LDFLAGS+=-lX11 -lxcb + +TSAR_OUT=tsarbar + +HEADERS= +SRC=src/tsar.c + +.PHONY: default run clean + +default: $(TSAR_OUT) + +# Project should be small enough that we should be able to ignore incremental +# compilation +$(TSAR_OUT): $(SRC) + $(CC) $(SRC) -o $(TSAR_OUT) $(CFLAGS) $(LDFLAGS) + +%.c: + +run: $(TSAR_OUT) + ./$(TSAR_OUT) + +clean: + rm $(TSAR_OUT) -- cgit v1.3-2-g0d8e