~vladh/peony

peony/make_linux.mk -rw-r--r-- 966 bytes
7fc9922bVlad-Stefan Harbuz changes shaders namespace into class a month ago
                                                                                
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
# Peony Game Engine
# Copyright (C) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>
# All rights reserved.

COMPILER_FLAGS = \
	-I/usr/include/glm/include \
	-I/usr/include/GLFW/include \
	-I/usr/include/assimp/include \
	-I/usr/include/freetype2 \
	-D_FORTIFY_SOURCE=2 -ggdb3 -Og -Wall -Werror -Wextra -pedantic \
	-std=c++2a \
	-Wno-deprecated-volatile -Wno-unused-function -Wno-unknown-pragmas -Wno-comment \
	-Wno-unused-parameter -Wno-sign-compare -Wno-missing-field-initializers \
	-Wno-unused-result -Wno-class-memaccess -Wno-unused-but-set-variable

LINKER_FLAGS = \
	-L/usr/lib/x86_64-linux-gnu \
	-lfreetype -lglfw -lassimp -lm -ldl -pthread

.PHONY: unity run

unity:
	@echo "################################################################################"
	@echo "### Building"
	@echo "################################################################################"
	time g++ $(COMPILER_FLAGS) src/_unity.cpp -o bin/peony $(LINKER_FLAGS)

run:
	@./bin/peony