diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2024-07-15 00:35:15 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2024-08-13 23:36:43 -0700 |
commit | 9b05c41168842035ddcd377ed5e23bb862fb4a60 (patch) | |
tree | 60c480f891ed2a256c7c91083e7385f6e8666a86 /src/Makefile.am | |
parent | 94a7020ad8c9efd9c5818eb3422ff4cb66a1b278 (diff) |
charts: first stab at factoring out Xlib from charts/vmon
Diffstat (limited to 'src/Makefile.am')
-rw-r--r-- | src/Makefile.am | 30 |
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 |