1 PREFIX
=/usr
/local
/samba
2 CONFIGOPTS
=--with-pam
--prefix=$(PREFIX
) --with-smbmount
8 (cd head
/source
; CFLAGS
="-Wall -O2 -g" .
/configure
$(CONFIGOPTS
))
9 (cd tng
; CFLAGS
="-Wall -O2 -g" .
/configure
$(CONFIGOPTS
) --enable-shared
=no
)
12 (cd head
/source
; make
)
15 (cd tng
; make bin
/samedit bin
/winbindd nsswitch
)
18 (cd head
/source
; make
clean)
22 (cd head
/source
; make proto
)
26 (cd head
/source
; make
clean; rm -f config.cache
; rm -f Makefile
)
27 (cd tng
; make
clean; rm -f config.cache
; rm -f Makefile
)
29 install: installhead installtng
31 installbin
: installheadbin installtng
34 (cd head
/source
; make
install)
37 (cd head
/source
; make installbin
)
41 rm -f
$(PREFIX
)/bin
/samedit
$(PREFIX
)/bin
/winbindd
; \
42 cp bin
/samedit bin
/winbindd
$(PREFIX
)/bin
; \
43 rm -f
/lib
/libnss_winbind.so
.2 /lib
/security
/pam_winbind.so
; \
44 cp nsswitch
/libnss_winbind.so
/lib
/libnss_winbind.so
.2; \
45 cp nsswitch
/pam_winbind.so
/lib
/security
/)
48 -killall winbindd smbd nmbd
53 $(PREFIX
)/bin
/winbindd
58 (cd head
; cvs
-z9 update
-d
)
61 (cd tng
; cvs
-z9 update
-d
)
63 update
: updatehead updatetng
67 (cd head
; cvs
-z9
co samba
; mv samba head
)
68 (cd head
; cvs
-z9
co -r SAMBA_TNG samba
/source
; mv source tng
)