From: panne Date: Thu, 20 Apr 2000 15:22:54 +0000 (+0000) Subject: [project @ 2000-04-20 15:22:54 by panne] X-Git-Tag: Approximately_9120_patches~4640 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=969bf5def3ed69d7ec196fde4fdf48d431fffa55 [project @ 2000-04-20 15:22:54 by panne] Improved rules for stubs. Not perfect yet, but better than before. --- diff --git a/mk/suffix.mk b/mk/suffix.mk index 79d6c7d..9e086ec 100644 --- a/mk/suffix.mk +++ b/mk/suffix.mk @@ -142,6 +142,10 @@ endif @$(RM) $@ $(FLEX) -t $(FLEX_OPTS) $< > $@ || ( $(RM) $@ && exit 1 ) +# stubs are automatically generated and compiled by GHC +%_stub.$(way_)o: %.o + @: + #----------------------------------------------------------------------------- # Yacc stuff diff --git a/mk/target.mk b/mk/target.mk index d5fa97e..7afcf51 100644 --- a/mk/target.mk +++ b/mk/target.mk @@ -437,7 +437,7 @@ all :: $(LIBRARY) define BUILD_LIB $(RM) $@ -$(AR) $(AR_OPTS) $@ $(LIBOBJS) +$(AR) $(AR_OPTS) $@ $(STUBOBJS) $(LIBOBJS) $(RANLIB) $@ endef @@ -455,7 +455,7 @@ SRC_HC_OPTS += -split-objs define BUILD_LIB $(RM) $@ -TMPDIR=$(TMPDIR); export TMPDIR; $(FIND) $(patsubst %.$(way_)o,%,$(LIBOBJS)) -name '*.$(way_)o' -print | xargs ar q $@ +TMPDIR=$(TMPDIR); export TMPDIR; ( echo $(STUBOBJS) ; $(FIND) $(patsubst %.$(way_)o,%,$(LIBOBJS)) -name '*.$(way_)o' -print ) | xargs ar q $@ $(RANLIB) $@ endef @@ -499,7 +499,7 @@ SRC_HC_POST_OPTS += \ endif endif -$(LIBRARY) :: $(LIBOBJS) +$(LIBRARY) :: $(STUBOBJS) $(LIBOBJS) $(BUILD_LIB) endif