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.
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@
23DEFS=@DEFS@
24LDFLAGS=@LDFLAGS@
25LIBS=@LIBS@
26REGEX_LIBS=@REGEX_LIBS@
27ZEPHYR_LIBS=-lzephyr
28ATHDIR_CFLAGS=@ATHDIR_CFLAGS@
29ATHDIR_LIBS=@ATHDIR_LIBS@
30AFS_LIBS=-lprot -lauth -lrxkad -lubik -laudit -lsys -lrx -llwp -lsys -lafsutil
31ALL_CFLAGS=${CPPFLAGS} ${CFLAGS} ${DEFS}
32ALL_LIBS=-llocker ${AFS_LIBS} ${ZEPHYR_LIBS} ${REGEX_LIBS} ${LIBS}
33
34PROGRAMS=attach atconvert
35ATTACH_OBJS=suite.o agetopt.o add.o attach.o detach.o fsid.o zinit.o
36
37all: ${PROGRAMS}
38
39attach: ${ATTACH_OBJS}
40${ATTACH_OBJS}: CFLAGS += ${ATHDIR_CFLAGS}
41attach: LIBS += ${ATHDIR_LIBS}
42
43atconvert: atconvert.o
44
45${PROGRAMS}:
46        ${CC} ${LDFLAGS} -o $@ $^ ${ALL_LIBS}
47
48.c.o:
49        ${CC} -c ${ALL_CFLAGS} $<
50
51check:
52
53install:
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
59        ${INSTALL} -m 4755 -o root attach ${DESTDIR}${lbindir}
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
64        rm -f ${DESTDIR}${lbindir}/nfsid
65        ln -s attach ${DESTDIR}${lbindir}/nfsid
66        rm -f ${DESTDIR}${lbindir}/zinit
67        ln -s attach ${DESTDIR}${lbindir}/zinit
68        rm -f ${DESTDIR}${lsbindir}/zinit
69        ln -s ${lbindir}/attach ${DESTDIR}${lsbindir}/zinit
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
77
78clean:
79        rm -f ${ATTACH_OBJS} attach
80        rm -f atconvert.o atconvert
81
82distclean: clean
83        rm -f config.cache config.log config.status Makefile
Note: See TracBrowser for help on using the repository browser.