-
Notifications
You must be signed in to change notification settings - Fork 1
/
make_windows.mk
29 lines (24 loc) · 933 Bytes
/
make_windows.mk
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
# (c) 2020 Vlad-Stefan Harbuz <[email protected]>
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