summaryrefslogtreecommitdiff
path: root/source4/Makefile.in
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-01-28 12:47:52 +0000
committerStefan Metzmacher <metze@samba.org>2004-01-28 12:47:52 +0000
commite06687eb174d5ca785a6c67fa63a99ea019182c4 (patch)
tree31820abce3978d9b1b6ea5120dbeb22dab7184d0 /source4/Makefile.in
parent2ffa2fe1654d3f3d7f0ba17d73c3f8db5710b38e (diff)
downloadsamba-e06687eb174d5ca785a6c67fa63a99ea019182c4.tar.gz
samba-e06687eb174d5ca785a6c67fa63a99ea019182c4.tar.bz2
samba-e06687eb174d5ca785a6c67fa63a99ea019182c4.zip
merge the version.h autogeneration stuff from 3.0
metze (This used to be commit 24dc237e109f6dce69814b22e0fb7878a7f6bfa8)
Diffstat (limited to 'source4/Makefile.in')
-rw-r--r--source4/Makefile.in19
1 files changed, 18 insertions, 1 deletions
diff --git a/source4/Makefile.in b/source4/Makefile.in
index 0b64218c20..4baa3f1078 100644
--- a/source4/Makefile.in
+++ b/source4/Makefile.in
@@ -99,7 +99,7 @@ MODULES = $(CHARSET_MODULES) $(DCERPC_MODULES) $(NTVFS_MODULES)
TDBBASE_OBJ = tdb/tdb.o tdb/spinlock.o
TDB_OBJ = $(TDBBASE_OBJ) tdb/tdbutil.o
-LIB_OBJ = lib/charcnv.o lib/debug.o lib/fault.o \
+LIB_OBJ = lib/version.o lib/charcnv.o lib/debug.o lib/fault.o \
lib/getsmbpass.o lib/interface.o lib/md4.o \
lib/interfaces.o lib/pidfile.o lib/replace.o \
lib/signal.o lib/system.o lib/sendfile.o lib/time.o \
@@ -377,6 +377,18 @@ dynconfig.po: dynconfig.c Makefile
@BROKEN_CC@ -mv `echo $@ | sed -e 's%^.*/%%g' -e 's%\.po$$%.o%'` $@
@POBAD_CC@ @mv $*.po.o $@
+lib/version.o: lib/version.c include/version.h
+ @echo Compiling $*.c
+ @$(CC) -I. -I$(srcdir) $(FLAGS) $(PATH_FLAGS) -c $< -o $@
+
+lib/version.po: lib/version.c include/version.h
+ @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
+ dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
+ @echo Compiling $*.c with @PICFLAG@
+ @$(CC) -I. -I$(srcdir) $(FLAGS) $(PATH_FLAGS) @PICFLAG@ -c $< -o $*.@PICSUFFIX@
+@BROKEN_CC@ -mv `echo $@ | sed -e 's%^.*/%%g' -e 's%\.po$$%.o%'` $@
+@POBAD_CC@ @mv $*.po.o $@
+
.c.po:
@if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
@@ -538,6 +550,11 @@ distclean: realclean
-rm -f config.status config.cache so_locations
-rm -rf .deps
+realdistclean: distclean
+ -rm -f include/config.h.in
+ -rm -f lib/version.h
+ -rm -f configure
+
# when configure.in is updated, reconfigure
$(srcdir)/configure: $(srcdir)/configure.in
@echo "WARNING: you need to rerun ./autogen.sh"