]> git.lizzy.rs Git - shadowclad.git/blobdiff - Makefile
Also yeah divide by zero is a thing
[shadowclad.git] / Makefile
index 2d28f78d95078f1cebe7077d9d6626be41a6b74c..3ee9546e99e1a155e3240080867c1248b1e690cc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,19 @@
+# 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 ::= -L/usr/local/lib -lGL -lGLEW -lglut -lassimp $(LDLIBS)
+LDLIBS ::= -lm -lGL -lGLEW -lglfw -lassimp $(LDLIBS)
 
 # ######
 # Paths
@@ -14,11 +21,18 @@ LDLIBS ::= -L/usr/local/lib -lGL -lGLEW -lglut -lassimp $(LDLIBS)
 
 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
 
@@ -69,7 +83,7 @@ init:
 # Build and run
 run: $(binary)
        @echo
-       @LD_LIBRARY_PATH=/usr/local/lib $(binary)
+       @$(binary)
 .PHONY: run
 
 # Build executable