summaryrefslogtreecommitdiff
path: root/src/intersim2/Makefile
diff options
context:
space:
mode:
authortgrogers <Tim Rogers>2015-06-05 14:19:06 -0700
committertgrogers <Tim Rogers>2015-06-05 14:19:06 -0700
commitaafc8c5817a5c6bc1eba432c0ef84491aef5d2f8 (patch)
tree2f3d881ba8e3cdbc015c6003d15e39d7aed1bd9b /src/intersim2/Makefile
parent3ab52d670fbe4fc79eeba1c9a0061dba69fad3b5 (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/Makefile12
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$@ $<