-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
60 lines (43 loc) · 1.33 KB
/
Makefile
File metadata and controls
60 lines (43 loc) · 1.33 KB
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
APP = HelloT5Cube
OBJS = HelloT5Cube.o InlineShaderCode.o InlineVertexData.o main.o glad.o \
Application.o Transform.o \
Framebuffer.o Shader.o VertexArray.o \
Context.o Glasses.o
TARGET = $(APP)
CXX = g++
CXXFLAGS = -g -Wall -std=c++20
CXXFLAGS += -MMD -MP -MF .$$(basename $<).d
CXXFLAGS += -It5wrapper
CXXFLAGS += -Iglm
CXXFLAGS += -Iglad/OpenGL_4_6_Core/include
CXXFLAGS += -Iglwrapper
CXXFLAGS += -Iglapplication
CXXFLAGS += -Iutil
CXXFLAGS += -ITiltFive/include
LDFLAGS = -lGL -lGLU -lglut -lglfw -lX11 -lpthread -ldl -LTiltFive/lib/linux/x86_64/ -lTiltFiveNative
all: $(TARGET)
glad.o: glad/OpenGL_4_6_Core/src/gl.c
$(CXX) $(CXXFLAGS) -c $< -o $@
# glapplication
Application.o: glapplication/src/Application.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@
Transform.o: glapplication/src/Transform.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@
# glwrapper
Framebuffer.o: glwrapper/src/Framebuffer.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@
Shader.o: glwrapper/src/Shader.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@
VertexArray.o: glwrapper/src/VertexArray.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@
# t5wrapper
Context.o: t5wrapper/src/Context.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@
Glasses.o: t5wrapper/src/Glasses.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@
$(TARGET): $(OBJS)
$(CXX) $(CXXFLAGS) $(OBJS) -o $(TARGET) $(LDFLAGS)
clean:
rm -f $(OBJS) $(TARGET) .*.d
.%.d: ;
-include .*.d