From 66deee38def0f968b9a6740e6cc5186cbfb1bc57 Mon Sep 17 00:00:00 2001 From: frosty Date: Sat, 16 May 2026 01:28:17 -0400 Subject: antigizmodic commit --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f170b69 --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +CC = cc +CFLAGS = -Wall -Wextra -O3 $(shell pkg-config --cflags sdl3 sdl3-image libpulse libpulse-simple) +LDFLAGS = $(shell pkg-config --libs sdl3 sdl3-image libpulse libpulse-simple) + +SRC_DIR = src +BIN_DIR = bin + +all: $(BIN_DIR)/pndacc + +$(BIN_DIR)/pndacc: $(SRC_DIR)/Main.c + mkdir -p $(BIN_DIR) + $(CC) $(CFLAGS) -o $@ $(SRC_DIR)/Main.c $(LDFLAGS) + +run: $(BIN_DIR)/pndacc + ./$(BIN_DIR)/pndacc + +clean: + rm -rf $(BIN_DIR) + +.PHONY: all run clean -- cgit v1.3