]> git.lizzy.rs Git - shadowclad.git/blobdiff - Makefile
With Mesa, we can ask about GLSL
[shadowclad.git] / Makefile
index 754b2385e77cf810a46d64c9fc16b3f1c516e8a3..c454140a7340440a20b7b3e523423fbf3c475eec 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,9 +7,10 @@ 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 ::= -L/usr/x86_64-w64-mingw32/bin -lm -lopengl32 -lglew32 -lglfw3 -lassimp $(LDLIBS)
 
 # ######
 # Paths
@@ -17,13 +18,18 @@ LDLIBS ::= -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
 
@@ -50,7 +56,7 @@ binary ::= $(BUILDDIR)/shadowclad.exe
 $(binary): $(objects)
        @mkdir -p $(@D)
        @echo "Linking executable"
-       @$(CC) $(LDFLAGS) -o $(binary) $^ $(LOADLIBES) $(LDLIBS)
+       $(CC) $(LDFLAGS) -o $(binary) $^ $(LOADLIBES) $(LDLIBS)
 
 # Build C translation units
 $(objects): $(BUILDDIR)/%.c.o: %.c $(BUILDDIR)/%.c.mk