-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathMakefile
44 lines (32 loc) · 1.01 KB
/
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
44
QEMU_VERSION=2.10.0
BUILDDIR=$(shell pwd)/build
QEMUDIR=$(shell pwd)/Instrumentor
all: $(BUILDDIR) $(QEMUDIR)/.compiled Eclipser
x86: $(BUILDDIR) $(QEMUDIR)/.compiled_x86 Eclipser
x64: $(BUILDDIR) $(QEMUDIR)/.compiled_x64 Eclipser
clean:
rm -f $(QEMUDIR)/.prepared
rm -f $(QEMUDIR)/.compiled
rm -f $(QEMUDIR)/.compiled_x86
rm -f $(QEMUDIR)/.compiled_x64
rm -rf $(QEMUDIR)/qemu-${QEMU_VERSION}
rm -rf $(QEMUDIR)/qemu-${QEMU_VERSION}-*
rm -rf $(BUILDDIR)
$(BUILDDIR):
mkdir -p $(BUILDDIR)
$(QEMUDIR)/.prepared:
cd $(QEMUDIR) && ./prepare_qemu.sh
@touch $@
$(QEMUDIR)/.compiled: $(QEMUDIR)/.compiled_x86 $(QEMUDIR)/.compiled_x64
@touch $@
$(QEMUDIR)/.compiled_x86: $(QEMUDIR)/.prepared
cd $(QEMUDIR) && ./build_qemu_x86.sh
@touch $@
$(QEMUDIR)/.compiled_x64: $(QEMUDIR)/.prepared
cd $(QEMUDIR) && ./build_qemu_x64.sh
@touch $@
$(BUILDDIR)/libexec.dll: src/Core/libexec.c
gcc -O3 -shared -fPIC $< -o $@
Eclipser: $(BUILDDIR)/libexec.dll
dotnet build -c Release -o $(BUILDDIR)
.PHONY: all x86 x64 clean Eclipser