01 one shape, one color

This commit is contained in:
noname
2026-01-01 23:56:07 +01:00
parent 2dbc773716
commit f4ec986cc6
5 changed files with 179 additions and 1 deletions

22
01-one-shape/Makefile Normal file
View File

@@ -0,0 +1,22 @@
PROG=shapes
CC=gcc
STD=c2x
SRC_FILES=main.c
OUT_DIR=./
CFLAGS=-std=$(STD) -ggdb
EXPERIMENTAL_FLAGS=-pg -Ofast
LIBS=-lraylib -lGL -lX11 -lXrandr -lXinerama -lXi -lXxf86vm -lXcursor -lm -lpthread -ldl -lrt -lm
shapes:
$(CC) $(SRC_FILES) -o $(OUT_DIR)$@ $(CFLAGS) $(EXPERIMENTAL_FLAGS) $(LIBS)
run: shapes
$(OUT_DIR)$(PROG)
clean:
rm $(OUT_DIR)$(PROG)
.PHONY: shapes run clean