install-updates-for-freebsd-20010420
[openafs.git] / src / pinstall / Makefile
1 # Copyright 2000, International Business Machines Corporation and others.
2 # All Rights Reserved.
3
4 # This software has been released under the terms of the IBM Public
5 # License.  For details, see the LICENSE file in the top-level source
6 # directory or online at http://www.openafs.org/dl/license10.html
7
8 #                       All Rights Reserved
9
10 # Permission to use, copy, modify, and distribute this software and its 
11 # documentation for any purpose and without fee is hereby granted, 
12 # provided that the above copyright notice appear in all copies and that
13 # both that copyright notice and this permission notice appear in 
14 # supporting documentation, and that the name of IBM not be
15 # used in advertising or publicity pertaining to distribution of the
16 # software without specific, written prior permission.  
17
18 # IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
19 # ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
20 # IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
21 # ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
22 # WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
23 # ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
24 # SOFTWARE.
25 ######################################################################
26
27 # Make modified install
28 SHELL = /bin/sh
29 COMPONENT=pinstall
30 include ../config/Makefile.${SYS_NAME}
31
32 LIBS= ${XLIBS}
33 CFLAGS= ${OPTMZ} ${XCFLAGS}
34
35 include ../config/Makefile.version
36
37 pinstall: install.c  AFS_component_version_number.c 
38         case ${SYS_NAME} in \
39                 sgi_64 | sgi_65) \
40                         ${CC} -g -I${DESTDIR}include ${CFLAGS} install.c -o pinstall ${LIBS} ;; \
41                 sgi_* ) \
42                         $(CC) -g -I${DESTDIR}include ${CFLAGS} install.c -o pinstall ${LIBS} -lmld ;; \
43                 *) \
44                         $(CC) -g -I${DESTDIR}include ${CFLAGS} install.c -o pinstall ${LIBS} ;; \
45         esac
46         - [ -d test ] && ( cd test; $(MAKE) )
47         - [ -d test ] && ./test/test_install
48
49 ${DESTDIR}bin/install: pinstall
50         case ${SYS_NAME} in \
51                 ppc_darwin*) \
52                         ./pinstall -f pinstall ${DESTDIR}bin/pinstall ;;\
53                 *) \
54                         ./pinstall -f pinstall ${DESTDIR}bin/install ;;\
55         esac
56
57 # Note: Some rule needs to appear here so that OSF's make does not try to
58 # compile install from install.c. A ";" will not work since other platforms
59 # complain. That's why we use 'echo'.
60 install: ${DESTDIR}bin/install
61         @echo -n
62
63 noversion: install
64
65 kinstall ukinstall webinstall:
66         @echo No kernel source here.
67
68 system: install
69
70 clean:
71         rm -f pinstall AFS_component_version_number.c
72
73
74