X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=includes%2FMakefile;h=32ab5f8c49099435cb21267032edd23cd7ad0438;hb=26dc0aa6d3a06ee6b948a2827426407c7c8cda97;hp=e7292cd8a1001bff36c294399096a5e59793a114;hpb=fdf1cd0399158308769fcb2ab7e46e215a68d865;p=ghc-hetmet.git diff --git a/includes/Makefile b/includes/Makefile index e7292cd..32ab5f8 100644 --- a/includes/Makefile +++ b/includes/Makefile @@ -27,7 +27,14 @@ ifeq "$(GhcEnableTablesNextToCode) $(GhcUnregisterised)" "YES NO" SRC_CC_OPTS += -DTABLES_NEXT_TO_CODE endif -SRC_CC_OPTS += -I. -I../rts -I../gmp/gmpbuild +SRC_CC_OPTS += -I. -I../rts +ifeq "$(HaveLibGmp)" "YES" +ifneq "$(GMP_INCLUDE_DIRS)" "" +SRC_CC_OPTS += -I$(GMP_INCLUDE_DIRS) +endif +else +SRC_CC_OPTS += -I../gmp/gmpbuild +endif ifneq "$(GhcWithSMP)" "YES" SRC_CC_OPTS += -DNOSMP