-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
43 lines (29 loc) · 806 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
CMAKE_BUILD_TYPE ?= Release
all: gips
_build:
mkdir _build
_build/build.ninja:
cmake -G Ninja -DCMAKE_BUILD_TYPE=$(CMAKE_BUILD_TYPE) -S . -B _build
gips: _build/build.ninja src/*
ninja -C _build
gips_debug: _build/build.ninja src/*
ninja -C _build
cppcheck:
cppcheck --std=c99 --std=c++11 --enable=all src
debug:
$(MAKE) CMAKE_BUILD_TYPE=Debug gips_debug
release:
$(MAKE) CMAKE_BUILD_TYPE=Release gips
package: release
ninja -C _build gips docs package
test: gips
./gips
clean:
rm -rf _build *.ilk src/git_rev.c
distclean: clean
rm -f gips gips_debug gips.exe gips_debug.exe *.pdb
rm -f gips_ui.ini README.html ShaderFormat.html
ultraclean: distclean
rm -f vswhere.exe ninja.exe
rm -rf cmake-* pandoc-*
.PHONY: all clean distclean ultraclean cppcheck debug release package test