Line | |
---|
1 | # Makefile for ftpd
|
---|
2 | #
|
---|
3 | # 01/25/96 Initial Release Michael Temari, <Michael@TemWare.Com>
|
---|
4 | # 2005-02-25 version 2.00
|
---|
5 |
|
---|
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
|
---|
13 |
|
---|
14 | OBJS= ftpd.o access.o file.o net.o
|
---|
15 |
|
---|
16 | all: $(PROG)
|
---|
17 |
|
---|
18 | $(PROG): $(OBJS)
|
---|
19 | $(CC) $(LDFLAGS) -o $@ $(OBJS)
|
---|
20 | install -S 8kw $@
|
---|
21 |
|
---|
22 | clean:
|
---|
23 | rm -f $(PROG) $(OBJS)
|
---|
24 |
|
---|
25 | install: $(BINDIR)/$(PROG) $(BINDIR)/setup.anonftp $(BINDIR)/ftpdsh
|
---|
26 |
|
---|
27 | $(BINDIR)/$(PROG): $(PROG)
|
---|
28 | install -cs -o bin $? $@
|
---|
29 |
|
---|
30 | $(BINDIR)/setup.anonftp: setup.anonftp
|
---|
31 | install -c -o bin $? $@
|
---|
32 |
|
---|
33 | $(BINDIR)/ftpdsh: ftpdsh
|
---|
34 | install -m 755 -c -o bin $? $@
|
---|
35 |
|
---|
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
|
---|
40 |
|
---|
41 | installman: $(MANDIR)/$(MANPAGE)
|
---|
42 | cp $(MANPAGE) $(MANDIR)
|
---|
43 | echo "You may need to run makewhatis to update man page index"
|
---|
Note:
See
TracBrowser
for help on using the repository browser.