From 70e7c8db592408f45b958238d4bbf0048886f6fc Mon Sep 17 00:00:00 2001 From: David Hunt Date: Sun, 12 Jul 2015 13:47:43 -0500 Subject: Added darwin with working battery meter --- Makefile.am | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 46377fc3..8fa38197 100644 --- a/Makefile.am +++ b/Makefile.am @@ -13,6 +13,7 @@ pixmapdir = $(datadir)/pixmaps pixmap_DATA = htop.png htop_CFLAGS = -pedantic -Wall $(wextra_flag) -std=c99 -D_XOPEN_SOURCE_EXTENDED -DSYSCONFDIR=\"$(sysconfdir)\" -I"$(top_srcdir)/$(my_htop_platform)" +htop_LDFLAGS = AM_CPPFLAGS = -DNDEBUG myhtopsources = AvailableMetersPanel.c CategoriesPanel.c CheckItem.c \ @@ -50,6 +51,15 @@ myhtopplatheaders = freebsd/Platform.h freebsd/FreeBSDProcessList.h \ freebsd/FreeBSDProcess.h freebsd/FreeBSDCRT.h freebsd/Battery.h endif +if HTOP_DARWIN +htop_LDFLAGS += -framework IOKit -framework CoreFoundation +myhtopplatsources = darwin/Platform.c darwin/DarwinProcess.c \ +darwin/DarwinProcessList.c darwin/DarwinCRT.c darwin/Battery.c + +myhtopplatheaders = darwin/Platform.h darwin/DarwinProcess.h \ +darwin/DarwinProcessList.h darwin/DarwinCRT.h darwin/Battery.h +endif + if HTOP_UNSUPPORTED myhtopplatsources = unsupported/Platform.c \ unsupported/UnsupportedProcess.c unsupported/UnsupportedProcessList.c \ -- cgit v1.2.3