forked from ValveSoftware/voglperf
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (22 loc) · 716 Bytes
/
Makefile
File metadata and controls
30 lines (22 loc) · 716 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
28
29
#
# Simple makefile which simply launches cmake in the appropriate directories and make.
#
# ; builds native version
# make
#
# ; builds 32 and 64-bit versions
# make voglperf32 voglperf64
#
UNAME := $(shell uname -i)
all: voglperfnative
voglperfnative:
@mkdir -p build_$(UNAME); cd build_$(UNAME); cmake -DCMAKE_BUILD_TYPE=Release ../src; make
voglperf64:
@mkdir -p build64; cd build64; cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_X64=True ../src; make
voglperf32:
@mkdir -p build32; cd build32; cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_X64=False ../src; make
clean:
@rm -rf build64
@rm -rf build32
@rm -rf bin/libvoglperf* bin/voglperfrun*
.PHONY: all voglperfnative voglperf32 voglperf64 clean