-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (26 loc) · 1.04 KB
/
Makefile
File metadata and controls
36 lines (26 loc) · 1.04 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
LIBS = -lm -lGL -lGLU -lglut -lBox2D -lconfig++ -lSOIL $(shell pkg-config --libs ftgl)
INCLUDES = $(shell pkg-config --cflags ftgl)
FLAGS = -Wall -std=c++11
all : build/app
clean :
rm -r build
run : build/app
cd build && ./app
build :
mkdir build
screenshots:
mkdir screenshots
build/main.o : main.cpp
$(CXX) -c main.cpp -o build/main.o $(INCLUDES)
build/configs.o : components/configs.cpp
$(CXX) -c components/configs.cpp -o build/configs.o
build/triangle.o : components/triangle.cpp
$(CXX) -c components/triangle.cpp -o build/triangle.o
build/circle.o : components/circle.cpp
$(CXX) -c components/circle.cpp -o build/circle.o
build/rectangle.o : components/rectangle.cpp
$(CXX) -c components/rectangle.cpp -o build/rectangle.o
build/textures.o : components/textures.cpp
$(CXX) -c components/textures.cpp -o build/textures.o
build/app : build screenshots build/main.o build/triangle.o build/circle.o build/rectangle.o build/configs.o build/textures.o
cd build && $(CXX) main.o triangle.o circle.o rectangle.o configs.o textures.o $(LIBS) -o app