port of netbsd's tr
[minix.git] / commands / ftpd200 / Makefile
blob249b5a166dc022c0c680d665056dae4a847a6eed
1 # Makefile for ftpd
3 # 01/25/96 Initial Release Michael Temari, <Michael@TemWare.Com>
4 # 2005-02-25 version 2.00
6 CFLAGS= -O -D_MINIX -D_POSIX_SOURCE -m
7 LDFLAGS=-i
8 BINDIR= /usr/bin
9 PROG= in.ftpd
10 MANDIR= /usr/man/man8
11 MANPAGE=ftpd.8
12 CC = exec cc
14 OBJS= ftpd.o access.o file.o net.o
16 all: $(PROG)
18 $(PROG): $(OBJS)
19 $(CC) $(LDFLAGS) -o $@ $(OBJS)
20 install -S 8kw $@
22 clean:
23 rm -f $(PROG) $(OBJS)
25 install: $(BINDIR)/$(PROG) $(BINDIR)/setup.anonftp $(BINDIR)/ftpdsh
27 $(BINDIR)/$(PROG): $(PROG)
28 install -cs -o bin $? $@
30 $(BINDIR)/setup.anonftp: setup.anonftp
31 install -c -o bin $? $@
33 $(BINDIR)/ftpdsh: ftpdsh
34 install -m 755 -c -o bin $? $@
36 ftpd.o: ftpd.c ftpd.h access.h file.h net.h
37 access.o: access.c ftpd.h access.h
38 file.o: file.c ftpd.h access.h file.h net.h
39 net.o: net.c ftpd.h net.h
41 installman: $(MANDIR)/$(MANPAGE)
42 cp $(MANPAGE) $(MANDIR)
43 echo "You may need to run makewhatis to update man page index"