diff options
| author | frosty <gabriel@bwaaa.monster> | 2026-05-16 01:28:17 -0400 |
|---|---|---|
| committer | frosty <gabriel@bwaaa.monster> | 2026-05-16 01:28:17 -0400 |
| commit | 66deee38def0f968b9a6740e6cc5186cbfb1bc57 (patch) | |
| tree | 339512f0f74f4f2cee50947aaab5d59371c65f32 /Makefile | |
| download | PNDacc-66deee38def0f968b9a6740e6cc5186cbfb1bc57.tar.gz | |
antigizmodic commit
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
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 |
