2007-10-13 Marco Ciampa <ciampix@libero.it>
[midnight-commander.git] / vfs / samba / Makefile.in
blob4ab950334292ba4c8ba9332950d2e7f3482195b4
1 ###########################################################################
2 # Makefile.in for Samba - rewritten for autoconf support
3 # Copyright Andrew Tridgell 1992-1998
4 ###########################################################################
6 prefix=@prefix@
7 exec_prefix=@exec_prefix@
8 mandir=@mandir@
10 CC=@CC@
11 CFLAGS=@CFLAGS@
12 CPPFLAGS=@CPPFLAGS@
13 LDFLAGS=@LDFLAGS@
14 AWK=@AWK@
15 AR=@AR@
17 INSTALLCMD=@INSTALL@
19 VPATH=@srcdir@
20 srcdir=@srcdir@
21 builddir=@builddir@
22 SHELL=@SHELL@
24 BASEDIR= @prefix@
25 LIBDIR = @libdir@
26 VARDIR = @localstatedir@
28 # The permissions to give the executables
29 INSTALLPERMS = 0755
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 ######################################################################
48 # object file lists
49 ######################################################################
51 SAMBAFILES= \
52 param/loadparm.o \
53 param/params.o \
54 lib/time.o \
55 lib/slprintf.o \
56 lib/util.o \
57 lib/debug.o \
58 lib/system.o \
59 lib/util_str.o \
60 lib/kanji.o \
61 lib/charcnv.o \
62 lib/charset.o \
63 lib/username.o \
64 lib/util_file.o \
65 lib/util_sock.o \
66 lib/md4.o \
67 lib/interface.o \
68 lib/netmask.o \
69 libsmb/clientgen.o \
70 libsmb/pwd_cache.o \
71 libsmb/smbencrypt.o \
72 libsmb/smbdes.o \
73 libsmb/nmblib.o \
74 libsmb/namequery.o\
75 libsmb/nterr.o \
76 libsmb/smberr.o
78 ######################################################################
79 # now the rules...
80 ######################################################################
82 all : CHECK libsamba.a
84 .SUFFIXES:
85 .SUFFIXES: .c .o
87 CHECK:
88 @echo "Using FLAGS = $(FLAGS)"
90 MAKEDIR = || exec false; \
91 if test -d "$$dir"; then :; else \
92 echo mkdir "$$dir"; \
93 mkdir -p "$$dir" >/dev/null 2>&1 || \
94 test -d "$$dir" || \
95 mkdir "$$dir" || \
96 exec false; fi || exec false
98 libsamba.a: $(SAMBAFILES)
99 $(AR) cr libsamba.a $(SAMBAFILES)
101 .c.o:
102 @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
103 dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
104 @echo Compiling $*.c
105 @$(CC) -I. -I$(srcdir) $(FLAGS) -c $< \
106 -o $@
107 @BROKEN_CC@ -mv `echo $@ | sed 's%^.*/%%g'` $@
109 etags:
110 etags `find . -name "*.[ch]"`
112 ctags:
113 ctags `find . -name "*.[ch]"`
115 mostlyclean:
116 rm -f core */*~ *~ */*.o config.log
118 clean: mostlyclean
119 rm -f *.a
121 distclean: clean
122 rm -f 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)
129 finddead:
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)
135 AUTOCONF=@AUTOCONF@
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)
163 @date -u > $@
165 # Added for compatibility with Automake-generated makefiles
166 distdir:
167 dvi:
168 check:
169 install:
170 installcheck:
171 uninstall: