-
Notifications
You must be signed in to change notification settings - Fork 20
/
Makefile
43 lines (39 loc) · 1.54 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
##############################################################
#
# DO NOT EDIT THIS FILE!
#
##############################################################
ifdef PIN_ROOT
CONFIG_ROOT := $(PIN_ROOT)/source/tools/Config
else
PIN_ROOT := ./pin
CONFIG_ROOT := $(PIN_ROOT)/source/tools/Config
endif
PIN_VERSION := $(shell head -1 $(PIN_ROOT)/README | tr -dc 0-9 | awk '{if ($$0 < 100) { print 10*$$0 } else { print $$0 }}')
ifeq ($(PIN_VERSION),)
$(error Cannot determine Pin version.)
else
$(info ## Using Pin v$(PIN_VERSION) from $(PIN_ROOT).)
$(info ## Loading defaults from $(CONFIG_ROOT)/makefile.config.)
include $(CONFIG_ROOT)/makefile.config
endif
ifneq ($(HOST_ARCH),ia32)
$(info ## Running on $(HOST_ARCH) host. Targetting to ia32.)
TARGET := ia32
$(info ## Reloading defaults from $(CONFIG_ROOT)/makefile.config.)
include $(CONFIG_ROOT)/makefile.config
endif
include Makefile.rules
ifeq ($(wildcard $(TOOLS_ROOT)/Config/makefile.default.rules),)
$(warning Cannot include makefile.default.rules. This is caused because Pin assumes our code is located under PIN_ROOT. Fix this by running:)
$(warning sed -i.bak 's/PIN_ROOT :=/PIN_ROOT ?=/' "$(CONFIG_ROOT)/makefile.unix.config")
$(error Aborting)
else
$(info ## Loading default rules for $(TOOLS_ROOT)/Config/makefile.default.rules.)
include $(TOOLS_ROOT)/Config/makefile.default.rules
endif
##############################################################
#
# DO NOT EDIT THIS FILE!
#
##############################################################