diff --git a/Makefile b/Makefile index fda95f5..3c06881 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,10 @@ +# This is free and unencumbered software released into the public domain. +# Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. + CC = gcc AR = ar -LIBS := -lopengl32 -lshell32 -lgdi32 +LIBS := -lopengl32 -lshell32 -lgdi32 -lXInput -lShcore EXT = dll ifneq (,$(filter $(CC),winegcc x86_64-w64-mingw32-gcc)) @@ -27,7 +30,7 @@ else endif ifeq ($(detected_OS),Windows) - LIBS := -lopengl32 -lshell32 -lgdi32 + LIBS := -lopengl32 -lshell32 -lgdi32 -lXInput -lShcore EXT = dll endif ifeq ($(detected_OS),Darwin) # Mac OS X diff --git a/examples/Makefile b/examples/Makefile index 926d866..b837489 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -3,7 +3,7 @@ CC = gcc -LIBS := -I.. -lopengl32 -lshell32 -lgdi32 -lm +LIBS := -I.. -lopengl32 -lshell32 -lgdi32 -lm -lXInput -lShcore ifneq (,$(filter $(CC),winegcc x86_64-w64-mingw32-gcc)) detected_OS := Windows else @@ -18,7 +18,7 @@ endif endif ifeq ($(detected_OS),Windows) - LIBS := -I.. -lopengl32 -lshell32 -lgdi32 -lm + LIBS := -I.. -lopengl32 -lXInput -lShcore -lshell32 -lgdi32 -lm endif ifeq ($(detected_OS),Darwin) # Mac OS X LIBS := -I.. -lm -framework Foundation -framework AppKit -framework OpenGL -framework CoreVideo