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

Revision 24655, 2.2 KB checked in by broder, 14 years ago (diff)
In attach: * Use pkg-config when available instead of hard-coding compiler and linker flags.
RevLine 
[22509]1# $Id: Makefile.in,v 1.14 2006-07-12 19:54:39 ghudson Exp $
[12589]2
3SHELL=/bin/sh
4INSTALL=@INSTALL@
5INSTALL_PROGRAM=@INSTALL_PROGRAM@
[24652]6INSTALL_DATA=@INSTALL_DATA@
7MKDIR_P=@MKDIR_P@
[12589]8VPATH=@srcdir@
9srcdir=@srcdir@
10top_srcdir=@top_srcdir@
11prefix=@prefix@
12exec_prefix=@exec_prefix@
13bindir=@bindir@
[12725]14sbindir=@sbindir@
[12589]15lbindir=@lbindir@
16lsbindir=@lsbindir@
[24652]17datarootdir=@datarootdir@
[12589]18mandir=@mandir@
19
20CC=@CC@
21CPPFLAGS=@CPPFLAGS@
[24655]22CFLAGS=@CFLAGS@
[12589]23DEFS=@DEFS@
24LDFLAGS=@LDFLAGS@
25LIBS=@LIBS@
26REGEX_LIBS=@REGEX_LIBS@
27ZEPHYR_LIBS=-lzephyr
[24655]28ATHDIR_CFLAGS=@ATHDIR_CFLAGS@
29ATHDIR_LIBS=@ATHDIR_LIBS@
[21573]30AFS_LIBS=-lprot -lauth -lrxkad -lubik -laudit -lsys -lrx -llwp -lsys -lafsutil
[24655]31ALL_CFLAGS=${CPPFLAGS} ${CFLAGS} ${DEFS}
32ALL_LIBS=-llocker ${AFS_LIBS} ${ZEPHYR_LIBS} ${REGEX_LIBS} ${LIBS}
[12589]33
[24655]34PROGRAMS=attach atconvert
[14412]35ATTACH_OBJS=suite.o agetopt.o add.o attach.o detach.o fsid.o zinit.o
[12589]36
[24655]37all: ${PROGRAMS}
[12589]38
[12748]39attach: ${ATTACH_OBJS}
[24655]40${ATTACH_OBJS}: CFLAGS += ${ATHDIR_CFLAGS}
41attach: LIBS += ${ATHDIR_LIBS}
[12589]42
[12707]43atconvert: atconvert.o
44
[24655]45${PROGRAMS}:
46        ${CC} ${LDFLAGS} -o $@ $^ ${ALL_LIBS}
47
[12589]48.c.o:
49        ${CC} -c ${ALL_CFLAGS} $<
50
51check:
52
53install:
[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
78clean:
[12748]79        rm -f ${ATTACH_OBJS} attach
[12707]80        rm -f atconvert.o atconvert
[12589]81
82distclean: clean
83        rm -f config.cache config.log config.status Makefile
Note: See TracBrowser for help on using the repository browser.