X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=mk%2Ftarget.mk;h=403b4f157f000741a272dcd5a13995e39dca5b63;hb=3439fb2c5a4fd03177beb4061966ba91df88b8d4;hp=4d216fc1497b5a8741adefa558077aeefd546aa3;hpb=85778bb4118586f72286538bba5c87f9eca275ff;p=ghc-hetmet.git diff --git a/mk/target.mk b/mk/target.mk index 4d216fc..403b4f1 100644 --- a/mk/target.mk +++ b/mk/target.mk @@ -350,8 +350,12 @@ C_SRCS += $(wildcard ../*_hsc.c) SRC_CC_OPTS += -I.. -I. endif +ifneq "$(way)" "i" LIBRARY = libHS$(PACKAGE)$(_cbits)$(_way).a GHCI_LIBRARY = HS$(PACKAGE)$(_cbits)$(_way).o +else +LIBRARY = $(PACKAGE).dll +endif ifneq "$(IS_CBITS_LIB)" "YES" WAYS=$(GhcLibWays) @@ -389,11 +393,18 @@ endif # PACKAGE ifneq "$(LIBRARY)" "" all :: $(LIBRARY) +ifneq "$(way)" "i" define BUILD_LIB $(RM) $@ $(AR) $(AR_OPTS) $@ $(STUBOBJS) $(LIBOBJS) $(RANLIB) $@ endef +else +define BUILD_LIB +$(RM) $@ +al -out:$@ $(STUBOBJS) $(LIBOBJS) +endef +endif # # For Haskell object files, we might have chosen to split