diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-02-25 18:05:47 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-02-29 15:39:44 +0100 |
commit | 58a93ef94b878ff2d2d0029fc2d443551842e712 (patch) | |
tree | 34106caa30475874b8f6bce9e099d5341e779c8e /source/Makefile | |
parent | 46d8d02028869c97226648113d6bff1c06477d61 (diff) | |
download | samba-58a93ef94b878ff2d2d0029fc2d443551842e712.tar.gz |
Move automatic dependencies code out of perl code.
Diffstat (limited to 'source/Makefile')
-rw-r--r-- | source/Makefile | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/source/Makefile b/source/Makefile index 1fddfefce3b..97518ebcb69 100644 --- a/source/Makefile +++ b/source/Makefile @@ -19,11 +19,39 @@ BNLD_FLAGS = $(LDFLAGS) $(SYS_LDFLAGS) HOSTCC_FLAGS = -D_SAMBA_HOSTCC_ $(CFLAGS) HOSTLD_FLAGS = $(LDFLAGS) $(SYS_LDFLAGS) -default: all +.DEFAULT_GOAL := all + +ifneq ($(automatic_deps),yes) +ALL_PREDEP = proto +.NOTPARALLEL: +endif include rules.mk include data.mk +DEP_FILES = $(patsubst %.ho,%.hd,$(patsubst %.o,%.d,$(ALL_OBJS))) \ + include/includes.d + +ifeq ($(automatic_deps),yes) +ifneq ($(MAKECMDGOALS),clean) +ifneq ($(MAKECMDGOALS),distclean) +ifneq ($(MAKECMDGOALS),realdistclean) +ifneq ($(SKIP_DEP_FILES),yes) +-include $(DEP_FILES) +endif +endif +endif +endif + +ifneq ($(SKIP_DEP_FILES),yes) +clean:: + @echo Removing dependency files + @find . -name '*.d' -o -name '*.hd' | xargs rm -f +endif +else +include $(srcdir)/static_deps.mk +endif + DEFAULT_HEADERS = $(srcdir)/lib/util/dlinklist.h \ $(srcdir)/version.h |