From 7883981fe9976b3933959c04fa8cc62158c70855 Mon Sep 17 00:00:00 2001 From: uint23 Date: Mon, 14 Apr 2025 22:18:55 +0100 Subject: inital window manager setup. check for other window managers too --- Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2cdfaf1 --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +CC = gcc +CFLAGS = -Wall -Wextra -O2 -g -Isrc +LDFLAGS = -lX11 + +SRC_DIR = src +SRC = $(wildcard $(SRC_DIR)/*.c) +OBJ = $(SRC:.c=.o) +BIN = sxwm + +all: $(BIN) + +$(BIN): $(OBJ) + $(CC) -o $@ $^ $(LDFLAGS) + +$(SRC_DIR)/%.o: $(SRC_DIR)/%.c + $(CC) $(CFLAGS) -c -o $@ $< + +x: + rm -f $(SRC_DIR)/*.o $(BIN) + +r: + x all + +.PHONY: all clean rebuild -- cgit v1.2.3