Commit | Line | Data |
---|---|---|
edf71f48 | 1 | # |
11c5f0a3 KB |
2 | # Copyright (c) 1988 Regents of the University of California. |
3 | # All rights reserved. | |
edf71f48 | 4 | # |
11c5f0a3 | 5 | # Redistribution and use in source and binary forms are permitted |
b36fc510 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. | |
11c5f0a3 | 16 | # |
d6ba3795 | 17 | # @(#)Makefile 5.7 (Berkeley) %G% |
6b64c6fd | 18 | # |
6b64c6fd | 19 | CFLAGS= -O |
9b75ee7f KB |
20 | LIBC= /lib/libc.a |
21 | SRCS= cmds.c cmdtab.c ftp.c getpass.c glob.c main.c pclose.c ruserpass.c domacro.c | |
22 | OBJS= cmds.o cmdtab.o ftp.o getpass.o glob.o main.o pclose.o ruserpass.o domacro.o | |
d6ba3795 | 23 | MAN= ftp.0 |
899cb952 | 24 | |
9b75ee7f | 25 | all: ftp |
899cb952 | 26 | |
d6ba3795 | 27 | ftp: ${OBJS} ${LIBC} |
9b75ee7f | 28 | ${CC} -o $@ ${CFLAGS} ${OBJS} |
899cb952 | 29 | |
d6ba3795 | 30 | clean: |
9b75ee7f | 31 | rm -f ${OBJS} core ftp |
899cb952 | 32 | |
d6ba3795 KB |
33 | cleandir: clean |
34 | rm -f ${MAN} tags .depend | |
35 | ||
36 | depend: ${SRCS} | |
9b75ee7f | 37 | mkdep ${CFLAGS} ${SRCS} |
6b64c6fd | 38 | |
d6ba3795 | 39 | install: ${MAN} |
9b75ee7f | 40 | install -s -o bin -g bin -m 755 ftp ${DESTDIR}/usr/ucb/ftp |
d6ba3795 | 41 | install -c -o bin -g bin -m 444 ftp.0 ${DESTDIR}/usr/man/cat1 |
300a5f74 | 42 | |
d6ba3795 | 43 | lint: ${SRCS} |
9b75ee7f KB |
44 | lint ${CFLAGS} ${SRCS} |
45 | ||
d6ba3795 | 46 | tags: ${SRCS} |
9b75ee7f | 47 | ctags ${SRCS} |