summaryrefslogtreecommitdiff
path: root/compiler/Makefile
diff options
context:
space:
mode:
authorClemens Fruhwirth <clemens@endorphin.org>2008-01-10 09:07:21 +0000
committerClemens Fruhwirth <clemens@endorphin.org>2008-01-10 09:07:21 +0000
commit7ea43827e739555c23f2b802a6a5eaf2a65570ae (patch)
treed5c445e217258d0d86ddf572ca3153476c868d79 /compiler/Makefile
parent7f54dbc07214ca44df167df22101e3a7957f5227 (diff)
downloadhaskell-7ea43827e739555c23f2b802a6a5eaf2a65570ae.tar.gz
Refactor cross-plattform process spawning from ghc-inplace into shell-tools.c
Diffstat (limited to 'compiler/Makefile')
-rw-r--r--compiler/Makefile5
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/Makefile b/compiler/Makefile
index 04c7778ba9..ceb47b06da 100644
--- a/compiler/Makefile
+++ b/compiler/Makefile
@@ -745,16 +745,13 @@ SRC_LD_OPTS += -no-link-chk
INPLACE_SRC = $(odir)/ghc-inplace.c
INPLACE_PROG = $(odir)/ghc-inplace$(_way)$(exeext)
+INPLACE_EXTRA_FLAGS = -I$(TOP)/includes
EXCLUDED_C_SRCS += ghc-inplace.c
CLEAN_FILES += $(INPLACE_SRC)
GHC_PATH=$(FPTOOLS_TOP_ABS)/$(GHC_COMPILER_DIR_REL)/$(GHC_PROG)$(exeext)
-ifeq "$(HOSTPLATFORM)" "i386-unknown-mingw32"
-INPLACE_EXTRA_FLAGS = -optc-DWINDOWS
-endif
-
$(INPLACE_PROG): ghc-inplace.c
$(SED) -e "s@GHC_PATH@$(GHC_PATH)@g" -e "s@TOP_ABS@$(FPTOOLS_TOP_ABS)@g" < $< > $(INPLACE_SRC)
$(HC) -cpp $(INPLACE_EXTRA_FLAGS) $(INPLACE_SRC) -o $@