Skip to content
Snippets Groups Projects
Commit 969bf5de authored by sven.panne@aedion.de's avatar sven.panne@aedion.de
Browse files

[project @ 2000-04-20 15:22:54 by panne]

Improved rules for stubs. Not perfect yet, but better than before.
parent 952a3281
No related merge requests found
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment