-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (35 loc) · 1.09 KB
/
Makefile
File metadata and controls
50 lines (35 loc) · 1.09 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
# Libraries for Linux
EXE = lab
LIBS = -lGL -lpng -lGLEW -lglfw
# Libraries for MSYS2
ifeq "$(OS)" "Windows_NT"
EXE = lab.exe
LIBS = -lglfw3 -lglew32 -lopengl32 -lpng
endif
all: $(EXE)
$(EXE): main.o Application.o shader.o Table.o Mesh.o Object.o texture.o Program.o Computer.o Triangle.o
g++ -o $(EXE) main.o Application.o shader.o Table.o Mesh.o Object.o texture.o Program.o Computer.o Triangle.o $(LIBS)
main.o: main.cpp
g++ -o main.o -c main.cpp
Application.o: Application.cpp Application.h
g++ -o Application.o -c Application.cpp
shader.o: shader.cpp shader.h
g++ -o shader.o -c shader.cpp
Table.o: Table.cpp Table.h
g++ -o Table.o -c Table.cpp
Mesh.o: Mesh.cpp Mesh.h
g++ -o Mesh.o -c Mesh.cpp
Object.o: Object.cpp Object.h
g++ -o Object.o -c Object.cpp
Program.o: Program.cpp Program.h
g++ -o Program.o -c Program.cpp
Computer.o: Computer.cpp Computer.h
g++ -o Computer.o -c Computer.cpp
Triangle.o: Triangle.cpp Triangle.h
g++ -o Triangle.o -c Triangle.cpp
texture.o: texture.cpp texture.h
g++ -o texture.o -c texture.cpp
clean:
rm -rf *.o
mrproper: clean
rm -rf $(EXE)