X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FMakefile;h=1eebfd6c40282658bc8b2705a2132c388fbbe28a;hb=094f9feafaf83190891736ddd8d1d7213f4293c4;hp=6bf42712cb8230d7ca2fcc5a8ef3dd1acfd9eb22;hpb=ca5ded310c0a596be199a3da5f14be2fb2020687;p=ghc-hetmet.git diff --git a/rts/Makefile b/rts/Makefile index 6bf4271..1eebfd6 100644 --- a/rts/Makefile +++ b/rts/Makefile @@ -35,7 +35,7 @@ WAYS=$(GhcLibWays) $(GhcRTSWays) ifneq "$(findstring debug, $(way))" "" GhcRtsHcOpts= -GhcRtsCcOpts=-g +GhcRtsCcOpts=-g -O0 endif # ----------------------------------------------------------------------------- @@ -383,17 +383,33 @@ ifneq "$(BootingFromHc)" "YES" $(HC) $(HC_OPTS) -S $< -o $@ endif +include $(TOP)/mk/package.mk + #----------------------------------------------------------------------------- # # Files to install # # Just libHSrts is installed uniformly across ways # -INSTALL_LIBS += $(LIBRARY) ifeq "$(DLLized)" "YES" -INSTALL_PROGS += $(DLL_NAME) gmp/gmp.dll -INSTALL_LIBS += $(patsubst %.a,%_imp.a,$(LIBARY)) +INSTALL_PROGS += gmp/gmp.dll INSTALL_LIBS += gmp/libgmp_imp.a Main.dll_o endif +#----------------------------------------------------------------------------- +# +# binary-dist + +binary-dist: + $(INSTALL_DIR) $(BIN_DIST_DIR)/rts + $(INSTALL_DIR) $(BIN_DIST_DIR)/rts/gmp + $(INSTALL_DATA) Makefile $(BIN_DIST_DIR)/rts/ + $(INSTALL_DATA) package.conf.in $(BIN_DIST_DIR)/rts/ +ifneq "$(INSTALL_LIBS)" "" + $(INSTALL_DATA) $(INSTALL_LIBS) $(BIN_DIST_DIR)/rts/ +endif +ifneq "$(INSTALL_LIBEXECS)" "" + $(INSTALL_PROGRAM) $(INSTALL_LIBEXECS) $(BIN_DIST_DIR)/rts/ +endif + include $(TOP)/mk/target.mk