P=terrain
OBJECTS=objs/stb_image_precompiled.o objs/glad.o
CFLAGS=-g -Wall -Wextra -O0
LDLIBS=-lOpenGL -lm -lSDL2
# INCLUDES=-I./libs/glad/include/
CC=gcc
RM=rm -vf

.PHONY: build
build: clean
	$(CC) $(CFLAGS) $(LDLIBS) $(INCLUDES) $(OBJECTS) main.c -o $(P)

.PHONY: run
run: build
	./$(P)

.PHONY: clean
clean:
	$(RM) $(P)


.PHONY: all
all: build
