projects
/
henge
/
webcc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixes, moved ir test driver to testir.c
[henge/webcc.git]
/
src
/
Makefile
diff --git
a/src/Makefile
b/src/Makefile
index
e811fb0
..
b5e6754
100644
(file)
--- a/
src/Makefile
+++ b/
src/Makefile
@@
-168,7
+168,7
@@
endef
define SRC_LANG_RULE =
$(if $($1),,$(eval $1 := t)\
$(eval MOD := $(filter $(MODULES),$(firstword $(subst /, ,$(dir $1)))))\
define SRC_LANG_RULE =
$(if $($1),,$(eval $1 := t)\
$(eval MOD := $(filter $(MODULES),$(firstword $(subst /, ,$(dir $1)))))\
-$(eval FLG := $(
$2_FLAGS) $(
MOD:%=-I% ))\
+$(eval FLG := $(MOD:%=-I% ))\
$(if $(wildcard $1),
$(eval DEPS := $(filter-out \ %:,$(shell $($2_C) $(FLG) -M -MG $1)))\
$(eval MDEPS := $(filter $(MODULES:%=%/%),$(DEPS)))\
$(if $(wildcard $1),
$(eval DEPS := $(filter-out \ %:,$(shell $($2_C) $(FLG) -M -MG $1)))\
$(eval MDEPS := $(filter $(MODULES:%=%/%),$(DEPS)))\