Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
Python_Pin/makefile.rules at master · blankwall/Python_Pin · GitHub
Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
blankwall
/
Python_Pin
Public
Notifications
You must be signed in to change notification settings
Fork
36
Star
159
Code
Issues
5
Pull requests
1
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Files
Expand file tree
master
Breadcrumbs
Python_Pin
/
makefile.rules
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
118 lines (91 loc) · 4.68 KB
master
Breadcrumbs
Python_Pin
/
makefile.rules
Copy path
Top
File metadata and controls
Code
Blame
118 lines (91 loc) · 4.68 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
##############################################################
#
# This file includes all the test targets as well as all the
# non-default build rules and test recipes.
#
##############################################################
##############################################################
#
# Test targets
#
##############################################################
###### Place all generic definitions here ######
# This defines tests which run tools of the same name. This is simply for convenience to avoid
# defining the test name twice (once in TOOL_ROOTS and again in TEST_ROOTS).
# Tests defined here should not be defined in TOOL_ROOTS and TEST_ROOTS.
TEST_TOOL_ROOTS := Python_Pin
# This defines the tests to be run that were not already defined in TEST_TOOL_ROOTS.
TEST_ROOTS :=
# This defines a list of tests that should run in the "short" sanity. Tests in this list must also
# appear either in the TEST_TOOL_ROOTS or the TEST_ROOTS list.
# If the entire directory should be tested in sanity, assign TEST_TOOL_ROOTS and TEST_ROOTS to the
# SANITY_SUBSET variable in the tests section below (see example in makefile.rules.tmpl).
SANITY_SUBSET :=
# This defines the tools which will be run during the the tests, and were not already defined in
# TEST_TOOL_ROOTS.
TOOL_ROOTS :=
# This defines the static analysis tools which will be run during the the tests. They should not
# be defined in TEST_TOOL_ROOTS. If a test with the same name exists, it should be defined in
# TEST_ROOTS.
# Note: Static analysis tools are in fact executables linked with the Pin Static Analysis Library.
# This library provides a subset of the Pin APIs which allows the tool to perform static analysis
# of an application or dll. Pin itself is not used when this tool runs.
SA_TOOL_ROOTS :=
# This defines all the applications that will be run during the tests.
APP_ROOTS :=
# This defines any additional object files that need to be compiled.
OBJECT_ROOTS :=
# This defines any additional dlls (shared objects), other than the pintools, that need to be compiled.
DLL_ROOTS :=
# This defines any static libraries (archives), that need to be built.
LIB_ROOTS :=
##############################################################
#
# Test recipes
#
##############################################################
# This section contains recipes for tests other than the default.
# See makefile.default.rules for the default test rules.
# All tests in this section should adhere to the naming convention: <testname>.test
##############################################################
#
# Build rules
#
##############################################################
###############
#
# SEPERATE COMPILATION INSTRUCTIONS
#
# Top one is the main pin tool each subsequent one is a dependency. The final call links them all together
# To add another dependecy copy the block and chang ethe name to reflect your files and append your file name and the
# h file to the linkers list You can verify everything worked by looking in the build directory and you should see your
# object file
#
###############3
CUSTOM_PYTHON_FLAGS := /opt/Python-2.7.8/libpython2.7.so.1.0 -L/opt/Python-2.7.8/build/ -L/opt/Python-2.7.8/ -L/opt/Python-2.7.8/build/lib.linux-x86_64-2.7 -fPIC -I/opt/Python-2.7.8/Include -rdynamic -I/opt/Python-2.7.8 -Xlinker -export-dynamic
REGULAR_PYTHON_FLAGS := -lpython2.7 -I/usr/include/python2.7 -rdynamic
ifeq ($(CUSTOM_PYTHON),true)
PYTHON_FLAGS := $(CUSTOM_PYTHON_FLAGS)
else
PYTHON_FLAGS := $(REGULAR_PYTHON_FLAGS)
endif
# Build the intermediate object file.
$(OBJDIR)Python_Pin$(OBJ_SUFFIX): Python_Pin.cpp
$(CXX) $(PYTHON_FLAGS) $(TOOL_CXXFLAGS) $(COMP_OBJ)$@ $<
# Build the intermediate object file.
$(OBJDIR)IMG$(OBJ_SUFFIX): IMG.cpp IMG.h
$(CC) $(PYTHON_FLAGS) $(TOOL_CXXFLAGS) $(COMP_OBJ)$@ $<
# Build the intermediate object file.
$(OBJDIR)RTN$(OBJ_SUFFIX): RTN.cpp RTN.h
$(CC) $(PYTHON_FLAGS) $(TOOL_CXXFLAGS) $(COMP_OBJ)$@ $<
$(OBJDIR)SYS$(OBJ_SUFFIX): SYS.cpp SYS.h
$(CC) $(PYTHON_FLAGS) $(TOOL_CXXFLAGS) $(COMP_OBJ)$@ $<
$(OBJDIR)TRACE$(OBJ_SUFFIX): TRACE.cpp TRACE.h
$(CC) $(PYTHON_FLAGS) $(TOOL_CXXFLAGS) $(COMP_OBJ)$@ $<
$(OBJDIR)INS$(OBJ_SUFFIX): INS.cpp INS.h
$(CC) $(PYTHON_FLAGS) $(TOOL_CXXFLAGS) $(COMP_OBJ)$@ $<
$(OBJDIR)REG$(OBJ_SUFFIX): REG.cpp REG.h
$(CC) $(PYTHON_FLAGS) $(TOOL_CXXFLAGS) $(COMP_OBJ)$@ $<
# Build the tool as a dll (shared object).
$(OBJDIR)Python_Pin$(PINTOOL_SUFFIX): $(OBJDIR)Python_Pin$(OBJ_SUFFIX) $(OBJDIR)IMG$(OBJ_SUFFIX) IMG.h $(OBJDIR)RTN$(OBJ_SUFFIX) RTN.h $(OBJDIR)SYS$(OBJ_SUFFIX) SYS.h $(OBJDIR)TRACE$(OBJ_SUFFIX) TRACE.h $(OBJDIR)INS$(OBJ_SUFFIX) INS.h $(OBJDIR)REG$(OBJ_SUFFIX) REG.h
$(LINKER) $(TOOL_LDFLAGS_NOOPT) $(LINK_EXE)$@ $(^:%.h=) $(TOOL_LPATHS) $(TOOL_LIBS) $(PYTHON_FLAGS)
You can’t perform that action at this time.