diff options
author | Guy Harris <guy@alum.mit.edu> | 2020-03-02 16:25:30 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2020-03-02 16:25:30 -0800 |
commit | 5ef129cf43654c0a59be1deed9d164ca9ec2aaf5 (patch) | |
tree | 217bfc599740e10493e63d5293494fd679d73c96 /testprogs | |
parent | 3e9b08cc73e8fdf9386af2732f8e0bd465d010ce (diff) | |
download | libpcap-5ef129cf43654c0a59be1deed9d164ca9ec2aaf5.tar.gz |
Fix "make depend" for out-of-tree builds.
Have mkdep take a -s argument, giving the source directory, and have it
prepend that directory to all source files before running them through
the compiler's make-dependencies operation.
(There's more to fix, namely handling generated source files.)
Diffstat (limited to 'testprogs')
-rw-r--r-- | testprogs/Makefile.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testprogs/Makefile.in b/testprogs/Makefile.in index e099d465..3a81e760 100644 --- a/testprogs/Makefile.in +++ b/testprogs/Makefile.in @@ -142,4 +142,4 @@ tags: $(TAGFILES) ctags -wtd $(TAGFILES) depend: - $(MKDEP) -c "$(CC)" -m "$(DEPENDENCY_CFLAG)" $(CFLAGS) $(DEFS) $(INCLS) $(SRC) + $(MKDEP) -c "$(CC)" -m "$(DEPENDENCY_CFLAG)" -s "$(srcdir)" $(CFLAGS) $(DEFS) $(INCLS) $(SRC) |