build-system-specific-makefile-configuration-from-configure-20011031
[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 srcdir=@srcdir@
9 include @TOP_OBJDIR@/src/config/Makefile.config
10
11
12 LIBS= ${XLIBS}
13 CFLAGS=${OPTMZ} -g -I. -I${TOP_INCDIR} -I../config ${XCFLAGS}
14
15 all: pinstall
16
17 pinstall: ${srcdir}/install.c AFS_component_version_number.c 
18         case ${SYS_NAME} in \
19                 sgi_64 | sgi_65) \
20                         ${CC} ${CFLAGS} ${srcdir}/install.c -o pinstall ${LIBS} ;; \
21                 sgi_* ) \
22                         ${CC} ${CFLAGS} ${srcdir}/install.c -o pinstall ${LIBS} -lmld ;; \
23                 *) \
24                         ${CC} ${CFLAGS} ${srcdir}/install.c -o pinstall ${LIBS} ;; \
25         esac
26
27 test: pinstall
28         csh ./test/test_install
29
30 ${DEST}/bin/install: pinstall
31         ${INSTALL} -f $? $@
32
33 # Note: Some rule needs to appear here so that OSF's make does not try to
34 # compile install from install.c. A ";" will not work since other platforms
35 # complain. That's why we use 'echo'.
36 install:
37         @echo -n
38
39 clean:
40         $(RM) -f *.o pinstall AFS_component_version_number.c
41
42 include ../config/Makefile.version
43
44
45 dest: ${DEST}/bin/install
46