Restructure how we look for Read files slightly.
[fvwm.git] / fvwm / Makefile.am
blobc3ee8f4380e746a14d08489f11d680f363428e37
1 ## Process this file with automake to create Makefile.in
3 configdir = @FVWM_DATADIR@
4 bin_PROGRAMS = fvwm
6 EXTRA_DIST = $(config_DATA)
8 config_DATA = ConfigFvwmDefaults ConfigFvwmSetup
10 ## please keep .c file in largest first order to speed up parallel makes
11 fvwm_SOURCES = \
12         add_window.h bindings.h borders.h builtins.h colormaps.h colorset.h \
13         commands.h conditional.h condrc.h cursor.h decorations.h events.h \
14         eventhandler.h eventmask.h ewmh.h ewmh_intern.h expand.h externs.h \
15         focus.h functable.h functions.h fvwm.h geometry.h focus_policy.h \
16         gnome.h icccm2.h icons.h menubindings.h menudim.h menugeometry.h \
17         menuitem.h menuroot.h menuparameters.h menus.h menustyle.h misc.h \
18         modconf.h module_interface.h module_list.h move_resize.h \
19         placement.h read.h repeat.h execcontext.h schedule.h screen.h \
20         session.h stack.h style.h update.h virtual.h window_flags.h frame.h \
21         \
22         menus.c style.c borders.c events.c move_resize.c builtins.c \
23         add_window.c icons.c fvwm.c frame.c placement.c virtual.c \
24         menustyle.c conditional.c ewmh.c stack.c session.c colorset.c \
25         functions.c ewmh_events.c gnome.c geometry.c module_list.c focus.c \
26         windowlist.c functable.c menuitem.c expand.c module_interface.c \
27         menubindings.c decorations.c ewmh_icons.c update.c bindings.c misc.c \
28         cursor.c colormaps.c modconf.c  ewmh_conf.c read.c schedule.c \
29         menucmd.c ewmh_names.c icccm2.c windowshade.c focus_policy.c repeat.c \
30         execcontext.c menugeometry.c menudim.c condrc.c
32 fvwm_DEPENDENCIES = $(top_builddir)/libs/libfvwm.a
34 LDADD = \
35         -L$(top_builddir)/libs -lfvwm $(Xft_LIBS) $(X_LIBS) $(xpm_LIBS) \
36         $(stroke_LIBS) $(X_PRE_LIBS) $(Xinerama_LIBS) -lXext -lX11 \
37         $(X_EXTRA_LIBS) -lm $(iconv_LIBS) $(Xrender_LIBS) $(Xcursor_LIBS) \
38         $(Bidi_LIBS) $(png_LIBS) $(rsvg_LIBS) $(intl_LIBS)
40 INCLUDES = \
41         -I$(top_srcdir) $(stroke_CFLAGS) $(Xft_CFLAGS) \
42         $(xpm_CFLAGS) $(X_CFLAGS) $(iconv_CFLAGS) $(Xrender_CFLAGS) \
43         $(Bidi_CFLAGS) $(png_CFLAGS) $(rsvg_CFLAGS) $(intl_CFLAGS)
45 AM_CFLAGS = \
46         -DFVWM_MODULEDIR=\"$(FVWM_MODULEDIR)\" \
47         -DFVWM_DATADIR=\"$(FVWM_DATADIR)\" \
48         -DFVWM_CONFDIR=\"$(FVWM_CONFDIR)\" \
49         -DFVWM_COLORSET_PRIVATE=1 \
50         -DLOCALEDIR=\"$(LOCALEDIR)\"
52 ## Create compatibility symlinks if available
54 install-exec-local:
55         @rm -f $(DESTDIR)$(bindir)/fvwm2
56         @$(LN_S) fvwm $(DESTDIR)$(bindir)/fvwm2 || \
57                 echo "Minor warning: $(bindir)/fvwm2 symlink was not created"