summaryrefslogtreecommitdiff
path: root/include.mk
diff options
context:
space:
mode:
Diffstat (limited to 'include.mk')
-rw-r--r--include.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/include.mk b/include.mk
index 4c56615..551c9ca 100644
--- a/include.mk
+++ b/include.mk
@@ -85,13 +85,13 @@ clean-spl:
## project-specific objects
%.d: %.c Makefile
@set -e; rm -f $@; \
- $(CC) -MM $(CFLAGS) $< > $@.$$$$; \
+ $(CC) -MM $(CFLAGS) -E $< > $@.$$$$; \
sed 's,\($*\)\.rel[ :]*,\1.rel $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$; echo '(re)building $@'
lib-%.d: $(LIB_DIR)/%.c Makefile
@set -e; rm -f $@; \
- $(CC) -MM $(CFLAGS) $< > $@.$$$$; \
+ $(CC) -MM $(CFLAGS) -E $< > $@.$$$$; \
sed 's,\($*\)\.rel[ :]*,lib-\1.rel $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$; echo '(re)building $@'