-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (29 loc) · 738 Bytes
/
Copy pathMakefile
File metadata and controls
40 lines (29 loc) · 738 Bytes
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
CXX = g++
CXXFLAGS = -Wall -Werror -Wextra -g -std=c++98 -pedantic-errors -framework OpenGL `sdl2-config --cflags --libs`
SOURCES = main.cpp \
Color.cpp \
Vertex.cpp \
Vector.cpp \
Iswi.cpp \
Isometry.cpp \
Matrix.cpp \
RotationMatrixX.cpp \
RotationMatrixY.cpp \
RotationMatrixZ.cpp \
Renderer.cpp \
Interval.cpp \
Fps.cpp \
Triangle.cpp \
Lexer.cpp
OBJECTS = $(SOURCES:.cpp=.o)
LIBPATH = /nfs/zfs-student-3/users/2013_paris/tdieumeg/.brew/Cellar/sdl2/2.0.3/include/SDL2/
NAME = mod1
all: $(NAME)
$(NAME): $(OBJECTS)
$(CXX) $(CXXFLAGS) $(OBJECTS) -o $(NAME) -I $(LIBPATH)
clean:
rm -f $(OBJECTS)
fclean: clean
rm -f $(NAME)
re: fclean all
.PHONY: re clean fclean all