make-install-support-for-transarc-and-prefix-style-universes-20010907
[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 DEST=@DEST@
10 TOP_INCDIR=@TOP_INCDIR@
11 TOP_LIBDIR=@TOP_LIBDIR@
12 prefix=@prefix@
13 exec_prefix=@exec_prefix@
14 bindir=@bindir@
15 sbindir=@sbindir@
16 libexecdir=@libexecdir@
17 libdir=@libdir@
18 includedir=@includedir@
19 mandir=@mandir@
20 afssrvbindir=@afssrvbindir@
21 afssrvsbindir=@afssrvsbindir@
22 afssrvlibexecdir=@afssrvlibexecdir@
23 COMPILE_ET=${TOP_SRCDIR}/comerr/compile_et
24 RXGEN=${TOP_SRCDIR}/rxgen/rxgen
25 TOP_SRCDIR=@TOP_SRCDIR@
26 SYS_NAME=@AFS_SYSNAME@
27
28 SHELL = /bin/sh
29
30 include ../config/Makefile.${SYS_NAME}
31
32 LIBS= ${XLIBS}
33 CFLAGS=${OPTMZ} -g -I. -I${TOP_INCDIR} -I${TOP_SRCDIR}/config ${XCFLAGS}
34
35 all: pinstall
36
37 pinstall: install.c AFS_component_version_number.c 
38         case ${SYS_NAME} in \
39                 sgi_64 | sgi_65) \
40                         ${CC} ${CFLAGS} install.c -o pinstall ${LIBS} ;; \
41                 sgi_* ) \
42                         ${CC} ${CFLAGS} install.c -o pinstall ${LIBS} -lmld ;; \
43                 *) \
44                         ${CC} ${CFLAGS} install.c -o pinstall ${LIBS} ;; \
45         esac
46
47 test: pinstall
48         csh ./test/test_install
49
50 ${DEST}/bin/install: pinstall
51         ${INSTALL} -f $? $@
52
53 # Note: Some rule needs to appear here so that OSF's make does not try to
54 # compile install from install.c. A ";" will not work since other platforms
55 # complain. That's why we use 'echo'.
56 install:
57         @echo -n
58
59 clean:
60         $(RM) -f *.o pinstall AFS_component_version_number.c
61
62 include ../config/Makefile.version
63
64
65 dest: ${DEST}/bin/install
66