this is the coolest thing I have done

This commit is contained in:
SowinskiBraeden committed 2026-01-08 23:35:38 -08:00
commit f4e3b2a1f9
4 files changed
+248

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
CC = gcc
CFLAGS = -Wall -Wextra -std=c17 `sdl2-config --cflags`
LDFLAGS = `sdl2-config --libs` -lm
SRC = $(wildcard *.c)
OBJ = $(SRC:.c=.o)
TARGET = app
all: $(TARGET)
$(TARGET): $(OBJ)
$(CC) $(OBJ) -o $(TARGET) $(LDFLAGS)
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
run: $(TARGET)
./$(TARGET)
clean:
rm -f $(OBJ) $(TARGET)