+# Copyright 2018-2020 Iwo 'Outfrost' Bujkiewicz
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
PLATFORM ?= x86_64-linux-gnu
BUILDDIR ?= target/$(PLATFORM)
SRCDIR ?= src
CPPFLAGS ::= -iquotesrc/ $(CPPFLAGS)
-CFLAGS ::= -g -std=c99 -Wall -Wextra -Wpedantic -Werror $(CFLAGS)
+CFLAGS ::= -g -std=c99 -Wall -Wextra -Wpedantic -Werror \
+ -Wno-error=unused-function -Wno-error=unused-parameter $(CFLAGS)
LDFLAGS ::= $(LDFLAGS)
-LDLIBS ::= -lGL -lGLEW -lglut -lassimp $(LDLIBS)
+LDLIBS ::= -lm -lGL -lGLEW -lglfw -lassimp $(LDLIBS)
# ######
# Paths
sources ::= main.c \
engine/asset.c \
+ engine/engine.c \
engine/geometry.c \
+ engine/input.c \
engine/logger.c \
engine/performance.c \
engine/render.c \
engine/scene.c \
+ engine/string.c \
engine/tga.c \
engine/ui.c \
+ game/game.c \
+ game/input.c \
game/level.c \
game/player.c