summaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am30
1 files changed, 23 insertions, 7 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 45428f9..a8d1035 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,10 +1,26 @@
SUBDIRS = libvmon
-bin_PROGRAMS = vwm vmon
+bin_PROGRAMS = vmon
-vwm_SOURCES = clickety.c composite.c context.c desktop.c key.c launch.c logo.c charts.c screen.c vwm.c window.c xevent.c xserver.c xwindow.c clickety.h composite.h context.h desktop.h direction.h key.h launch.h list.h logo.h charts.h screen.h util.h vwm.h window.h xevent.h xserver.h xwindow.h colors.def context_colors.def launchers.def
-vwm_LDADD = @VWM_LIBS@ libvmon/libvmon.a
-vwm_CPPFLAGS = @VWM_CFLAGS@
+vmon_SOURCES = ascii.c charts.c vcr.c vmon.c ascii.h charts.h vcr.h
+vmon_LDADD = libvmon/libvmon.a
+vmon_CPPFLAGS = -O2
-vmon_SOURCES = vmon.c charts.c xserver.c charts.h xserver.h
-vmon_LDADD= @VMON_LIBS@ libvmon/libvmon.a
-vmon_CPPFLAGS = @VMON_CFLAGS@
+if HAVE_XCLIENT_DEV
+vmon_SOURCES += xserver.c xserver.h
+vmon_LDADD += @XCLIENT_DEV_LIBS@
+vmon_CPPFLAGS += @XCLIENT_DEV_CFLAGS@ -DUSE_XLIB
+endif
+
+if HAVE_PNG_DEV
+vmon_CPPFLAGS += @PNG_DEV_CFLAGS@ -DUSE_PNG
+vmon_LDADD += @PNG_DEV_LIBS@
+endif
+
+
+if ENABLE_VWM
+bin_PROGRAMS += vwm
+
+vwm_SOURCES = ascii.c clickety.c composite.c context.c desktop.c key.c launch.c logo.c charts.c screen.c vcr.c vwm.c window.c xevent.c xserver.c xwindow.c ascii.h clickety.h composite.h context.h desktop.h direction.h key.h launch.h list.h logo.h charts.h screen.h util.h vcr.h vwm.h window.h xevent.h xserver.h xwindow.h colors.def context_colors.def launchers.def
+vwm_LDADD = @XWM_DEV_LIBS@ libvmon/libvmon.a
+vwm_CPPFLAGS = @XWM_DEV_CFLAGS@ -DUSE_XLIB
+endif
© All Rights Reserved