source: trunk/athena/bin/gathlogout/Makefile.in @ 21714

Revision 21714, 1006 bytes checked in by ghudson, 20 years ago (diff)
Link explicitly against the X libraries. The gtk libraries have them as ELF dependencies, but that isn't good enough for the Solaris 10 linker.
Line 
1# $Id: Makefile.in,v 1.2 2005-04-07 17:29:00 ghudson Exp $
2
3SHELL=/bin/sh
4VPATH=@srcdir@
5INSTALL=@INSTALL@
6INSTALL_PROGRAM=@INSTALL_PROGRAM@
7srcdir=@srcdir@
8top_srcdir=@top_srcdir@
9prefix=@prefix@
10exec_prefix=@exec_prefix@
11bindir=@bindir@
12mandir=@mandir@
13
14CC=@CC@
15DEFS=@DEFS@
16CPPFLAGS=@CPPFLAGS@
17CFLAGS=@CFLAGS@
18X_CFLAGS=@X_CFLAGS@
19LDFLAGS=@LDFLAGS@
20LIBS=@LIBS@
21X_LIBS=@X_LIBS@
22X_PRE_LIBS=@X_PRE_LIBS@
23X_EXTRA_LIBS=@X_EXTRA_LIBS@
24ALL_CFLAGS=`pkg-config --cflags gtk+-2.0` ${CPPFLAGS} ${CFLAGS} ${X_CFLAGS} \
25  ${DEFS}
26ALL_LDFLAGS=${LDFLAGS} ${X_LIBS}
27ALL_LIBS=`pkg-config --libs gtk+-2.0` ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} \
28  ${LIBS}
29
30all: gathlogout
31
32gathlogout: gathlogout.o
33        ${CC} ${CFLAGS} ${ALL_LDFLAGS} -o $@ gathlogout.o ${ALL_LIBS}
34
35.c.o:
36        ${CC} -c ${ALL_CFLAGS} $<
37
38check:
39
40install:
41        ${top_srcdir}/mkinstalldirs ${DESTDIR}${bindir}
42        ${INSTALL_PROGRAM} gathlogout ${DESTDIR}${bindir}
43
44clean:
45        rm -f gathlogout.o gathlogout
46
47distclean: clean
48        rm -f config.cache config.log config.status Makefile
Note: See TracBrowser for help on using the repository browser.