-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (38 loc) · 1.55 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: ebednar <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2018/11/20 14:23:06 by twitting #+# #+# #
# Updated: 2020/03/15 23:03:11 by ebednar ### ########.fr #
# #
# **************************************************************************** #
NAME = particles
SRC = ./src/main.cpp \
./src/engine.cpp \
./src/render.cpp \
./src/shader.cpp \
./src/events.cpp \
./src/model.cpp \
./src/entity.cpp \
./src/scene.cpp \
./src/camera.cpp \
./src/skybox.cpp \
./src/particles.cpp
OBJECTS = $(SRC:.cpp=.o)
FLAGS = -std=c++11
INCLUDES = -I include -I GLFW/include
FRAMEWORKS = -framework OpenGL -framework Cocoa -framework IOKit -framework OpenCL
LIBGLFW = -L./GLFW/lib-macos -lglfw3
all: $(NAME)
$(NAME): $(OBJECTS)
g++ $(FLAGS) $(INCLUDES) $(OBJECTS) $(LIBGLFW) $(FRAMEWORKS) -o $(NAME)
%.o: %.cpp
g++ $(FLAGS) $(INCLUDES) -c $< -o $@
clean:
/bin/rm -f $(OBJECTS)
fclean: clean
/bin/rm -f $(NAME)
re: fclean all