-
Notifications
You must be signed in to change notification settings - Fork 63
/
Makefile
56 lines (37 loc) · 1.11 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
45
46
47
48
49
50
51
52
53
54
55
56
CC = cl
CFLAGS =
all: x86 x64 samples test
# How to build the libraries
#=======================================
x86: src/dui70_32.def util
LIB /DEF:src/dui70_32.def /OUT:lib/dui70_32.lib /MACHINE:x86 /NOLOGO
x64: src/dui70_64.def util
LIB /DEF:src/dui70_64.def /OUT:lib/dui70_64.lib /MACHINE:x64 /NOLOGO
# How to build the utilities
#=======================================
util: demangler
demangler: util/demangler.cpp
$(CC) util/demangler.cpp /Feutil/demangler.exe /Foutil/demangler.obj
# How to build the samples
#=======================================
samples: x86 x64
cd samples && $(MAKE) all && cd ..
# How to build the tests
#=======================================
test: x86 x64
cd test && $(MAKE) all && cd ..
# Cleaning up
#=======================================
clean: clean_lib clean_util clean_samples clean_test
clean_lib:
rm -f lib/dui70_32.lib
rm -f lib/dui70_32.exp
rm -f lib/dui70_64.lib
rm -f lib/dui70_64.exp
clean_util:
rm -f util/demangler.exe
rm -f util/demangler.obj
clean_samples:
cd samples && $(MAKE) clean && cd ..
clean_test:
cd test && $(MAKE) clean && cd ..