Added initial project files

yeet
This commit is contained in:
snapshot112
2025-10-13 15:29:56 +02:00
committed by GitHub
parent bf1a906682
commit 10c3545488
7 changed files with 759 additions and 0 deletions

27
Makefile Normal file
View File

@@ -0,0 +1,27 @@
CC = gcc
CFLAGS = -std=c11 -Wextra -Wpedantic -g3 -fsanitize=address
LDFLAGS = -lncursesw -fsanitize=address
SRC = $(filter-out voorbeeld.c,$(wildcard *.c))
HEADERS = $(wildcard *.h)
.PHONY: tarball1 tarball2 clean
all: spel
spel: $(SRC)
$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)
voorbeeld:
$(CC) -o voorbeeld voorbeeld.c $(CFLAGS) $(LDFLAGS)
tarball1: deel1.tar.gz
tarball2: deel2.tar.gz
deel1.tar.gz: spel.c rooster.h rooster.c Makefile
tar czf $@ $^
deel2.tar.gz: $(SRC) $(HEADERS) Makefile
tar czf $@ $^ assets
clean:
rm -f *~ *.o voorbeeld spel deel?.tar.gz