diff options
author | Simon Marlow <simonmar@microsoft.com> | 2007-11-01 15:03:25 +0000 |
---|---|---|
committer | Simon Marlow <simonmar@microsoft.com> | 2007-11-01 15:03:25 +0000 |
commit | 5c6aded9bba7bdea0d301aba243d28f659e02327 (patch) | |
tree | b291433299147acf8c84d1c94b0cc4d213a2228a /rts/Makefile | |
parent | 1a4ff8d84caf442116e48557f3b8eee353455430 (diff) | |
download | haskell-5c6aded9bba7bdea0d301aba243d28f659e02327.tar.gz |
allow PAPI to be installed somewhere non-standard
Diffstat (limited to 'rts/Makefile')
-rw-r--r-- | rts/Makefile | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/rts/Makefile b/rts/Makefile index 9437253d77..7d12d0b77a 100644 --- a/rts/Makefile +++ b/rts/Makefile @@ -277,9 +277,23 @@ endif # Add PAPI library if needed ifeq "$(GhcRtsWithPapi)" "YES" + SRC_HC_OPTS += -optc-DUSE_PAPI PACKAGE_CPP_OPTS += -DUSE_PAPI + +PACKAGE_CPP_OPTS += -DPAPI_INCLUDE_DIR=$(PapiIncludeDir) +PACKAGE_CPP_OPTS += -DPAPI_LIB_DIR=$(PapiLibDir) + +ifneq "$(PapiIncludeDir)" "" +SRC_HC_OPTS += -I$(PapiIncludeDir) +SRC_CC_OPTS += -I$(PapiIncludeDir) +SRC_HSC2HS_OPTS += -I$(PapiIncludeDir) endif +ifneq "$(PapiLibDirs)" "" +SRC_LD_OPTS += -L$(PapiLibDirs) +endif + +endif # GhcRtsWithPapi==YES #----------------------------------------------------------------------------- # make depend setup |