9525c2024180c5093c3d289c527d47b28f09d0a5
[openafs.git] / src / rcp / Makefile
1 #
2 # Copyright (c) 1988 Regents of the University of California.
3 # All rights reserved.
4 #
5 # Redistribution and use in source and binary forms are permitted
6 # provided that the above copyright notice and this paragraph are
7 # duplicated in all such forms and that any documentation, advertising
8 # materials, and other materials related to such redistribution and
9 # use acknowledge that the software was developed by the University
10 # of California, Berkeley.  The name of the University may not be
11 # used to endorse or promote products derived from this software
12 # without specific prior written permission.  THIS SOFTWARE IS PROVIDED
13 # ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
14 # WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND
15 # FITNESS FOR A PARTICULAR PURPOSE.
16 #
17 # @(#)Makefile  5.1 (Berkeley) 9/20/88
18 #
19 SHELL=/bin/sh
20 include ../config/Makefile.${SYS_NAME}
21
22 LIBC=   /lib/libc.a
23 SRCS=   rcp.c
24 OBJS=   rcp.o ../rsh/rcmd.o ../rsh/herror.o ../inetd/ta-rauth.o
25 COMPONENT=rcp
26
27 INSTALL = ${DESTDIR}bin/install
28 CFLAGS = ${OPTMZ} -I${DESTDIR}include ${XCFLAGS}
29 LIBDIR = ${DESTDIR}lib/
30 AFSLIBS =  ${LIBDIR}afs/libkauth.a ${LIBDIR}libubik.a\
31                    ${LIBDIR}afs/libauth.a ${LIBDIR}afs/libsys.a \
32                    ${LIBDIR}librx.a ${LIBDIR}liblwp.a ${DESTDIR}lib/librxkad.a\
33                    ${DESTDIR}lib/libdes.a ${LIBDIR}afs/libcmd.a \
34                    ${LIBDIR}afs/libcom_err.a ${LIBDIR}afs/util.a 
35 LIBRES = 
36 LIBS = ${AFSLIBS} ${LIBRES} 
37 MAN=
38
39 include ../config/Makefile.version
40
41 all: rcp
42
43 rcp.o: AFS_component_version_number.c
44
45 system: install
46
47 rcp: ${OBJS} ${LIBS}
48         set -x; \
49         case "${SYS_NAME}" in \
50         alpha_osf30 | alpha_osf32 | alpha_osf32c | alpha_dux?? ) \
51            ${CC} -o $@ ${CFLAGS} ${OBJS} ${LIBS} ${XLIBS} -non_shared ;; \
52         * ) \
53            ${CC} -o $@ ${CFLAGS} ${OBJS} ${LIBS} ${XLIBS} ;; \
54         esac
55
56 ../rsh/rcmd.o: ../rsh/rcmd.c
57         (cd ../rsh ; $(MAKE) rcmd.o SRCDIR=${SRCDIR} DESTDIR=${DESTDIR})
58
59 ../rsh/herror.o: ../rsh/herror.c
60         (cd ../rsh ; $(MAKE) herror.o SRCDIR=${SRCDIR} DESTDIR=${DESTDIR})
61
62 ../inetd/ta-rauth.o: ../inetd/ta-rauth.c
63         (cd ../inetd ; $(MAKE) ta-rauth.o SRCDIR=${SRCDIR} DESTDIR=${DESTDIR})
64
65 clean:
66 clean:
67         rm -f ${OBJS} core rcp AFS_component_version_number.c
68
69 cleandir: clean
70         rm -f ${MAN} tags .depend
71
72 depend: ${SRCS}
73         mkdep -p ${CFLAGS} ${SRCS}
74
75 install: ${MAN} all
76         ${INSTALL} rcp ${DESTDIR}bin/rcp
77
78 lint: ${SRCS}
79         lint ${CFLAGS} ${SRCS}
80
81 tags: ${SRCS}
82         ctags ${SRCS}