summaryrefslogtreecommitdiff
path: root/source3/Makefile.in
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-09-22 07:50:08 +0000
committerAndrew Tridgell <tridge@samba.org>2001-09-22 07:50:08 +0000
commitb192746e77ac610e5de7e0ee62c8c79a7dce9c40 (patch)
tree66779de4812fd24e5fccafc002975e3eaf66209d /source3/Makefile.in
parent0492effcf36bc1229d0d2e9250b6c6c36af0b117 (diff)
downloadsamba-b192746e77ac610e5de7e0ee62c8c79a7dce9c40.tar.gz
samba-b192746e77ac610e5de7e0ee62c8c79a7dce9c40.tar.bz2
samba-b192746e77ac610e5de7e0ee62c8c79a7dce9c40.zip
fixed the Makefile so we don't rebuild libsmbclient and build_env.h
(and thus smbd) every time (This used to be commit e78d0a3615d74cdd023d2d623abc27ac59356ae0)
Diffstat (limited to 'source3/Makefile.in')
-rw-r--r--source3/Makefile.in42
1 files changed, 19 insertions, 23 deletions
diff --git a/source3/Makefile.in b/source3/Makefile.in
index 6346a0c8e5..342105be76 100644
--- a/source3/Makefile.in
+++ b/source3/Makefile.in
@@ -58,9 +58,6 @@ SWATDIR = @swatdir@
# the directory where lock files go
LOCKDIR = @lockdir@
-# libsmbclient support here
-BLDSHARED = @BLDSHARED@
-
PASSWD_FLAGS = -DSMB_PASSWD_FILE=\"$(SMB_PASSWD_FILE)\" -DPRIVATE_DIR=\"$(PRIVATE_DIR)\"
FLAGS1 = $(CFLAGS) -Iinclude -I$(srcdir)/include -I$(srcdir)/ubiqx -I$(srcdir)/smbwrapper $(CPPFLAGS) -DLOGFILEBASE=\"$(LOGFILEBASE)\"
FLAGS2 = -DCONFIGFILE=\"$(CONFIGFILE)\" -DLMHOSTSFILE=\"$(LMHOSTSFILE)\"
@@ -484,7 +481,7 @@ bin/.dummy:
dir=bin $(MAKEDIR); fi
@: >> $@ || : > $@ # what a fancy emoticon!
-bin/smbd: build_env $(SMBD_OBJ) bin/.dummy
+bin/smbd: $(SMBD_OBJ) bin/.dummy
@echo Linking $@
@$(CC) $(FLAGS) -o $@ $(SMBD_OBJ) $(LDFLAGS) $(LIBS)
@@ -613,13 +610,15 @@ bin/smbwrapper.32.@SHLIBEXT@: $(PICOBJS32)
@echo Linking shared library $@
@$(LD) -32 @LDSHFLAGS@ -o $@ $(PICOBJS32) $(LIBS)
-libsmbclient: $(LIBSMBCLIENT_PICOBJS)
- @if [ $(BLDSHARED) = true ]; then \
- echo Linking libsmbclient shared library bin/$@.@SHLIBEXT@; \
- $(SHLD) @LDSHFLAGS@ -o bin/$@.@SHLIBEXT@ $(LIBSMBCLIENT_PICOBJS) $(LIBS); \
- fi
- @echo Linking libsmbclient non-shared library bin/$@.a
- -$(AR) -rc bin/$@.a $(LIBSMBCLIENT_PICOBJS)
+bin/libsmbclient.@SHLIBEXT@: $(LIBSMBCLIENT_PICOBJS)
+ echo Linking libsmbclient shared library $@
+ $(SHLD) @LDSHFLAGS@ -o $@ $(LIBSMBCLIENT_PICOBJS) $(LIBS)
+
+bin/libsmbclient.a: $(LIBSMBCLIENT_PICOBJS)
+ @echo Linking libsmbclient non-shared library $@
+ -$(AR) -rc $@ $(LIBSMBCLIENT_PICOBJS)
+
+libsmbclient: bin/libsmbclient.a @LIBSMBCLIENT_SHARED@
bin/smbsh: $(SMBSH_OBJ) bin/.dummy
@echo Linking $@
@@ -702,30 +701,27 @@ winbindd_proto:
-h _WINBINDD_PROTO_H_ nsswitch/winbindd_proto.h \
$(WINBINDD_OBJ1)
-delproto:
- @/bin/rm -f $(srcdir)/include/proto.h
+delheaders:
+ @/bin/rm -f $(srcdir)/include/proto.h $(srcdir)/include/build_env.h
-# we want proto.h to be rebuilt if it doesn't exist, but not rebuilt every time
-.proto.stamp: include/proto.h
+# we want our generated headers to be rebuilt if they don't exist, but not rebuilt every time
+.headers.stamp: include/proto.h include/build_env.h
@[ -f $@ ] || touch $@
-$(PROTO_OBJ) : .proto.stamp
+$(PROTO_OBJ) : .headers.stamp
include/proto.h:
@echo rebuilding include/proto.h
@cd $(srcdir) && $(AWK) -f script/mkproto.awk `echo $(PROTO_OBJ) | tr ' ' '\n' | sed -e 's/\.o/\.c/g' | sort -u | egrep -v 'ubiqx/|wrapped'` > include/proto.h
-proto: delproto include/proto.h
-
-delbuild_env:
- @/bin/rm -f include/build_env.h
-
include/build_env.h:
@echo rebuilding include/build_env.h
@cd $(srcdir) && $(SHELL) script/build_env.sh $(srcdir) $(builddir) $(CC) > include/build_env.h
-build_env: delbuild_env include/build_env.h
- @rm -f smbd/build_options.o
+headers: delheaders include/proto.h include/build_env.h
+
+proto: headers
+
etags:
etags `find $(srcdir) -name "*.[ch]" | grep -v /CVS/`