-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
56 lines (50 loc) · 1.17 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
AT = @
LOCKSMITH_MODULES = \
rmalias \
lockutil \
worklist \
dotpretty \
bansheemlifc \
falsecfl \
mycfl \
livevars \
locksettings \
uniqueness \
labelname \
labelflow \
controlflow \
lockprofile \
lockstate \
shared \
correlation \
semiunification \
locktype \
lockalloc \
# lockpick \
# locksmith \
# stmizer
LOCKSMITH_CMODULES = bansheeifc
CP4S += locksettings.p4
BANSHEE = $(PWD)/banshee
DYCKCFL_DIR = $(BANSHEE)/dyckcfl
ENGINE_DIR = $(BANSHEE)/engine
REGION_DIR = $(BANSHEE)/libcompat
LINKFLAGS = \
$(DYCKCFL_DIR)/dyckcfl.o $(DYCKCFL_DIR)/mr_dyckcfl.o \
$(REGION_DIR)/libregions.a \
$(ENGINE_DIR)/libnsengine.a
CAML_CFLAGS := -ccopt -I$(DYCKCFL_DIR) -ccopt -I$(REGION_DIR) -ccopt -I$(ENGINE_DIR)
export LOCKSMITH_MODULES
export LOCKSMITH_CMODULES
#export LINKFLAGS
export CAML_CFLAGS
export CP4S
all:
$(AT)$(MAKE) -C banshee NO_BANSHEE_ROLLBACK=1 NO_HASH_BOUNDS=1 all
$(AT)LINKFLAGS="$(LINKFLAGS)" $(MAKE) -C cil
profile:
$(AT)$(MAKE) -C banshee NO_BANSHEE_ROLLBACK=1 NO_HASH_BOUNDS=1 DEBUG=1 DEBUG_RALLOC=1 all
$(AT)LINKFLAGS="$(LINKFLAGS)" $(MAKE) -C cil PROFILE=1
clean:
$(AT)$(MAKE) -C banshee clean
$(AT)$(MAKE) -C cil clean