-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (24 loc) · 999 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#OBJS specifies which files to compile as part of the project
MAIN = main.cpp
UI = ui-test.cpp
SRC = entity.cpp dice_roll.cpp simdjson.cpp StatHelpers.cpp skills.cpp char_class.cpp items.cpp
SRC_UI = src/* #entity.cpp dice_roll.cpp simdjson.cpp StatHelpers.cpp skills.cpp char_class.cpp items.cpp rogueutil.c ui_util.cpp
OBJS = $(MAIN) $(SRC)
UI_OBJ = $(UI) $(SRC_UI)
INCL = -I include
#CC specifies which compiler we're using
CC = g++
#COMPILER_FLAGS specifies the additional compilation options we're using
# -w suppresses all warnings
COMPILER_FLAGS = -g -std=c++17 -Wall
COMPUI_FLAGS = -g -O2 -Wall -Wextra
#LINKER_FLAGS specifies the libraries we're linking against
LINKER_FLAGS =
#OBJ_NAME specifies the name of our exectuable
OBJ_NAME = magic
#This is the target that compiles our executable
# test : $(OBJS)
# $(CC) $(INCL) $(OBJS) $(COMPILER_FLAGS) $(LINKER_FLAGS) -o $(OBJ_NAME)
all : $(UI_OBJ)
$(CXX) $(INCL) $(UI_OBJ) $(COMPILER_FLAGS) $(LINKER_FLAGS) -o ui-test
.PHONY : clean