1 PrelAll_SRC=Array.lhs Maybe.lhs PrelDynamic.lhs PrelIOBase.lhs PrelShow.lhs \
2 CPUTime.lhs Monad.lhs PrelEnum.lhs PrelList.lhs PrelStable.lhs \
3 Char.lhs Numeric.lhs PrelErr.lhs PrelTup.lhs \
4 Complex.lhs PrelAddr.lhs PrelException.lhs PrelMaybe.lhs PrelWeak.lhs \
5 Directory.lhs PrelArr.lhs PrelFloat.lhs PrelNum.lhs Prelude.lhs \
6 IO.lhs PrelArrExtra.lhs PrelForeign.lhs PrelPack.lhs Random.lhs \
7 Ix.lhs PrelBase.lhs PrelHandle.lhs PrelRead.lhs Ratio.lhs \
8 List.lhs PrelByteArr.lhs PrelHugs.lhs PrelReal.lhs System.lhs \
9 Locale.lhs PrelConc.lhs PrelIO.lhs PrelST.lhs Time.lhs
11 PrelAll_ILX=$(patsubst %.lhs,%.ilx,$(PrelAll_SRC))
12 CLEAN_FILES += $(PrelAll_ILX)
13 PrelAll_ILX_FWD=$(patsubst %.lhs,%.ilx.fwd.ok,$(PrelAll_SRC))
14 PrelAll_IL=$(patsubst %.lhs,%.il,$(PrelAll_SRC)) PrelGHC.il
15 PrelAll_MOD=$(patsubst %.il,%.mod,$(PrelAll_IL))
18 %.ilx %.ilx.fwd: %.lhs
20 $(HC) $(HC_OPTS) -Onot -D__ILX__ --ilx $*.lhs -o $*.ilx
26 ifeq ($(HOSTNAME),msrc-hilda)
27 CORRUN=cmd /c "devvs && "
31 ILXASM=/devel/fcom/src/bin/ilxasmx.exe -l /devel/fcom/src/ilxasm --no-ilasm --box-everything
35 %.ilx.fwd.ok: %.ilx.fwd
36 if diff -q $< $@; then true; else cp $< $@; fi
39 $(ILASM) /QUIET /DLL /OUT=$@ $<
41 PrelGHC.il: ../../compiler/ilxGen/PrelGHC.il
44 PrelAll.dll : ilxasm-stdlib.mod $(PrelAll_MOD)
45 $(AL) ilxasm-stdlib.mod $(PrelAll_MOD) -out:$@
47 %.ilx_with_fwd: %.ilx $(PrelAll_ILX_FWD)
48 cat $(PrelAll_ILX_FWD) $*.ilx > $@
50 %.il : %.ilx_with_fwd /devel/fcom/src/bin/ilxasmx.exe
51 $(ILXASM) --no-stdlib -o $@ $*.ilx_with_fwd
53 ilxasm-stdlib.il : /devel/fcom/src/bin/ilxasmx.exe /devel/fcom/src/ilxasm/stdlib-func-by-mcalli.ilx
56 $(ILXASM) -o $@ tmp.ilx
61 # For validation only:
63 PrelAll.il: $(PrelAll_IL) ilxasm-stdlib.il
64 cat ilxasm-stdlib.il $(PrelAll_IL) > $@
67 make -C ../../compiler/ilxGen/tests ilvalidx
68 ILVALID_HOME=/devel/fcom/src /devel/fcom/src/bin/ilvalidx.exe $*.il
72 make -C ../../compiler/ilxGen/tests ilxasmx
75 $(MAKE) -C /devel/fcom/src bin/ilvalidx.exe
79 make -C ../../compiler/ilxGen/tests ghc
82 .PRECIOUS: %.ilx.fwd %.ilx.fwd.ok %.il %.ilx_with_fwd