makefile-updates-20010828
[openafs.git] / src / pinstall / Makefile.in
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 # Make modified install
9 DESTDIR=@DESTDIR@
10 SRCDIR=@SRCDIR@
11 TOP_SRCDIR=@TOP_SRCDIR@
12 SYS_NAME=@AFS_SYSNAME@
13
14 SHELL = /bin/sh
15
16 include ../config/Makefile.${SYS_NAME}
17
18 LIBS= ${XLIBS}
19 CFLAGS= ${OPTMZ} -g -I. -I${DESTDIR}/include -I${TOP_SRCDIR}/config ${XCFLAGS}
20
21 all: install
22
23 pinstall: install.c AFS_component_version_number.c 
24         case ${SYS_NAME} in \
25                 sgi_64 | sgi_65) \
26                         ${CC} ${CFLAGS} install.c -o pinstall ${LIBS} ;; \
27                 sgi_* ) \
28                         ${CC} ${CFLAGS} install.c -o pinstall ${LIBS} -lmld ;; \
29                 *) \
30                         ${CC} ${CFLAGS} install.c -o pinstall ${LIBS} ;; \
31         esac
32
33 test: pinstall
34         csh ./test/test_install
35
36 ${DESTDIR}/bin/install: pinstall
37         case ${SYS_NAME} in \
38                 ppc_darwin*) \
39                         ./pinstall -f pinstall ${DESTDIR}/bin/pinstall ;;\
40                 *) \
41                         ./pinstall -f pinstall ${DESTDIR}/bin/install ;;\
42         esac
43
44 # Note: Some rule needs to appear here so that OSF's make does not try to
45 # compile install from install.c. A ";" will not work since other platforms
46 # complain. That's why we use 'echo'.
47 install: ${DESTDIR}/bin/install
48         @echo -n
49
50 clean:
51         rm -f *.o pinstall AFS_component_version_number.c
52
53 include ../config/Makefile.version
54
55