first commit

This commit is contained in:
2024-06-21 17:52:16 +02:00
commit 13cc2693fb
6 changed files with 8274 additions and 0 deletions

27
Makefile Normal file
View File

@ -0,0 +1,27 @@
.PHONY: all clean run
VERSION = 0.0.1
LIBS = sdl2 glew
CMACRO = -DVERSION=\"$(VERSION)\"
CC = gcc
CFLAGS = -g -Wall -Wextra -pedantic $(shell pkg-config $(LIBS) --cflags) $(CMACRO)
LDFLAGS = $(shell pkg-config $(LIBS) --libs) -lm
all: zoomer
zoomer: zoomer.o
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
clean:
rm -f *.o
rm -f zoomer
bear: clean
bear -- make
run: zoomer
./$<