diff options
author | rrt <unknown> | 2001-08-17 11:20:00 +0000 |
---|---|---|
committer | rrt <unknown> | 2001-08-17 11:20:00 +0000 |
commit | 3439fb2c5a4fd03177beb4061966ba91df88b8d4 (patch) | |
tree | e515cbce13b50db31850491e61ef14b91a8555e5 /mk | |
parent | 85778bb4118586f72286538bba5c87f9eca275ff (diff) | |
download | haskell-3439fb2c5a4fd03177beb4061966ba91df88b8d4.tar.gz |
[project @ 2001-08-17 11:20:00 by rrt]
Add rules for way "i" for maing libraries, so that a DLL rather than a .a
gets built, and with al rather than ld.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/target.mk | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mk/target.mk b/mk/target.mk index 4d216fc149..403b4f157f 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 |