maintainer mode

Tim Potter tpot at
Sun Nov 1 22:29:55 GMT 1998

> > [makefile per directory stuff]
> > I agree - you can't correctly express dependencies between directories
> > with one makefile per directory.  Not that the dependencies are correct at
> > the moment...
> Now that automatic dependency tracking is working, if you enable
> maintainer mode and have GNU make, they *are* correct :-)

acsys:~/work/samba/source$ touch include/smb.h
acsys:~/work/samba/source$ gmake
Using FLAGS = -g -O2 -Iinclude -I./include -I./ubiqx -I./smbwrapper
-DSWATDIR="/usr/local/samba/swat" -DSBINDIR="/usr/local/samba/bin"
-DBINDIR="/usr/local/samba/bin" -DHAVE_INCLUDES_H
Using LIBS = -lsocket -lnsl 
Linking bin/nmbd
Undefined                       first referenced
 symbol                             in file
proc_file_bmap                      lib/util.o
ld: fatal: Symbol referencing errors. No output written to bin/nmbd
gmake: *** [bin/nmbd] Error 1

Whoops!  I've broken nmbd for the moment, but don't worry about that.  If
I touch smb.h it doesn't recompile things that need ie (i.e everything).

> > Check out "Recursive Make Considered Harmful" by Peter Miller at
> > for a good
> > discussion on this.
> Ah!  Here's the paper!

Yup - I found it a real eye opener.  Should be required reading for all
UNIX developers.  


> -- 
> Alexandre Oliva
> mailto:oliva at mailto:oliva at mailto:aoliva at
> Universidade Estadual de Campinas, SP, Brasil

More information about the samba-technical mailing list