~vladh/peony

peony/make_windows.mk -rw-r--r-- 986 bytes
9377cf56Vlad-Stefan Harbuz Add Linux build system 6 months 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
30
31
# Peony Game Engine
# Copyright (C) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>
# All rights reserved.

COMPILER_FLAGS = \
	-I "C:/local/include/"  \
	-FC -GS -MTd -MP18 -W4 -WL -WX -Z7 -Zo -diagnostics:column -fp:fast -nologo \
	-sdl -guard:cf -permissive- -std:c++latest \
	-GL -Oi -O2 \
	-wd4100 -wd4127 -wd4201 -wd4505 -wd4706 -wd4702 \
	-D_CRT_SECURE_NO_WARNINGS -DNOMINMAX

LINKER_FLAGS = \
	-LIBPATH:"C:/local/lib/" \
	/SUBSYSTEM:console \
	-CGTHREADS:8 -DEBUG:FULL -INCREMENTAL:NO -opt:ref \
	freetype.lib opengl32.lib glfw3.lib assimp-vc142-mtd.lib \
	user32.lib gdi32.lib shell32.lib

.PHONY: unity run

unity:
	@echo "################################################################################"
	@echo "### Building"
	@echo "################################################################################"
	ctime -begin bin/peony.ctm
	cl $(COMPILER_FLAGS) src/_unity.cpp -link $(LINKER_FLAGS) -out:bin/peony.exe
	ctime -end bin/peony.ctm %LastError%

run:
	@bin/peony.exe