1 # Samba appliance Makefile
2 # use at your own risk!
4 PREFIX=/usr/local/samba
5 CONFIGOPTS=--with-pam --prefix=$(PREFIX)
11 (cd head/source; CFLAGS="-Wall -g" ./configure $(CONFIGOPTS))
12 (cd tng; CFLAGS="-Wall -g" ./configure $(CONFIGOPTS) --enable-shared=no)
15 (cd head/source; make)
18 (cd tng; make bin/samedit bin/winbindd nsswitch)
21 (cd head/source; make clean)
25 (cd head/source; make clean; rm -f config.cache; rm -f Makefile)
26 (cd tng; make clean; rm -f config.cache; rm -f Makefile)
28 install: installhead installtng
30 installbin: installheadbin installtng
33 (cd head/source; make install)
36 (cd head/source; make installbin)
40 rm -f $(PREFIX)/bin/samedit $(PREFIX)/bin/winbindd; \
41 cp bin/samedit bin/winbindd $(PREFIX)/bin; \
42 rm -f /lib/libnss_winbind.so.2 /lib/security/pam_winbind.so; \
43 cp nsswitch/libnss_winbind.so /lib/libnss_winbind.so.2; \
44 cp nsswitch/pam_winbind.so /lib/security/)
47 -killall winbindd smbd nmbd
52 $(PREFIX)/bin/winbindd
57 (cd head; cvs -z9 update -d)
60 (cd tng; cvs -z9 update -d)
62 update: updatehead updatetng
66 (cd head ; cvs -z9 co samba; mv samba head)
67 (cd head ; cvs -z9 co -r SAMBA_TNG samba/source; mv source tng)