Skip to content

Commit

Permalink
switched from lib to a file
Browse files Browse the repository at this point in the history
  • Loading branch information
durkisneer1 committed Nov 21, 2023
1 parent 87abcb4 commit 9b0ac65
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 2 additions & 2 deletions example/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ 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 := ..

CXXFLAGS := -std=c++17 -Wall -Werror -m64 -I$(INCLUDE_DIR) -I$(SDL2_INCLUDE_DIR) -I$(DK_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)

Expand Down

0 comments on commit 9b0ac65

Please sign in to comment.