summaryrefslogtreecommitdiff
path: root/source4/Makefile
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-04-14 15:26:26 +0200
committerAndrew Bartlett <abartlet@samba.org>2008-04-14 15:26:26 +0200
commit5a73810e127b7d0af531e2bd0c0a4964878c866b (patch)
tree5e226147f50b1329545b1c1c58ad984637adfd71 /source4/Makefile
parenta96bba21fa99d7057f001bfc159930052d83d974 (diff)
parentf800cf250f079ab1e1bc1051c34d1d1061187447 (diff)
downloadsamba-5a73810e127b7d0af531e2bd0c0a4964878c866b.tar.gz
samba-5a73810e127b7d0af531e2bd0c0a4964878c866b.tar.bz2
samba-5a73810e127b7d0af531e2bd0c0a4964878c866b.zip
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
(This used to be commit 79854f0aa6a9899bb72d302cbca695b8b3a3b0dc)
Diffstat (limited to 'source4/Makefile')
-rw-r--r--source4/Makefile26
1 files changed, 24 insertions, 2 deletions
diff --git a/source4/Makefile b/source4/Makefile
index ab3ef47fed..8c74b4899d 100644
--- a/source4/Makefile
+++ b/source4/Makefile
@@ -19,6 +19,25 @@ BNLD_FLAGS = $(LDFLAGS) $(SYS_LDFLAGS)
HOSTCC_FLAGS = -D_SAMBA_HOSTCC_ $(CFLAGS)
HOSTLD_FLAGS = $(LDFLAGS) $(SYS_LDFLAGS)
+$(srcdir)/version.h: $(srcdir)/VERSION
+ @$(SHELL) script/mkversion.sh VERSION $(srcdir)/version.h $(srcdir)/
+
+.DEFAULT_GOAL := all
+
+ifneq ($(automatic_deps),yes)
+ALL_PREDEP = proto
+.NOTPARALLEL:
+endif
+
+regen_version::
+ @$(SHELL) script/mkversion.sh VERSION $(srcdir)/version.h $(srcdir)/
+
+clean_pch::
+ @echo "Removing precompiled headers"
+ @-rm -f include/includes.h.gch
+
+pch:: clean_pch include/includes.h.gch
+
.DEFAULT_GOAL := all
ifneq ($(automatic_dependencies),yes)
@@ -26,9 +45,12 @@ ALL_PREDEP = proto
.NOTPARALLEL:
endif
-include rules.mk
+include build/make/rules.mk
+include build/make/python.mk
include data.mk
+BINARIES += $(BIN_PROGS) $(SBIN_PROGS)
+
DEP_FILES = $(patsubst %.ho,%.hd,$(patsubst %.o,%.d,$(ALL_OBJS))) \
include/includes.d
@@ -55,7 +77,7 @@ endif
DEFAULT_HEADERS = $(srcdir)/lib/util/dlinklist.h \
$(srcdir)/version.h
-binaries::
+binaries:: $(BINARIES)
libraries:: $(STATIC_LIBS) $(SHARED_LIBS)
modules:: $(PLUGINS)
headers:: $(PUBLIC_HEADERS) $(DEFAULT_HEADERS)