-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (32 loc) · 788 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
42
43
44
45
46
CC = g++
RM = rm -f
CFLAGS += -W -Wall -Wextra
CFLAGS += -I./
CPPFLAGS += -W -Wall -Wextra
CPPFLAGS += -I. -I./include -std=c++11 -g3
LDFLAGS = `pkg-config --static --libs glfw3` -lsfml-audio -lsfml-system
NAME = nano-swarm
SRCS_C = gl3w.c
SRCS_CPP = source/main.cpp \
source/my_opengl.cpp \
source/display.cpp \
source/fps_counter.cpp \
source/callback.cpp \
source/nanobot.cpp \
source/scrap.cpp \
source/logic.cpp \
source/main_loop.cpp \
source/render_context.cpp \
source/render_texture.cpp \
source/number_texture.cpp \
source/music.cpp \
OBJS = $(SRCS_C:.c=.o) $(SRCS_CPP:.cpp=.o)
all: $(NAME)
$(NAME):$(OBJS)
$(CC) $(OBJS) -o $(NAME) $(LDFLAGS)
clean:
$(RM) $(OBJS)
fclean: clean
$(RM) $(NAME)
re: fclean all
.PHONY: all clean fclean re