lobase

Linux port of OpenBSDs userland.
Log | Files | Refs | README

commit bf6f00af6559cbd30509baa5d4bd72c07560835a
parent 8075444f49d822ddec4e2020b2b93a833ac63790
Author: Duncaen <mail@duncano.de>
Date:   Wed,  8 Mar 2017 23:51:33 +0100

mk: fix parallel yacc targets

Diffstat:
mk/bsd.lib.mk | 7+++++--
mk/bsd.prog.mk | 9+++++----
2 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/mk/bsd.lib.mk b/mk/bsd.lib.mk @@ -33,9 +33,12 @@ y.tab.h y.tab.c: $(YFILES) @echo $(YACC) -d $(^F) @$(YACC) -d $^ +$(YFILES:.y=.c): y.tab.c + @cp -f y.tab.c $@ + %.c: %.l - @echo "$(LEX) $(<F) > $(@F)" - @$(LEX) -t $< > $@ + @echo "$(LEX) -t $(LFLAGS) $(<F) > $(@F)" + @$(LEX) -t $(LFLAGS) $< > $@ %.o: %.c @echo $(CC) -c $(CFLAGS) $(<F) diff --git a/mk/bsd.prog.mk b/mk/bsd.prog.mk @@ -37,15 +37,16 @@ else $(PROG) : % : %.o endif -$(LFILES:.l=.o) : %.o : %.c - -y.tab.h y.tab.c: $(YFILES) +y.tab.c y.tab.h: $(YFILES) @echo $(YACC) -d $(^F) @$(YACC) -d $^ +$(YFILES:.y=.c): y.tab.c + @cp -f y.tab.c $@ + %.c: %.l @echo "$(LEX) -t $(LFLAGS) $(<F) > $(@F)" - $(LEX) -t $(LFLAGS) $< > $@ + @$(LEX) -t $(LFLAGS) $< > $@ %.o: %.c @echo $(CC) -c $(CFLAGS) $(<F)