1 ###########################################################################
2 # Makefile.in for Samba - rewritten for autoconf support
3 # Copyright Andrew Tridgell 1992-1998
4 ###########################################################################
7 exec_prefix=@
exec_prefix@
26 VARDIR
= @localstatedir@
28 # The permissions to give the executables
31 # set these to where to find various files
32 # These can be overridden by command line switches (see smbd(8))
33 # or in smb.conf (see smb.conf(5))
34 CONFIGFILE
= @configdir@
/smb.conf
35 LMHOSTSFILE
= @configdir@
/lmhosts
36 DRIVERFILE
= $(LIBDIR
)/printers.def
38 # The directory where code page definition files go
39 CODEPAGEDIR
= @codepagedir@
41 FLAGS1
= $(CFLAGS
) -Iinclude
-I
$(srcdir)/include $(CPPFLAGS
)
42 FLAGS2
= -DCONFIGFILE
=\"$(CONFIGFILE
)\" -DLMHOSTSFILE
=\"$(LMHOSTSFILE
)\"
43 FLAGS3
= -DCODEPAGEDIR
=\"$(CODEPAGEDIR
)\"
44 FLAGS4
= -DDRIVERFILE
=\"$(DRIVERFILE
)\"
45 FLAGS
= $(ISA
) $(FLAGS1
) $(FLAGS2
) $(FLAGS3
) $(FLAGS4
) -DHAVE_INCLUDES_H
47 ######################################################################
49 ######################################################################
78 ######################################################################
80 ######################################################################
82 all : CHECK libsamba.a
88 @echo
"Using FLAGS = $(FLAGS)"
90 MAKEDIR
= || exec false
; \
91 if
test -d
"$$dir"; then
:; else \
93 mkdir
-p
"$$dir" >/dev
/null
2>&1 || \
96 exec false
; fi || exec false
98 libsamba.a
: $(SAMBAFILES
)
99 $(AR
) cr libsamba.a
$(SAMBAFILES
)
102 @if
(: >> $@ ||
: > $@
) >/dev
/null
2>&1; then
rm -f
$@
; else \
103 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR
); fi
105 @
$(CC
) -I.
-I
$(srcdir) $(FLAGS
) -c
$< \
107 @BROKEN_CC@
-mv
`echo $@ | sed 's%^.*/%%g'` $@
110 etags
`find . -name "*.[ch]"`
113 ctags
`find . -name "*.[ch]"`
116 rm -f core
*/*~
*~
*/*.o config.log
123 rm -f
include/config.h
include/stamp-h Makefile
124 rm -f config.status config.cache so_locations
126 # this target is really just for my use. It only works on a limited
127 # range of machines and is used to produce a list of potentially
128 # dead (ie. unused) functions in the code. (tridge)
130 nm
*/*.o |grep
'U ' | awk
'{print $$2}' |
sort -u
> nmused.txt
131 nm
*/*.o |grep
'T ' | awk
'{print $$3}' |
sort -u
> nmfns.txt
132 comm
-13 nmused.txt nmfns.txt
134 # Rules for maintainers (--enable-maintainer-mode)
136 AUTOHEADER
=@AUTOHEADER@
138 # when configure.ac is updated, reconfigure
139 $(srcdir)/configure
: @MAINT@
$(srcdir)/configure.ac
$(srcdir)/aclocal.m4
140 cd
$(srcdir) && $(AUTOCONF
)
142 config.status
: $(srcdir)/configure
143 $(SHELL
) .
/config.status
--recheck
145 Makefile
: $(srcdir)/Makefile.in config.status \
146 include/stamp-h
# just to ensure that config.h is up-to-date
147 CONFIG_FILES
=$@ CONFIG_HEADERS
= $(SHELL
) .
/config.status
149 # note that nothing depends on config.h, so will probably be rebuilt
150 # only when explicitly requested, unless dependency tracking is enabled
151 include/config.h
: include/stamp-h
154 include/stamp-h
: $(srcdir)/include/config.h.in config.status
155 CONFIG_FILES
= CONFIG_HEADERS
=include/config.h
$(SHELL
) .
/config.status
156 @echo
> include/stamp-h
158 $(srcdir)/include/config.h.in
: $(srcdir)/include/stamp-h.in
161 $(srcdir)/include/stamp-h.in
: @MAINT@
$(srcdir)/configure.ac
162 cd
$(srcdir) && $(AUTOHEADER
)
165 # Added for compatibility with Automake-generated makefiles