cvsimport
[fvwm.git] / modules / FvwmForm / Makefile.am
blob0f2282e8ab53e5772e40b88113370c4f8d3d763c
1 ## Process this file with automake to create Makefile.in
3 moduledir = @FVWM_MODULEDIR@
4 configdir = @FVWM_DATADIR@
6 module_PROGRAMS = FvwmForm
7 man_MANS = FvwmForm.1
9 ## FvwmTalk was made obsolete in March 1999.
10 ## This provides compatibility.
11 module_SCRIPTS = FvwmTalk
13 FvwmTalk: ../../config.h Makefile
14         echo "#!/bin/sh" > $@
15         echo exec ${moduledir}/FvwmForm '$$@' FvwmForm-Talk>> $@
17 ## NB: Neither _MANS nor _DATA are included by default in
18 ## distributions!
19 EXTRA_DIST = $(man_MANS) Changes \
20   FvwmForm-Setup.in   \
21   FvwmForm-Form       \
22   FvwmForm-Capture    \
23   FvwmForm-Desktop    \
24   FvwmForm-QuitVerify \
25   FvwmForm-Rlogin     \
26   FvwmForm-RootCursor \
27   FvwmForm-Talk       \
28   FvwmForm-TalkHelp
30 FvwmForm_SOURCES = FvwmForm.c FvwmForm.h ReadXServer.c ParseCommand.c
32 FvwmForm_DEPENDENCIES = $(top_builddir)/libs/libfvwm.a
34 config_DATA =        \
35   FvwmForm-Setup      \
36   FvwmForm-Form       \
37   FvwmForm-Capture    \
38   FvwmForm-Desktop    \
39   FvwmForm-QuitVerify \
40   FvwmForm-Rlogin     \
41   FvwmForm-RootCursor \
42   FvwmForm-Talk       \
43   FvwmForm-TalkHelp
45 ## Xpm note: while this module may not depend on Xpm explicitly,
46 ## there are sometimes dependencies through functions in libfvwm
47 ## so we might as well link against libXpm, if present.
48 LDADD = -L$(top_builddir)/libs -lfvwm $(Xft_LIBS) $(X_LIBS)  \
49         $(X_PRE_LIBS) $(Xinerama_LIBS) -lXext -lX11 $(X_EXTRA_LIBS) \
50         -lm $(Xrender_LIBS) $(rsvg_LIBS) $(iconv_LIBS) $(Bidi_LIBS)
52 INCLUDES = -I$(top_srcdir) $(Xft_CFLAGS) $(X_CFLAGS) $(iconv_CFLAGS) \
53         $(Bidi_CFLAGS) $(Xrender_CFLAGS)
55 FvwmForm-Setup: FvwmForm-Setup.in Makefile
56         rm -f $@
57         sed -e 's,xFVWM_DATADIRx,$(FVWM_DATADIR),' $(top_srcdir)/modules/FvwmForm/FvwmForm-Setup.in > $@-t
58         mv $@-t $@
60 CLEANFILES = $(module_SCRIPTS) FvwmForm-Setup