Fix for Cygwin.
[xtoys] / Makefile.am
1 ## -*-makefile-*-
2 ##
3 ## $Id$
4 ##
5 ## Makefile for X tools
6 ##
7 ## (c) 1998 Straylight/Edgeware
8 ##
9
10 ##----- Licensing notice ----------------------------------------------------
11 ##
12 ## This file is part of the Edgeware X tools collection.
13 ##
14 ## X tools is free software; you can redistribute it and/or modify
15 ## it under the terms of the GNU General Public License as published by
16 ## the Free Software Foundation; either version 2 of the License, or
17 ## (at your option) any later version.
18 ##
19 ## X tools is distributed in the hope that it will be useful,
20 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
21 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 ## GNU General Public License for more details.
23 ##
24 ## You should have received a copy of the GNU General Public License
25 ## along with X tools; if not, write to the Free Software Foundation,
26 ## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27
28 AUTOMAKE_OPTIONS = foreign
29
30 GTK_PROGS = \
31 xshutdown$(EXEEXT) xgetline$(EXEEXT) xcatch$(EXEEXT) xmsg$(EXEEXT)
32 bin_PROGRAMS = xwait xtell xscsize @GTK_PROGS@
33 EXTRA_PROGRAMS = xshutdown xgetline xcatch xmsg
34 man_MANS = xwait.1 xtell.1 xshutdown.1 xscsize.1 xgetline.1 xcatch.1 xmsg.1
35 EXTRA_DIST = \
36 $(man_MANS) \
37 debian/rules debian/copyright debian/control debian/changelog
38
39 CLEANFILES = $(GTK_PROGS)
40
41 xshutdown_SOURCES = xshutdown.c xwait.h xatom.c xatom.h
42 xshutdown_LDADD = @MGLIB_LIBS@ @GTK_LIBS@
43
44 xcatch_SOURCES = xcatch.c
45 xcatch_LDADD = @MGLIB_LIBS@ @GTK_LIBS@
46
47 xgetline_SOURCES = xgetline.c
48 xgetline_LDADD = @MGLIB_LIBS@ @GTK_LIBS@
49
50 xwait_SOURCES = xwait.c xwait.h xatom.c xatom.h
51 xwait_LDADD = @X_LIBS@ -lX11
52
53 xtell_SOURCES = xtell.c xwait.h xatom.c xatom.h
54 xtell_LDADD = @X_LIBS@ -lX11
55
56 xmsg_SOURCES = xmsg.c
57 xmsg_LDADD = @MGLIB_LIBS@ @GTK_LIBS@
58
59 xscsize_SOURCES = xscsize.c
60 xscsize_LDADD = @X_LIBS@ -lX11
61
62 ##----- That's all, folks ---------------------------------------------------