# Slight cheatage here to pass host as target, but x-compilation isn't supported by ghc.
+ifeq "$(way)" ""
all :: gmp/libgmp.a
ifeq "$(DLLized)" "YES"
$(MAKE) -C gmp gmp.dll
$(MV) gmp/gmp.dll $(DLL_PEN)
endif
+endif
install :: gmp/libgmp.a
# ToDo: should we really include Rts.h here? Required for GNU_ATTRIBUTE().
SRC_HC_OPTS += \
+ -I. \
-\#include Prelude.h \
-\#include Rts.h \
-\#include RtsFlags.h \
-\#include Profiling.h \
-\#include Apply.h
+ifeq "$(Windows)" "YES"
+PrimOps_HC_OPTS += -\#include '<windows.h>' -\#include win32/AsyncIO.h
+endif
+
# Cmm must be compiled via-C for now, because the NCG can't handle loops
SRC_HC_OPTS += -fvia-C