r8995: Add heimdal headers back to "basics" target... should fix the build for now
[sfrench/samba-autobuild/.git] / source4 / main.mk
1 # master list of build config files for Samba4
2 include heimdal_build/config.mk
3 include config.mk
4 include dsdb/config.mk
5 include gtk/config.mk
6 include smbd/config.mk
7 include smbd/process_model.mk
8 include libnet/config.mk
9 include auth/config.mk
10 include nsswitch/config.mk
11 include lib/basic.mk
12 include lib/socket/config.mk
13 include lib/ldb/config.mk
14 include lib/talloc/config.mk
15 include lib/tdb/config.mk
16 include lib/tls/config.mk
17 include lib/registry/config.mk
18 include lib/messaging/config.mk
19 include lib/events/config.mk
20 include lib/popt/config.mk
21 include lib/cmdline/config.mk
22 include lib/socket_wrapper/config.mk
23 include lib/appweb/config.mk
24 include param/config.mk
25 include smb_server/config.mk
26 include rpc_server/config.mk
27 include ldap_server/config.mk
28 include web_server/config.mk
29 include winbind/config.mk
30 include nbt_server/config.mk
31 include cldap_server/config.mk
32 include auth/gensec/config.mk
33 include auth/kerberos/config.mk
34 include auth/ntlmssp/config.mk
35 include libcli/auth/config.mk
36 include libcli/ldap/config.mk
37 include libcli/config.mk
38 include utils/net/config.mk
39 include utils/config.mk
40 include ntvfs/posix/config.mk
41 include ntvfs/config.mk
42 include ntvfs/unixuid/config.mk
43 include ntptr/config.mk
44 include torture/config.mk
45 include librpc/config.mk
46 include client/config.mk
47 include libcli/config.mk
48 include libcli/security/config.mk
49 include lib/com/config.mk
50 include scripting/config.mk
51 include kdc/config.mk
52 include lib/replace/config.mk
53 include scripting/ejs/config.mk
54
55 all: basics binaries
56 binaries: $(BIN_PROGS) $(SBIN_PROGS)
57 manpages: $(MANPAGES)
58 everything: all
59
60 showlayout: 
61         @echo "Samba will be installed into:"
62         @echo "  basedir: $(BASEDIR)"
63         @echo "  bindir:  $(BINDIR)"
64         @echo "  sbindir: $(SBINDIR)"
65         @echo "  libdir:  $(LIBDIR)"
66         @echo "  vardir:  $(VARDIR)"
67         @echo "  privatedir:  $(PRIVATEDIR)"
68         @echo "  piddir:   $(PIDDIR)"
69         @echo "  lockdir:  $(LOCKDIR)"
70         @echo "  swatdir:  $(SWATDIR)"
71         @echo "  mandir:   $(MANDIR)"
72
73 showflags:
74         @echo "Samba will be compiled with flags:"
75         @echo "  CFLAGS = $(CFLAGS)"
76         @echo "  LD_FLAGS = $(LD_FLAGS)"
77         @echo "  STLD_FLAGS = $(STLD_FLAGS)"
78         @echo "  SHLD_FLAGS = $(SHLD_FLAGS)"
79
80 install: showlayout installbin installdat installswat
81
82 # DESTDIR is used here to prevent packagers wasting their time
83 # duplicating the Makefile. Remove it and you will have the privilege
84 # of packaging each samba release for multiple versions of multiple
85 # distributions and operating systems, or at least supplying patches
86 # to all the packaging files required for this, prior to committing
87 # the removal of DESTDIR. Do not remove it even though you think it
88 # is not used.
89
90 installdirs:
91         @$(SHELL) $(srcdir)/script/installdirs.sh $(DESTDIR)$(BASEDIR) $(DESTDIR)$(BINDIR) $(DESTDIR)$(SBINDIR) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(VARDIR) $(DESTDIR)$(PRIVATEDIR) $(DESTDIR)$(PIDDIR) $(DESTDIR)$(LOCKDIR) $(DESTDIR)$(PRIVATEDIR)/tls
92
93 installbin: binaries installdirs
94         @$(SHELL) $(srcdir)/script/installbin.sh $(INSTALLPERMS) $(DESTDIR)$(BASEDIR) $(DESTDIR)$(SBINDIR) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(VARDIR) $(SBIN_PROGS)
95         @$(SHELL) $(srcdir)/script/installbin.sh $(INSTALLPERMS) $(DESTDIR)$(BASEDIR) $(DESTDIR)$(BINDIR) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(VARDIR) $(BIN_PROGS)
96
97 installdat: installdirs
98         @$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR)$(LIBDIR) $(srcdir)
99
100 installswat: installdirs
101         @$(SHELL) $(srcdir)/script/installswat.sh $(DESTDIR)$(SWATDIR) $(srcdir) $(DESTDIR)$(LIBDIR)
102
103 installman: installdirs
104         @$(SHELL) $(srcdir)/script/installman.sh $(DESTDIR)$(MANDIR) $(MANPAGES)
105
106 uninstall: uninstallbin uninstallman
107
108 uninstallbin:
109         @$(SHELL) $(srcdir)/script/uninstallbin.sh $(INSTALLPERMS) $(DESTDIR)$(BASEDIR) $(DESTDIR)$(SBINDIR) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(VARDIR) $(DESTDIR)$(SBIN_PROGS)
110         @$(SHELL) $(srcdir)/script/uninstallbin.sh $(INSTALLPERMS) $(DESTDIR)$(BASEDIR) $(DESTDIR)$(BINDIR) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(VARDIR) $(DESTDIR)$(BIN_PROGS)
111
112 uninstallman:
113         @$(SHELL) $(srcdir)/script/uninstallman.sh $(DESTDIR)$(MANDIR) $(MANPAGES)
114
115
116 etags:
117         etags `find $(srcdir) -name "*.[ch]"`
118
119 ctags:
120         ctags `find $(srcdir) -name "*.[ch]"`
121
122 idl_full: build/pidl/Parse/Pidl/IDL.pm
123         @CPP="$(CPP)" PERL="$(PERL)" script/build_idl.sh FULL @PIDL_ARGS@
124
125 idl: build/pidl/Parse/Pidl/IDL.pm
126         @CPP="$(CPP)" PERL="$(PERL)" script/build_idl.sh PARTIAL @PIDL_ARGS@
127
128 build/pidl/Parse/Pidl/IDL.pm: build/pidl/idl.yp
129         -yapp -s -m 'Parse::Pidl::IDL' -o build/pidl/Parse/Pidl/IDL.pm build/pidl/idl.yp 
130
131 smb_interfaces: build/pidl/smb_interfaces.pm
132         $(PERL) -Ibuild/pidl script/build_smb_interfaces.pl \
133                 include/smb_interfaces.h
134
135 build/pidl/smb_interfaces.pm: build/pidl/smb_interfaces.yp
136         -yapp -s -m 'smb_interfaces' -o build/pidl/smb_interfaces.pm build/pidl/smb_interfaces.yp 
137
138 pch: proto include/includes.h.gch
139
140 pch_clean:
141         -rm -f include/includes.h.gch
142
143 basics: idl proto_exists heimdal/lib/hdb/hdb_asn1.h heimdal/lib/gssapi/spnego_asn1.h heimdal/lib/asn1/krb5_asn1.h heimdal/lib/roken/vis.h heimdal/lib/roken/err.h
144
145 test: $(DEFAULT_TEST_TARGET)
146
147 test-swrap: all
148         ./script/tests/selftest.sh ${selftest_prefix}/st all SOCKET_WRAPPER
149
150 test-noswrap: all
151         ./script/tests/selftest.sh ${selftest_prefix}/st all
152
153 quicktest: all
154         ./script/tests/selftest.sh ${selftest_prefix}/st quick SOCKET_WRAPPER
155
156 valgrindtest: all
157         SMBD_VALGRIND="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
158         ./script/tests/selftest.sh ${selftest_prefix}/st quick SOCKET_WRAPPER
159
160 .y.c:
161         $(YACC) -d -o $@ $<     
162
163 .l.c:
164         $(LEX) -o $@ $<