X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fghc.mk;h=a17a47e5473350b37e87b1b391dd68b86aa0f224;hb=432b9c9322181a3644083e3c19b7e240d90659e7;hp=103c590652c88af3cf54816b8a606ecaf6287d5b;hpb=81e5f8ff44ed5c734c9966ba0f3faf2d84c74577;p=ghc-hetmet.git diff --git a/ghc/ghc.mk b/ghc/ghc.mk index 103c590..a17a47e 100644 --- a/ghc/ghc.mk +++ b/ghc/ghc.mk @@ -33,8 +33,9 @@ ghc_stage2_HC_OPTS += -threaded ghc_stage3_HC_OPTS += -threaded endif -# XXX ToDp -# ifeq "$(GhcProfiled)" "YES" +ifeq "$(GhcProfiled)" "YES" +ghc_stage2_HC_OPTS += -prof +endif ghc_stage1_MODULES = Main @@ -117,7 +118,7 @@ all_ghc_stage2 : $(GHC_STAGE2) all_ghc_stage3 : $(GHC_STAGE3) $(INPLACE_LIB)/extra-gcc-opts : extra-gcc-opts - $(CP) $< $@ + "$(CP)" $< $@ # The GHC programs need to depend on all the helper programs they might call ifeq "$(GhcUnregisterised)" "NO" @@ -137,7 +138,8 @@ $(GHC_STAGE3) : $(TOUCHY) $(INPLACE)/stamp-mingw $(INPLACE_LIB)/perl.exe endif ifeq "$(BootingFromHc)" "YES" -ghc_stage2_OTHER_OBJS += $(compiler_stage2_v_LIB) $(ALL_LIBS) $(ALL_LIBS) $(ALL_LIBS) $(ALL_RTS_LIBS) -lgmp $(libffi_STATIC_LIB) -lm -lutil -lrt +$(GHC_STAGE2) : $(ALL_STAGE1_LIBS) +ghc_stage2_OTHER_OBJS += $(compiler_stage2_v_LIB) $(ALL_STAGE1_LIBS) $(ALL_STAGE1_LIBS) $(ALL_STAGE1_LIBS) $(ALL_RTS_LIBS) $(libffi_STATIC_LIB) endif endif @@ -148,7 +150,7 @@ ifeq "$(Windows)" "NO" install: install_ghc_link .PNONY: install_ghc_link install_ghc_link: - $(RM) -f $(DESTDIR)$(bindir)/ghc + "$(RM)" $(RM_OPTS) $(DESTDIR)$(bindir)/ghc $(LN_S) ghc-$(ProjectVersion) $(DESTDIR)$(bindir)/ghc else # On Windows we install the main binary as $(bindir)/ghc.exe @@ -156,7 +158,7 @@ else install: install_ghc_post .PHONY: install_ghc_post install_ghc_post: install_bins - $(RM) -f $(DESTDIR)$(bindir)/ghc.exe - $(MV) -f $(DESTDIR)$(bindir)/ghc-stage$(INSTALL_GHC_STAGE).exe $(DESTDIR)$(bindir)/ghc.exe + "$(RM)" $(RM_OPTS) $(DESTDIR)$(bindir)/ghc.exe + "$(MV)" -f $(DESTDIR)$(bindir)/ghc-stage$(INSTALL_GHC_STAGE).exe $(DESTDIR)$(bindir)/ghc.exe endif