## $Id: Makefile.am,v 1.70 2000/01/28 22:35:00 gjb Exp $ ## process this file with automake to create Makefile.in ## (You should run ./autogen.sh from the top level directory) include $(top_srcdir)/Makefile.common bin_PROGRAMS = scwm scwm_SOURCES = Grab.c \ ICCCM.c \ add_window.c \ binding.c \ borders.c \ callbacks.c \ changed.c \ color.c \ colormaps.c \ cursor.c \ decor.c \ decorations.c \ deskpage.c \ drawmenu.c \ errors.c \ events.c \ face.c \ focus.c \ font.c \ getopt.c \ getopt1.c \ guile-compat.c \ icons.c \ image.c \ init_scheme_string.c \ log-usage.c \ menu.c \ menuitem.c \ menulook.c \ miscprocs.c \ module-interface.c \ move.c \ message-window.c \ placement.c \ resize.c \ screen.c \ scwm.c \ shutdown.c \ string_token.c \ syscompat.c \ system.c \ util.c \ virtual.c \ window.c \ winprop.c \ xmisc.c \ xproperty.c \ xrm.c session_manager_srcs = session-manager.c session_manager_headers = session-manager.h session_manager_objs = $(session_manager_srcs:.c=.o) cassowary_srcs = constraint-primitives.cc scwm-constraints.cc cassowary_headers = constraint-primitives.h scwm-constraints.h \ scwm-constraints.hpp scwm-screen-ci.hpp cassowary_objs = $(cassowary_srcs:.cc=.o) EXTRA_scwm_SOURCES = $(cassowary_srcs) $(session_manager_srcs) noinst_HEADERS = Grab.h events.h placement.h ICCCM.h face.h resize.h \ add_window.h focus.h screen.h binding.h font.h scwm-constraints.h \ borders.h getopt.h scwm-snarf.h callbacks.h guile-compat.h scwm.h scwm_msg.h \ color.h cursor.h icons.h session-manager.h colormaps.h image.h shutdown.h \ log-usage.h string_token.h menu.h syscompat.h scwm-guile.h \ constraint-primitives.h menuitem.h system.h decor.h menulook.h util.h \ decorations.h miscprocs.h virtual.h deskpage.h module-interface.h window.h window.inl \ drawmenu.h module-types.h xmisc.h errors.h move.h window_fwd.h deskpage.h \ move.h xmisc.h drawmenu.h placement.h xproperty.h errors.h resize.h xrm.h \ events.h scm_init_funcs.h dbug_resize.h message-window.h validate.h winprop.h\ $(cassowary_headers) $(session_manager_headers) if ENABLE_DUMP scwm_LDADD = @CASSOWARY_OBJECTS@ @SESSION_MANAGER_OBJECTS@ \ @SM_LIB@ @XEXT_LIB@ @XTST_LIB@ @XMU_LIB@ @XPM_LIB@ @x_libs@ \ @GUILE_STATIC_LIBS@ @GUILE_EXTRA_LIBS@ \ @CASSOWARY_STATIC_LIBS@ \ @UNEXEC_LIB@ else scwm_LDADD = @CASSOWARY_OBJECTS@ @SESSION_MANAGER_OBJECTS@ \ @SM_LIB@ @XEXT_LIB@ @XTST_LIB@ @XMU_LIB@ @XPM_LIB@ @x_libs@ \ @GUILE_LIBS@ \ @CASSOWARY_LIBS@ \ @UNEXEC_LIB@ endif scwm_LDFLAGS = @x_ldflags@ -export-dynamic scwm_DEPENDENCIES = @CASSOWARY_OBJECTS@ @SESSION_MANAGER_OBJECTS@ INCLUDES = -I$(top_srcdir)/include @x_cflags@ @GUILE_INCLUDES@ \ @CASSOWARY_INCLUDES@ @PREFIX_INCLUDES@ AM_CPPFLAGS = $(CPPEXTRAFLAGS) guile_snarfs = Grab.x ICCCM.x add_window.x binding.x callbacks.x color.x \ constraint-primitives.x cursor.x \ decor.x deskpage.x drawmenu.x events.x face.x focus.x font.x icons.x image.x menu.x menuitem.x \ menulook.x message-window.x miscprocs.x module-interface.x move.x placement.x resize.x \ screen.x session-manager.x shutdown.x virtual.x window.x xproperty.x xrm.x winprop.x \ borders.x errors.x BUILT_SOURCES = init_scheme_string.c scwmpaths.h scm_init_funcs.h \ $(guile_snarfs) EXTRA_DIST = ChangeLog generate_scm_init_funcs scwm-snarf scwm-doc-snarf.in ## This is not needed for now, but maybe useful later ## in case someone distributes Scwm modules independently. ##bin_SCRIPTS = scwm-doc-snarf init_scheme_string.c: ../scheme/minimal.scm ( echo "char *init_scheme_string = \"\\" ; \ sed -e 's/;.*$$//g' -e 's/"/\\"/g' -e "s/'/\\\\'/g" -e 's/$$/\\n\\/' ; \ echo \"\; ) <$< > $@ scwmpaths.h: ../config.status @echo "Generating scwmpaths.h..." @rm -f scwmpaths.tmp @echo '/* generated by Makefile -- do not edit */' > scwmpaths.tmp @echo '#define SCWM_PREFIX "${prefix}"' >> scwmpaths.tmp @echo '#define SCWM_EXEC_PREFIX "${exec_prefix}"' >> scwmpaths.tmp @echo '#define SCWMRCDIR "@scwmrcdir@"' >> scwmpaths.tmp @echo '#define SCWMRC ".$(PACKAGE)rc"' >> scwmpaths.tmp @echo '#define SCWM_LOAD_PATH "@scwm_load_path@"' >> scwmpaths.tmp @echo '#define SCWM_BIN_LOAD_PATH "@scwm_bin_load_path@"' >> scwmpaths.tmp @echo '#define SCWM_IMAGE_LOAD_PATH "@scwm_image_load_path@"' >> scwmpaths.tmp @mv scwmpaths.tmp scwmpaths.h scm_init_funcs.h: ../config.status @echo "Generating scm_init_funcs.h..." @$(srcdir)/generate_scm_init_funcs $(guile_snarfs) > $@ CLEANFILES = scwmpaths.h init_scheme_string.c $(BUILT_SOURCES)