opengl

Sample code from LearnOpenGL.com
Log | Files | Refs

commit 71547d6ff6ccd939d7f4a6d138ed0ddae1a68efb
parent a9d199ef032c4fc563c1191850e710de89406553
Author: Matsuda Kenji <info@mtkn.jp>
Date:   Tue, 27 Jun 2023 08:45:56 +0900

add other compilers

Diffstat:
MMakefile | 10++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,6 +1,6 @@ CC = tcc -SRC = main.c shader.c src/glad.c -HDR = main.h +SRC = main.c shader.c glm.c src/glad.c +HDR = main.h glm.h OUT = main INCS = -I./include @@ -11,6 +11,12 @@ LDFLAGS = -lglfw -lGL -lX11 -lpthread -lXrandr -lXi -ldl -lm all: $(SRC) $(HDR) $(CC) -o $(OUT) $(CFLAGS) $(INCS) $(LDFLAGS) $(SRC) + +gcc: + make "CC=gcc" + +clang: + make "CC=clang" run: all ./$(OUT)