-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (21 loc) · 783 Bytes
/
Copy pathMakefile
File metadata and controls
27 lines (21 loc) · 783 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
target = ge
src = $(wildcard src/Game/*.cpp) \
$(wildcard src/GameEngine/*cpp) \
$(wildcard src/Game/Scenes/Common/DebugView/*cpp) \
$(wildcard src/Game/Scenes/Game/*cpp) \
$(wildcard src/Game/Scenes/Test/*cpp) \
$(wildcard src/Game/Scenes/Intro/*cpp) \
$(wildcard src/lib/eventbus/src/eventbus/*.cpp) \
$(wildcard src/lib/imgui/*.cpp) \
$(wildcard src/lib/imgui-sfml/*.cpp)
obj = $(src:.cpp=.o)
version = $(shell git describe --tags --always --dirty)
PREFIX ?= /usr/local
CXX ?= clang++
LDFLAGS = -lsfml-audio -lsfml-graphics -lsfml-system -lsfml-window -framework OpenGL
CXXFLAGS += -g -Wall -std=c++17 -Isrc/lib -Isrc/GameEngine -Isrc/lib/eventbus/src/eventbus
$(target): $(obj)
$(CXX) -o $@ $^ $(LDFLAGS) $(CXXFLAGS)
.PHONY: clean
clean:
rm -rf $(obj) $(target)