summaryrefslogtreecommitdiff
path: root/mk/paths.mk
diff options
context:
space:
mode:
authorsof <unknown>2002-02-18 16:28:39 +0000
committersof <unknown>2002-02-18 16:28:39 +0000
commit0ef63546364c394f7482f391b072a6df48fe39cb (patch)
tree9eaa41e8e431f54ff1334544a970c545af0e4468 /mk/paths.mk
parent6682da21838666a8d94c174e48fc23df26001b69 (diff)
downloadhaskell-0ef63546364c394f7482f391b072a6df48fe39cb.tar.gz
[project @ 2002-02-18 16:28:39 by sof]
Filter out _stub.c gubbins from C_SRCS
Diffstat (limited to 'mk/paths.mk')
-rw-r--r--mk/paths.mk13
1 files changed, 11 insertions, 2 deletions
diff --git a/mk/paths.mk b/mk/paths.mk
index 49e34ff53d..fafb49b075 100644
--- a/mk/paths.mk
+++ b/mk/paths.mk
@@ -166,7 +166,10 @@ EXCLUDED_DERIVED_SRCS = $(patsubst %.hsc, %.hs, $(EXCLUDED_HSC_SRCS)) \
$(patsubst %.y, %.hs, $(EXCLUDED_HAPPY_Y_SRCS)) \
$(patsubst %.ly, %.hs, $(EXCLUDED_HAPPY_LY_SRCS)) \
$(patsubst %.hs, %.hc, $(EXCLUDED_HS_SRCS)) \
- $(patsubst %.lhs, %.hc, $(EXCLUDED_LHS_SRCS))
+ $(patsubst %.lhs, %.hc, $(EXCLUDED_LHS_SRCS)) \
+ $(patsubst %.hs, %_stub.c, $(EXCLUDED_HS_SRCS)) \
+ $(patsubst %.lhs, %_stub.c, $(EXCLUDED_LHS_SRCS))
+
# Exclude _hsc.c files; they get built as part of the cbits library,
# not part of the main library
@@ -181,7 +184,13 @@ HS_IFACES = $(addsuffix .$(way_)hi,$(basename $(HS_SRCS)))
HSC_C_OBJS = $(addsuffix _hsc.$(way_)o,$(basename $(filter %.hsc,$(SRCS))))
-C_SRCS = $(filter %.c,$(SRCS))
+
+# Always remove $(EXCLUDED_C_SRCS) from C_SRCS
+EXCLUDED_C_SRCS = $(patsubst %.lhs, %_stub.c, $(HS_SRCS)) \
+ $(patsubst %.hs, %_stub.c, $(HS_SRCS))
+
+
+C_SRCS = $(filter-out $(EXCLUDED_C_SRCS),$(filter %.c,$(SRCS)))
C_OBJS = $(addsuffix .$(way_)o,$(basename $(C_SRCS)))
# SCRIPT_SRCS: list of raw script files (in literate form)