diff options
| author | tayler-hetherington <[email protected]> | 2015-06-08 10:01:35 -0700 |
|---|---|---|
| committer | tayler-hetherington <[email protected]> | 2015-06-08 10:01:35 -0700 |
| commit | c6a19233a5cbf3ee2f89fbd54a0a2eb9375d4ca0 (patch) | |
| tree | e2971420f18807391288fa0f3b8dd1e3a7ca2c86 /src/intersim2/Makefile | |
| parent | f0b17d2b8c6fd895c4af9b907dc8505810d3dcb5 (diff) | |
| parent | 6a3f14861e13c2625108fdf5d35624ecc46439a9 (diff) | |
Merge pull request #13 from tgrogers/dev
Getting rid of all the intermediate files that get generated into the source directory
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$@ $< |
