Commit | Line | Data |
---|---|---|
f644bb55 | 1 | # |
e2071415 KB |
2 | # Copyright (c) 1988 Regents of the University of California. |
3 | # All rights reserved. | |
f644bb55 | 4 | # |
e2071415 | 5 | # Redistribution and use in source and binary forms are permitted |
b8c620d6 KB |
6 | # provided that the above copyright notice and this paragraph are |
7 | # duplicated in all such forms and that any documentation, | |
8 | # advertising materials, and other materials related to such | |
9 | # distribution and use acknowledge that the software was developed | |
10 | # by the University of California, Berkeley. The name of the | |
11 | # University may not be used to endorse or promote products derived | |
12 | # from this software without specific prior written permission. | |
13 | # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | |
14 | # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | |
15 | # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. | |
e2071415 | 16 | # |
4bd24865 | 17 | # @(#)Makefile 5.11 (Berkeley) %G% |
91651ac2 | 18 | # |
4bd24865 | 19 | CFLAGS= -O -I../../../usr.bin/ftp -DSETPROCTITLE |
d2748719 | 20 | LIBC= /lib/libc.a |
1be7385b KB |
21 | SRCS= ftpd.c ftpcmd.c glob.c logwtmp.c popen.c vers.c |
22 | OBJS= ftpd.o ftpcmd.o glob.o logwtmp.o popen.o vers.o | |
2b49e4b9 | 23 | MAN= ftpd.0 |
91651ac2 | 24 | |
d2748719 | 25 | all: ftpd |
91651ac2 | 26 | |
d2748719 KB |
27 | ftpd: ${OBJS} ${LIBC} |
28 | ${CC} -o $@ ${OBJS} | |
29 | ||
30 | vers.o: ftpd.c ftpcmd.y | |
91651ac2 | 31 | sh newvers.sh |
d2748719 KB |
32 | ${CC} ${CFLAGS} -c vers.c |
33 | ||
2b49e4b9 | 34 | clean: |
d2748719 KB |
35 | rm -f ${OBJS} ftpd core ftpcmd.c |
36 | ||
2b49e4b9 KB |
37 | cleandir: clean |
38 | rm -f ${MAN} tags .depend | |
39 | ||
40 | depend: ${SRCS} | |
d2748719 KB |
41 | mkdep ${CFLAGS} ${SRCS} |
42 | ||
2b49e4b9 | 43 | install: ${MAN} |
fdc4ae3f | 44 | install -s -o bin -g bin -m 755 ftpd ${DESTDIR}/usr/libexec |
2b49e4b9 | 45 | install -c -o bin -g bin -m 755 ftpd.0 ${DESTDIR}/usr/man/cat8 |
d2748719 | 46 | |
2b49e4b9 | 47 | lint: ${SRCS} |
d2748719 KB |
48 | lint ${CFLAGS} ${SRCS} |
49 | ||
2b49e4b9 | 50 | tags: ${SRCS} |
d2748719 | 51 | ctags ${SRCS} |