1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00
Andrew Tridgell 1c0cfff309 updated appliance Makefile
(This used to be commit bfa14cff8c0a1a7a18cb649dc33d5aabc9cd53ac)
2000-05-10 14:47:12 +00:00

68 lines
1.4 KiB
Makefile

# Samba appliance Makefile
# use at your own risk!
PREFIX=/usr/local/samba
CONFIGOPTS=--with-pam --prefix=$(PREFIX)
all: headb tngb
config:
(cd head/source; CFLAGS="-Wall -g" ./configure $(CONFIGOPTS))
(cd tng; CFLAGS="-Wall -g" ./configure $(CONFIGOPTS) --enable-shared=no)
headb:
(cd head/source; make)
tngb:
(cd tng; make bin/samedit bin/winbindd nsswitch)
clean:
(cd head/source; make clean)
(cd tng; make clean)
distclean:
(cd head/source; make clean; rm -f config.cache; rm -f Makefile)
(cd tng; make clean; rm -f config.cache; rm -f Makefile)
install: installhead installtng
installbin: installheadbin installtng
installhead:
(cd head/source; make install)
installheadbin:
(cd head/source; make installbin)
installtng: tngb
(cd tng; \
rm -f $(PREFIX)/bin/samedit $(PREFIX)/bin/winbindd; \
cp bin/samedit bin/winbindd $(PREFIX)/bin; \
rm -f /lib/libnss_winbind.so.2 /lib/security/pam_winbind.so; \
cp nsswitch/libnss_winbind.so /lib/libnss_winbind.so.2; \
cp nsswitch/pam_winbind.so /lib/security/)
stop:
-killall winbindd smbd nmbd
start:
$(PREFIX)/bin/smbd
$(PREFIX)/bin/nmbd
$(PREFIX)/bin/winbindd
restart: stop start
updatehead:
(cd head; cvs -z9 update -d)
updatetng:
(cd tng; cvs -z9 update -d)
update: updatehead updatetng
checkout:
-mkdir head tng
(cd head ; cvs -z9 co samba; mv samba head)
(cd head ; cvs -z9 co -r SAMBA_TNG samba/source; mv source tng)