forked from cesumilo/LoveBrains
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
68 lines (46 loc) · 1.27 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
##
## Makefile for LoveBrains in /home/robin_f/Programming/Git/CPP/LoveBrains
##
## Made by Guillaume ROBIN
## Login <[email protected]>
##
## Started on Wed Jul 22 09:52:28 2015 Guillaume ROBIN
## Last update Wed Aug 26 12:42:01 2015 Guillaume ROBIN
##
CC = g++ -g3
RM = rm -f
NAME = LoveBrains
CXXFLAGS += -Werror -Wall -Wextra -pthread -std=c++11
CXXFLAGS += -I ./include/
LDFLAGS = -lGANNEngine -L ./lib/GANNEngine/ -lsfml-graphics -lsfml-window -lsfml-system -ldl
SRCS += src/Graphics/factory_object.cc \
src/Graphics/physics.cc \
src/Graphics/environment.cc
SRCS += src/Simulator/simulator_exception.cc \
src/Simulator/simulator_config.cc \
src/Simulator/simulator.cc
SRCS += src/Plugin/plugin_manager.cc \
src/Plugin/plugin_exception.cc
SRCS += src/App/config_getter.cc \
src/App/config_manager.cc \
src/App/app.cc \
src/App/app_exception.cc
SRCS += src/main.cc
OBJS = $(SRCS:.cc=.o)
all: lib $(NAME)
lib:
make -C ./lib/GANNEngine/
clib:
make clean -C ./lib/GANNEngine/
flib:
make fclean -C ./lib/GANNEngine/
%.o: %.cc
$(CC) $(CXXFLAGS) -c $< -o $@
$(NAME): $(OBJS)
$(CC) $(CXXFLAGS) $(OBJS) -o $(NAME) $(LDFLAGS)
clean: clib
$(RM) $(OBJS)
fclean: flib clean
$(RM) $(NAME)
re: fclean all
.PHONY: all re clean fclean lib clib flib