x11 window and opengl initialization and drawing of basic quad

This commit is contained in:
2023-09-03 00:51:45 +03:00
parent 295f5707fa
commit 2023497beb
16 changed files with 27559 additions and 7 deletions
+12
View File
@@ -0,0 +1,12 @@
BIN=cudoku
CC=gcc
CFLAGS=-Wall -Wextra -Werror -pedantic -O3 -g `pkg-config --cflags x11` -I3rdparty/glad/include
OBJ=main.o x11.o cudoku.o shader.o 3rdparty/glad/src/gl.o 3rdparty/glad/src/glx.o
LDFLAGS=`pkg-config --libs x11`
DEPS=3rdparty/glad/include/glad/gl.h 3rdparty/glad/include/glad/glx.h
%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
$(BIN): $(OBJ)
$(CC) -o $@ $(OBJ) $(LDFLAGS)