forked from jwhitham/x86determiniser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
67 lines (54 loc) · 1.73 KB
/
Copy pathMakefile
File metadata and controls
67 lines (54 loc) · 1.73 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
VERSION=2.1
all:
@echo 'x86determiniser version '$(VERSION)
@echo 'Use an appropriate make target for your platform:'
@echo ' "make linux" - Linux, 32-bit and 64-bit'
@echo ' "make linux32" - Linux, 32-bit only'
@echo ' "make linux64" - Linux, 64-bit only'
@echo ' "make win" - Windows, 32-bit and 64-bit'
@echo ' "make win32" - Windows, 32-bit only'
@echo ' "make win64" - Windows, 64-bit only'
clean:
-make -C src PLATFORM=win32 clean
-make -C tests PLATFORM=win32 clean
-rm -rf bin
deepclean:
git clean -f -d -x
win:
make win32 win64
linux:
make linux32 linux64
win32:
make -C src PLATFORM=win32 VERSION=$(VERSION) all
make -C tests PLATFORM=win32 most
linux32:
make -C src PLATFORM=linux32 VERSION=$(VERSION) all
make -C tests PLATFORM=linux32 most
win64:
make -C src PLATFORM=win64 VERSION=$(VERSION) all
make -C tests PLATFORM=win64 most
linux64:
make -C src PLATFORM=linux64 VERSION=$(VERSION) all
make -C tests PLATFORM=linux64 most
win.test:
make deepclean
make win32 win64
cd ..; zip -9r x86determiniser/x86determiniser-windows-$(VERSION).zip \
x86determiniser/bin/*determiniser.exe \
x86determiniser/doc/ \
x86determiniser/README.md \
x86determiniser/LICENSE
make -C tests PLATFORM=win32 all
make -C tests PLATFORM=win64 all
linux.test:
make deepclean
cd ..; tar cvzf x86determiniser/v$(VERSION).tar.gz \
x86determiniser/*
make linux32 linux64
cd ..; tar cvzf x86determiniser/x86determiniser-linux-$(VERSION).tar.gz \
x86determiniser/bin/*determiniser \
x86determiniser/doc/ \
x86determiniser/README.md \
x86determiniser/LICENSE
make -C tests PLATFORM=linux32 all
make -C tests PLATFORM=linux64 all