Split C code in sconfig's parser into a separate file.
Update generated parser files. Add proper include path for utils. Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5523 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
@@ -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 $@ $<
|
||||
|
Reference in New Issue
Block a user