diff options
Diffstat (limited to 'util/sconfig/Makefile.inc')
-rw-r--r-- | util/sconfig/Makefile.inc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/util/sconfig/Makefile.inc b/util/sconfig/Makefile.inc index aa2ce7ad8e..a1ee64da88 100644 --- a/util/sconfig/Makefile.inc +++ b/util/sconfig/Makefile.inc @@ -1,10 +1,17 @@ sconfigobj := sconfigobj += lex.yy.o sconfigobj += sconfig.tab.o +sconfigobj += main.o + +SCONFIGFLAGS += -I$(top)/util/sconfig -I$(objutil)/sconfig $(objutil)/sconfig: mkdir -p $@ +$(objutil)/sconfig/%.o: util/sconfig/%.c + printf " HOSTCC $(subst $(obj)/,,$(@))\n" + $(HOSTCC) $(SCONFIGFLAGS) $(HOSTCFLAGS) -c -o $@ $< + $(objutil)/sconfig/%.o: $(objutil)/sconfig/%.c printf " HOSTCC $(subst $(obj)/,,$(@))\n" $(HOSTCC) $(SCONFIGFLAGS) $(HOSTCFLAGS) -c -o $@ $< |