diff options
| author | tgrogers <Tim Rogers> | 2015-06-05 14:19:06 -0700 |
|---|---|---|
| committer | Ahmed ElTantawy <[email protected]> | 2016-05-12 14:20:26 -0700 |
| commit | 09310926dce32645556786edff790c6f8579b932 (patch) | |
| tree | d792e273f8f41c6bb7db3c11f9326a4319a952e9 /src/intersim2/Makefile | |
| parent | d3a28ecd166dbbb46804b1c73de139a0512b0d64 (diff) | |
Adding in changes to put generated code files in the build directory instead of the source directory - since this causes issues for parallel buildwq
Diffstat (limited to 'src/intersim2/Makefile')
| -rw-r--r-- | src/intersim2/Makefile | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/intersim2/Makefile b/src/intersim2/Makefile index fd9fba8..ef948d6 100644 --- a/src/intersim2/Makefile +++ b/src/intersim2/Makefile @@ -126,10 +126,10 @@ endif # rules to compile simulator -${LEX_OBJS}: lex.yy.c y.tab.h +${LEX_OBJS}: $(OBJDIR)/lex.yy.c $(OBJDIR)/y.tab.h $(CC) $(CPPFLAGS) -c $< -o $@ -${YACC_OBJS}: y.tab.c y.tab.h +${YACC_OBJS}: $(OBJDIR)/y.tab.c $(OBJDIR)/y.tab.h $(CC) $(CPPFLAGS) -c $< -o $@ ${OBJDIR}/%.o: %.cpp @@ -168,8 +168,8 @@ clean: rm -f y.tab.c y.tab.h lex.yy.c rm -f moc_bgui.cpp -y.tab.c y.tab.h: config.y - $(YACC) -d $< +$(OBJDIR)/y.tab.c $(OBJDIR)/y.tab.h: config.y + $(YACC) -d $< --file-prefix=$(OBJDIR)/y -lex.yy.c: config.l - $(LEX) $< +$(OBJDIR)/lex.yy.c: config.l + $(LEX) -o$@ $< |
