-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
22 lines (20 loc) · 765 Bytes
/
Copy pathMakefile
File metadata and controls
22 lines (20 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
CC = g++
LANG_STD = -std=c++17
COMPILER_FLAGS = -Wall -Wfatal-errors
INCLUDE_PATH = -I"./libs"
INCLUDE_PATH_MACOS = -I"./libs" -I/opt/homebrew/include -I/opt/homebrew/include/SDL2
SRC_FILES = ./src/*.cpp \
./src/Game/*.cpp \
./src/Logger/*.cpp \
./src/ECS/*.cpp \
./src/AssetStore/*.cpp
LINKER_FLAGS = -lSDL2 -lSDL2_image -lSDL2_ttf -lSDL2_mixer -llua5.3
LINKER_FLAGS_MACOS = -L/opt/homebrew/lib -lSDL2 -lSDL2_image -lSDL2_ttf -lSDL2_mixer -llua
OUT_PATH = ./dist/gameengine
build:
$(CC) $(COMPILER_FLAGS) $(LANG_STD) $(INCLUDE_PATH) $(SRC_FILES) $(LINKER_FLAGS) -o $(OUT_PATH)
# $(CC) $(COMPILER_FLAGS) $(LANG_STD) $(INCLUDE_PATH_MACOS) $(SRC_FILES) $(LINKER_FLAGS_MACOS) -o $(OUT_PATH)
run:
$(OUT_PATH)
clean:
rm $(OUT_PATH)