diff --git a/Makefile b/Makefile index 3c8e03b..23c80df 100644 --- a/Makefile +++ b/Makefile @@ -3,13 +3,13 @@ CXX := x86_64-w64-mingw32-g++ SRC_DIR := src INCLUDE_DIR := include SDL2_INCLUDE_DIR := C:/SDL2/include -SDL2_LIB_DIR := C:/SDL2/lib/x64 +SDL2_LIB_DIR := C:/SDL2/lib CXXFLAGS := -std=c++17 -Wall -Werror -m64 -I$(INCLUDE_DIR) -I$(SDL2_INCLUDE_DIR) -TARGET := DurkGame.lib +TARGET := DurkGame.a SRC := $(wildcard $(SRC_DIR)/*.cpp) OBJ := $(SRC:.cpp=.o) -LIB := $(wildcard $(SDL2_LIB_DIR)/*.lib) +LIB := $(wildcard $(SDL2_LIB_DIR)/*.a) all: $(TARGET) diff --git a/example/Makefile b/example/Makefile index 3411ba3..3a92bc2 100644 --- a/example/Makefile +++ b/example/Makefile @@ -3,7 +3,7 @@ CXX := x86_64-w64-mingw32-g++ SRC_DIR := src INCLUDE_DIR := include SDL2_INCLUDE_DIR := C:/SDL2/include -SDL2_LIB_DIR := C:/SDL2/lib/x64 +SDL2_LIB_DIR := C:/SDL2/lib DK_INCLUDE_DIR := ../include DK_LIB_DIR := .. @@ -11,7 +11,7 @@ CXXFLAGS := -std=c++17 -Wall -Werror -m64 -I$(INCLUDE_DIR) -I$(SDL2_INCLUDE_DIR) TARGET := Game.exe SRC := $(wildcard $(SRC_DIR)/*.cpp) OBJ := $(SRC:.cpp=.o) -LIB := ../DurkGame.lib $(wildcard $(SDL2_LIB_DIR)/*.lib) +LIB := ../DurkGame.a $(wildcard $(SDL2_LIB_DIR)/*.a) all: $(TARGET)