diff options
author | James H. Hill <hilljh82@gmail.com> | 2013-09-06 20:53:09 +0000 |
---|---|---|
committer | James H. Hill <hilljh82@gmail.com> | 2013-09-06 20:53:09 +0000 |
commit | d4f030867303556f589d1e5bb535b17e9c5f49ba (patch) | |
tree | 2ceec866f84f67b25393ec22b390ae47426f0522 /config/pin.mpb | |
parent | 5646e4a932b541c8747b96d1817af5d6be21625c (diff) | |
download | MPC-d4f030867303556f589d1e5bb535b17e9c5f49ba.tar.gz |
Fri Sep 6 20:51:59 UTC 2013 James H. Hill <hillj at cs dot iupui dot edu>
Diffstat (limited to 'config/pin.mpb')
-rw-r--r-- | config/pin.mpb | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/config/pin.mpb b/config/pin.mpb new file mode 100644 index 00000000..ed8a89c5 --- /dev/null +++ b/config/pin.mpb @@ -0,0 +1,71 @@ +// $Id$ + +project { + includes += $(PIN_ROOT)/source/include \ + $(PIN_ROOT)/source/include/pin \ + $(PIN_ROOT)/source/include/pin/gen \ + $(PIN_ROOT)/extras/components/include + + specific (prop:windows) { + macros += TARGET_WINDOWS BIGARRAY_MULTIPLIER=1 USING_XED _SECURE_SCL=0 + + compile_flags += /Oy + + linkflags += -Wl,--hash-style=sysv -Wl,-Bsymbolic -Wl,--version-script=$(PIN_ROOT)/source/include/pintool.ver + + runtime_library = 0 + DisableSpecificWarning += 4530 + IgnoreAllDefaultLibraries = true + } else { + macros += TARGET_LINUX + + compile_flags += -fomit-frame-pointer -fno-strict-aliasing + } + + verbatim (gnuace, top) { + // We have to disable hidden symbols since we are + // not manually exporting the main() function. + no_hidden_visibility = 1 + } + + verbatim (make, top) { + // We have to disable hidden symbols since we are + // not manually exporting the main() function. + no_hidden_visibility = 1 + } +} + +feature(ia32) { + includes += $(PIN_ROOT)/extras/xed2-ia32/include + + libpaths += $(PIN_ROOT)/ia32/lib \ + $(PIN_ROOT)/ia32/lib-ext \ + $(PIN_ROOT)/extras/xed2-ia32/lib + + specific (prop:windows) { + macros += TARGET_IA32 HOST_IA32 + + // DO NOT CHANGE ORDER + pure_libs += "ntdll-32.lib libxed.lib pin.lib pinvm.lib libcmt.lib libcpmt.lib" + + //libs += pin xed dwarf elf + + libpaths += $(PIN_ROOT)/ia32/lib \ + $(PIN_ROOT)/ia32/lib-ext + } +} + +feature(intel64) { + includes += $(PIN_ROOT)/extras/xed2-intel64/include + + libpaths += $(PIN_ROOT)/intel64/lib \ + $(PIN_ROOT)/intel64/lib-ext \ + $(PIN_ROOT)/extras/xed2-intel64/lib + + specific (prop:windows) { + macros += TARGET_IA32E HOST_IA32E + + // DO NOT CHANGE ORDER + pure_libs += "ntdll-64.lib libxed.lib pin.lib pinvm.lib libcmt.lib libcpmt.lib" + } +} |