Revision d2c392d4 tools/Rules.in

View differences:

tools/Rules.in
11 11
static-dir-paths := $(addprefix $(srcdir)/,$(static-dirs))
12 12
dynamic-dirs := lib conf
13 13
dynamic-dir-paths := $(dynamic-dirs)
14
birdc-dirs := client client/@CLIENT@
15
birdc-dir-paths := $(birdc-dirs)
16
birdcl-dirs := client client/birdcl
17
birdcl-dir-paths := $(birdcl-dirs)
14
client-dirs := client
15
client-dir-paths := $(client-dirs)
18 16
doc-dirs := doc
19 17
doc-dir-paths := $(doc-dirs)
20 18

  
21
all-dirs:=$(static-dirs) $(dynamic-dirs) $(birdc-dirs) $(doc-dirs)
19
all-dirs:=$(static-dirs) $(dynamic-dirs) $(client-dirs) $(doc-dirs)
22 20
clean-dirs:=$(all-dirs) proto sysdep
23 21

  
24 22
CPPFLAGS=-I$(root-rel) -I$(srcdir) @CPPFLAGS@
......
77 75
%.o: $(src-path)%.c
78 76
	$(CC) $(CFLAGS) -o $@ -c $<
79 77

  
78
ifndef source-dep
79
source-dep := $(source)
80
endif
81

  
80 82
depend:
81
	$(CC) $(CPPFLAGS) -MM $(addprefix $(src-path),$(source)) >depend
83
	$(CC) $(CPPFLAGS) -MM $(addprefix $(src-path),$(source-dep)) >depend
82 84

  
83 85
ifneq ($(wildcard depend),)
84 86
include depend

Also available in: Unified diff