Commit 9ebee70e authored by simonmar's avatar simonmar
Browse files

[project @ 2001-01-18 10:26:42 by simonmar]

fix multiple instances of objects on the link line
parent 85cacddc
......@@ -37,7 +37,9 @@ HSLIB = std
# we don't want PrelMain in the GHCi library.
GHCI_LIBOBJS = $(filter-out PrelMain.$(way_)o,$(HS_OBJS))
HS_SRCS += $(patsubst %.hsc,%.hs,$(wildcard *.hsc))
HSC_SRCS = $(wildcard *.hsc)
HSC_HS = $(patsubst %.hsc,%.hs, $(HSC_SRCS))
HS_SRCS := $(HSC_HS) $(filter-out $(HSC_HS),$(HS_SRCS))
# Setting the GHC compile options
......@@ -91,6 +93,11 @@ endif
CLEAN_FILES += PrelPrimopWrappers.hs PrelGHC.hi $(foreach way, $(WAYS), PrelGHC.$(way)_hi)
$(patsubst %.hsc, %.hs, $(HSC_SRCS)) \
$(patsubst %.hsc, %.hs.c, $(HSC_SRCS)) \
$(patsubst %.hsc, %.hs.h, $(HSC_SRCS))
# If we're building the unregisterised way, it may well be for Hugs.
# In that case, remember to bind the cbits objects into a single file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment