source: trunk/athena/bin/attach/Makefile.in @ 24652

Revision 24652, 2.2 KB checked in by broder, 15 years ago (diff)
In attach: * Update our autogoo for the 21st century.
Line 
1# $Id: Makefile.in,v 1.14 2006-07-12 19:54:39 ghudson Exp $
2
3SHELL=/bin/sh
4INSTALL=@INSTALL@
5INSTALL_PROGRAM=@INSTALL_PROGRAM@
6INSTALL_DATA=@INSTALL_DATA@
7MKDIR_P=@MKDIR_P@
8VPATH=@srcdir@
9srcdir=@srcdir@
10top_srcdir=@top_srcdir@
11prefix=@prefix@
12exec_prefix=@exec_prefix@
13bindir=@bindir@
14sbindir=@sbindir@
15lbindir=@lbindir@
16lsbindir=@lsbindir@
17datarootdir=@datarootdir@
18mandir=@mandir@
19
20CC=@CC@
21CPPFLAGS=@CPPFLAGS@
22CFLAGS=@CFLAGS@ ${WARN_CFLAGS} ${ERROR_CFLAGS}
23DEFS=@DEFS@
24LDFLAGS=@LDFLAGS@
25LIBS=@LIBS@
26REGEX_LIBS=@REGEX_LIBS@
27ZEPHYR_LIBS=-lzephyr
28AFS_LIBS=-lprot -lauth -lrxkad -lubik -laudit -lsys -lrx -llwp -lsys -lafsutil
29ALL_CFLAGS=${WARN_CFLAGS} ${ERROR_CFLAGS} -I. ${CPPFLAGS} ${CFLAGS} ${DEFS}
30ALL_LIBS=-llocker ${AFS_LIBS} ${ZEPHYR_LIBS} ${REGEX_LIBS} \
31         -lhesiod -lcom_err ${LIBS}
32
33ATTACH_OBJS=suite.o agetopt.o add.o attach.o detach.o fsid.o zinit.o
34
35all: attach atconvert
36
37attach: ${ATTACH_OBJS}
38        ${CC} ${LDFLAGS} -o attach ${ATTACH_OBJS} -lathdir ${ALL_LIBS}
39
40atconvert: atconvert.o
41        ${CC} ${LDFLAGS} -o atconvert atconvert.o ${ALL_LIBS}
42
43.c.o:
44        ${CC} -c ${ALL_CFLAGS} $<
45
46check:
47
48install:
49        ${MKDIR_P} ${DESTDIR}${sbindir}
50        ${MKDIR_P} ${DESTDIR}${lbindir}
51        ${MKDIR_P} ${DESTDIR}${lsbindir}
52        ${MKDIR_P} ${DESTDIR}${mandir}/man1
53        ${MKDIR_P} ${DESTDIR}${mandir}/man8
54        ${INSTALL} -m 4755 -o root attach ${DESTDIR}${lbindir}
55        rm -f ${DESTDIR}${lbindir}/detach
56        ln -s attach ${DESTDIR}${lbindir}/detach
57        rm -f ${DESTDIR}${lbindir}/fsid
58        ln -s attach ${DESTDIR}${lbindir}/fsid
59        rm -f ${DESTDIR}${lbindir}/nfsid
60        ln -s attach ${DESTDIR}${lbindir}/nfsid
61        rm -f ${DESTDIR}${lbindir}/zinit
62        ln -s attach ${DESTDIR}${lbindir}/zinit
63        rm -f ${DESTDIR}${lsbindir}/zinit
64        ln -s ${lbindir}/attach ${DESTDIR}${lsbindir}/zinit
65        ${INSTALL_PROGRAM} atconvert ${DESTDIR}${sbindir}
66        ${INSTALL_DATA} ${srcdir}/add.1 ${DESTDIR}${mandir}/man1
67        ${INSTALL_DATA} ${srcdir}/attach.1 ${DESTDIR}${mandir}/man1
68        ${INSTALL_DATA} ${srcdir}/detach.1 ${DESTDIR}${mandir}/man1
69        ${INSTALL_DATA} ${srcdir}/fsid.1 ${DESTDIR}${mandir}/man1
70        ${INSTALL_DATA} ${srcdir}/nfsid.1 ${DESTDIR}${mandir}/man1
71        ${INSTALL_DATA} ${srcdir}/zinit.8 ${DESTDIR}${mandir}/man8
72
73clean:
74        rm -f ${ATTACH_OBJS} attach
75        rm -f atconvert.o atconvert
76
77distclean: clean
78        rm -f config.cache config.log config.status Makefile
Note: See TracBrowser for help on using the repository browser.