-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (36 loc) · 847 Bytes
/
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
all: TunnelStrike
CXXFLAGS += \
-std=c++17 \
-O2 -g2
CPPFLAGS = \
-Igeometry \
`pkg-config --cflags sfml-system`
LIBS = \
`pkg-config --libs sfml-audio sfml-graphics sfml-system sfml-window`
OBJECTS = \
objs/Crosshair.o \
objs/main.o \
objs/Quad.o \
objs/Sfx.o \
objs/Shot.o \
objs/Shots.o \
objs/Target.o \
objs/Targets.o \
objs/Walls.o \
objs/World.o \
objs/geometry/camera3d.o \
objs/geometry/geometry.o \
objs/geometry/plane3d.o \
objs/geometry/segment3d.o \
objs/geometry/segmented.o \
objs/geometry/solid3d.o \
objs/geometry/vector3d.o \
objs/utils/looptimer.o \
objs/utils/parameters.o \
objs/utils/tools.o
TunnelStrike: $(OBJECTS)
$(CXX) $(CXXFLAGS) -o $@ $+ $(LIBS)
objs/%.o: src/%.cpp
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c -o $@ $+
clean:
$(RM) TunnelStrike $(OBJECTS)