From 4b49de44a8659674c6e92ba70e0c1930b2b9315b Mon Sep 17 00:00:00 2001 From: fraggerfox Date: Mon, 15 Mar 2021 13:14:39 +0530 Subject: Add NetBSD platform support without procfs dependency - TODO, clean up the code base and update comments in code. --- Makefile.am | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index ca687d4c..a533245f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -236,6 +236,30 @@ myhtopplatheaders = $(dragonflybsd_platform_headers) myhtopplatsources = $(dragonflybsd_platform_sources) endif +# NetBSD +# ------- + +netbsd_platform_headers = \ + netbsd/Platform.h \ + netbsd/ProcessField.h \ + netbsd/NetBSDProcessList.h \ + netbsd/NetBSDProcess.h \ + generic/hostname.h \ + generic/uname.h + +netbsd_platform_sources = \ + netbsd/Platform.c \ + netbsd/NetBSDProcessList.c \ + netbsd/NetBSDProcess.c \ + generic/hostname.c \ + generic/uname.c + +if HTOP_NETBSD +AM_LDFLAGS += -lkvm +myhtopplatheaders = $(netbsd_platform_headers) +myhtopplatsources = $(netbsd_platform_sources) +endif + # OpenBSD # ------- -- cgit v1.2.3