Makefile
上传用户:lukesailor
上传日期:2007-01-04
资源大小:27k
文件大小:1k
- # $Id: Makefile,v 1.15 1999/01/02 07:20:14 agulbra Exp $
- CC = gcc
- CFLAGS = -O2 # -DUSE_SHADOW # -g -W -Wall
- VERSION = 1.23
- BINDIR = /usr/local/sbin
- MANDIR = /usr/local/man/man8
- all: mkusers ftpd mrtginfo
- ls.o ftpd.o mrtginfo.h daemons.o: ftpd.h Makefile
- ftpd: ftpd.o ls.o daemons.o
- @echo If you use glibc, uncomment the -lcrypt in Makefile
- $(CC) $(CFLAGS) -o ftpd ftpd.o ls.o daemons.o # -lcrypt
- mkusers: mkusers.c
- $(CC) $(CFLAGS) -o mkusers mkusers.c
- mrtginfo: mrtginfo.c daemons.o
- $(CC) $(CFLAGS) -o mrtginfo mrtginfo.c daemons.o
- install: ftpd mkusers
- -mkdir /var/adm/ftp
- chown root.root /var/adm/ftp
- chmod 755 /var/adm/ftp
- ./mkusers
- cp mkusers ftpd $(BINDIR)
- cp ftpd.8 $(MANDIR)
- @echo Please insert $(BINDIR)/ftpd into /etc/inetd.conf
- @echo
- @echo Please run $(BINDIR)/mkusers as root every night using cron
- @echo
- @echo If you want to interface troll-ftpd to mrtg, you must
- @echo '"make mrtginfo"' and run it from mrtg.cfg
- clean:
- -rm -f ftpd mkusers mrtginfo *.o core *~ #*#
- dist:
- -rm -f troll-ftpd-$(VERSION).tar.gz troll-ftpd-$(VERSION).tar
- -rm -rf troll-ftpd-$(VERSION)
- mkdir troll-ftpd-$(VERSION)
- cp README COPYING ftpd.c ftpd.h ls.c daemons.c ftpd.8
- mrtginfo.c mrtginfo.8
- mkusers.c mkusers.8
- fakesnprintf.h Makefile
- troll-ftpd-$(VERSION)
- chmod 644 troll-ftpd-$(VERSION)/*
- tar cf troll-ftpd-$(VERSION).tar ./troll-ftpd-$(VERSION)
- gzip -9 troll-ftpd-$(VERSION).tar
- rm -rf troll-ftpd-$(VERSION)