diff options
| author | tgrogers <[email protected]> | 2017-07-19 13:46:35 -0400 |
|---|---|---|
| committer | tgrogers <[email protected]> | 2017-07-19 13:46:35 -0400 |
| commit | e71aaaba5201e48790aa63df4dc2aa1de2fffda1 (patch) | |
| tree | f6c131b4e45e65cdbafe09fd1a9f27c6ea7d40a2 /src/intersim2/Makefile | |
| parent | db12eb64eba57cecd8d3cfc7ea1357c78b2d399d (diff) | |
Updaing the interconnect simulator to properly check for dependencies
Diffstat (limited to 'src/intersim2/Makefile')
| -rw-r--r-- | src/intersim2/Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/intersim2/Makefile b/src/intersim2/Makefile index ef948d6..bd42000 100644 --- a/src/intersim2/Makefile +++ b/src/intersim2/Makefile @@ -125,6 +125,14 @@ endif # rules to compile simulator +$(OBJDIR)/Makefile.makedepend: depend + +ALL_SRCS = $(CPP_SRCS) +ALL_SRCS += $(shell ls **/*.cpp) + +depend: + touch $(OBJDIR)/Makefile.makedepend + makedepend -f$(OBJDIR)/Makefile.makedepend -I$(INCPATH) -p$(OBJDIR)/ $(ALL_SRCS) 2> /dev/null ${LEX_OBJS}: $(OBJDIR)/lex.yy.c $(OBJDIR)/y.tab.h $(CC) $(CPPFLAGS) -c $< -o $@ @@ -173,3 +181,5 @@ $(OBJDIR)/y.tab.c $(OBJDIR)/y.tab.h: config.y $(OBJDIR)/lex.yy.c: config.l $(LEX) -o$@ $< + +include $(OBJDIR)/Makefile.makedepend |
