[22509] | 1 | # $Id: Makefile.in,v 1.14 2006-07-12 19:54:39 ghudson Exp $ |
---|
[12589] | 2 | |
---|
| 3 | SHELL=/bin/sh |
---|
| 4 | INSTALL=@INSTALL@ |
---|
| 5 | INSTALL_PROGRAM=@INSTALL_PROGRAM@ |
---|
[24652] | 6 | INSTALL_DATA=@INSTALL_DATA@ |
---|
| 7 | MKDIR_P=@MKDIR_P@ |
---|
[12589] | 8 | VPATH=@srcdir@ |
---|
| 9 | srcdir=@srcdir@ |
---|
| 10 | top_srcdir=@top_srcdir@ |
---|
| 11 | prefix=@prefix@ |
---|
| 12 | exec_prefix=@exec_prefix@ |
---|
| 13 | bindir=@bindir@ |
---|
[12725] | 14 | sbindir=@sbindir@ |
---|
[12589] | 15 | lbindir=@lbindir@ |
---|
| 16 | lsbindir=@lsbindir@ |
---|
[24652] | 17 | datarootdir=@datarootdir@ |
---|
[12589] | 18 | mandir=@mandir@ |
---|
| 19 | |
---|
| 20 | CC=@CC@ |
---|
| 21 | CPPFLAGS=@CPPFLAGS@ |
---|
[24655] | 22 | CFLAGS=@CFLAGS@ |
---|
[12589] | 23 | DEFS=@DEFS@ |
---|
| 24 | LDFLAGS=@LDFLAGS@ |
---|
| 25 | LIBS=@LIBS@ |
---|
| 26 | REGEX_LIBS=@REGEX_LIBS@ |
---|
| 27 | ZEPHYR_LIBS=-lzephyr |
---|
[24655] | 28 | ATHDIR_CFLAGS=@ATHDIR_CFLAGS@ |
---|
| 29 | ATHDIR_LIBS=@ATHDIR_LIBS@ |
---|
[21573] | 30 | AFS_LIBS=-lprot -lauth -lrxkad -lubik -laudit -lsys -lrx -llwp -lsys -lafsutil |
---|
[24655] | 31 | ALL_CFLAGS=${CPPFLAGS} ${CFLAGS} ${DEFS} |
---|
| 32 | ALL_LIBS=-llocker ${AFS_LIBS} ${ZEPHYR_LIBS} ${REGEX_LIBS} ${LIBS} |
---|
[12589] | 33 | |
---|
[24655] | 34 | PROGRAMS=attach atconvert |
---|
[14412] | 35 | ATTACH_OBJS=suite.o agetopt.o add.o attach.o detach.o fsid.o zinit.o |
---|
[12589] | 36 | |
---|
[24655] | 37 | all: ${PROGRAMS} |
---|
[12589] | 38 | |
---|
[12748] | 39 | attach: ${ATTACH_OBJS} |
---|
[24655] | 40 | ${ATTACH_OBJS}: CFLAGS += ${ATHDIR_CFLAGS} |
---|
| 41 | attach: LIBS += ${ATHDIR_LIBS} |
---|
[12589] | 42 | |
---|
[12707] | 43 | atconvert: atconvert.o |
---|
| 44 | |
---|
[24655] | 45 | ${PROGRAMS}: |
---|
| 46 | ${CC} ${LDFLAGS} -o $@ $^ ${ALL_LIBS} |
---|
| 47 | |
---|
[12589] | 48 | .c.o: |
---|
| 49 | ${CC} -c ${ALL_CFLAGS} $< |
---|
| 50 | |
---|
| 51 | check: |
---|
| 52 | |
---|
| 53 | install: |
---|
[24652] | 54 | ${MKDIR_P} ${DESTDIR}${sbindir} |
---|
| 55 | ${MKDIR_P} ${DESTDIR}${lbindir} |
---|
| 56 | ${MKDIR_P} ${DESTDIR}${lsbindir} |
---|
| 57 | ${MKDIR_P} ${DESTDIR}${mandir}/man1 |
---|
| 58 | ${MKDIR_P} ${DESTDIR}${mandir}/man8 |
---|
[12589] | 59 | ${INSTALL} -m 4755 -o root attach ${DESTDIR}${lbindir} |
---|
[12748] | 60 | rm -f ${DESTDIR}${lbindir}/detach |
---|
| 61 | ln -s attach ${DESTDIR}${lbindir}/detach |
---|
| 62 | rm -f ${DESTDIR}${lbindir}/fsid |
---|
| 63 | ln -s attach ${DESTDIR}${lbindir}/fsid |
---|
[12589] | 64 | rm -f ${DESTDIR}${lbindir}/nfsid |
---|
[12748] | 65 | ln -s attach ${DESTDIR}${lbindir}/nfsid |
---|
| 66 | rm -f ${DESTDIR}${lbindir}/zinit |
---|
| 67 | ln -s attach ${DESTDIR}${lbindir}/zinit |
---|
[12589] | 68 | rm -f ${DESTDIR}${lsbindir}/zinit |
---|
[12748] | 69 | ln -s ${lbindir}/attach ${DESTDIR}${lsbindir}/zinit |
---|
[24652] | 70 | ${INSTALL_PROGRAM} atconvert ${DESTDIR}${sbindir} |
---|
| 71 | ${INSTALL_DATA} ${srcdir}/add.1 ${DESTDIR}${mandir}/man1 |
---|
| 72 | ${INSTALL_DATA} ${srcdir}/attach.1 ${DESTDIR}${mandir}/man1 |
---|
| 73 | ${INSTALL_DATA} ${srcdir}/detach.1 ${DESTDIR}${mandir}/man1 |
---|
| 74 | ${INSTALL_DATA} ${srcdir}/fsid.1 ${DESTDIR}${mandir}/man1 |
---|
| 75 | ${INSTALL_DATA} ${srcdir}/nfsid.1 ${DESTDIR}${mandir}/man1 |
---|
| 76 | ${INSTALL_DATA} ${srcdir}/zinit.8 ${DESTDIR}${mandir}/man8 |
---|
[12589] | 77 | |
---|
| 78 | clean: |
---|
[12748] | 79 | rm -f ${ATTACH_OBJS} attach |
---|
[12707] | 80 | rm -f atconvert.o atconvert |
---|
[12589] | 81 | |
---|
| 82 | distclean: clean |
---|
| 83 | rm -f config.cache config.log config.status Makefile |
---|