Automated update

This commit is contained in:
klein panic
2025-02-28 22:00:25 -05:00
parent d891eb5237
commit a5f056237a
23 changed files with 424 additions and 302 deletions

23
Makefile Normal file
View File

@@ -0,0 +1,23 @@
CC = gcc
CFLAGS = -Wall -O2
LIBS = -lX11 -lm
SRC = src/main.c src/coin.c src/animation.c src/gui_animation.c
OBJDIR = obj
OBJ = $(OBJDIR)/main.o $(OBJDIR)/coin.o $(OBJDIR)/animation.o $(OBJDIR)/gui_animation.o
TARGET = coinfipper
all: $(TARGET)
$(TARGET): $(OBJ)
$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
$(OBJDIR)/%.o: src/%.c | $(OBJDIR)
$(CC) $(CFLAGS) -c $< -o $@
$(OBJDIR):
mkdir -p $(OBJDIR)
clean:
rm -rf $(OBJDIR) $(TARGET)