diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2013-04-23 02:54:13 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2013-04-23 02:54:13 +0200 |
commit | 32622d0ea366406f3afa14bb9edb4855d6979786 (patch) | |
tree | 9ccfb9c0e165658e54f82da1d9de2c9bb3348f5a /tools/Rules.in | |
parent | efd6d12b975441c7e1875a59dd9e0f3db7e958cb (diff) | |
parent | a5e9f3d26f887deb451a3ea086e52266c117aa0a (diff) |
Merge branch 'birdcl'
Diffstat (limited to 'tools/Rules.in')
-rw-r--r-- | tools/Rules.in | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/Rules.in b/tools/Rules.in index fc06aeb1..ca930ec8 100644 --- a/tools/Rules.in +++ b/tools/Rules.in @@ -11,7 +11,7 @@ static-dirs := nest filter $(addprefix proto/,$(protocols)) static-dir-paths := $(addprefix $(srcdir)/,$(static-dirs)) dynamic-dirs := lib conf dynamic-dir-paths := $(dynamic-dirs) -client-dirs := @CLIENT@ +client-dirs := client client-dir-paths := $(client-dirs) doc-dirs := doc doc-dir-paths := $(doc-dirs) @@ -75,8 +75,12 @@ endif %.o: $(src-path)%.c $(CC) $(CFLAGS) -o $@ -c $< +ifndef source-dep +source-dep := $(source) +endif + depend: - $(CC) $(CPPFLAGS) -MM $(addprefix $(src-path),$(source)) >depend + $(CC) $(CPPFLAGS) -MM $(addprefix $(src-path),$(source-dep)) >depend ifneq ($(wildcard depend),) include depend |