-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (30 loc) · 674 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
32
33
34
35
36
37
38
39
40
41
CXX = clang++
SRC = main.cpp \
AbstractEntity.cpp \
Character.cpp \
ResourceManager.cpp \
Monster.cpp \
GameWorld.cpp \
CollisionManager.cpp \
Platform.cpp \
Background.cpp \
MapFactory.cpp \
SoundManager.cpp \
PickMonster.cpp \
TemporaryObject.cpp \
IObservable.cpp \
IObserver.cpp \
WorldStateObs.cpp
OBJ = $(SRC:.cpp=.o)
CXXFLAGS = -W -Wall -Wextra -Wpedantic -g -std=c++14
LIBS = -lsfml-system -lsfml-window -lsfml-graphics -lsfml-audio
NAME = lbg
all: $(NAME)
$(NAME): $(OBJ)
$(CXX) $(LIBS) $(CXXFLAGS) -o $(NAME) $(OBJ)
.PHONY: clean fclean re
clean:
rm -rf $(OBJ)
fclean: clean
rm -rf $(NAME)
re: clean all