2008-02-01 21:36:15 +03:00
|
|
|
# To make GKrellM for different systems, you can simply:
|
|
|
|
# For Linux:
|
|
|
|
# make
|
|
|
|
# For FreeBSD 2.X:
|
|
|
|
# make freebsd2
|
|
|
|
# For FreeBSD 3.X or later:
|
|
|
|
# make freebsd
|
|
|
|
# For NetBSD 1.5 - 1.6.X
|
|
|
|
# make netbsd1
|
|
|
|
# For NetBSD 2.X
|
|
|
|
# make netbsd2
|
|
|
|
# For OpenBSD
|
|
|
|
# make openbsd
|
2010-09-23 19:31:24 +04:00
|
|
|
# For Darwin < 9.0 / Mac OS X < 10.4
|
|
|
|
# make darwin
|
|
|
|
# For newer Darwin systems
|
|
|
|
# make darwin9
|
|
|
|
# For Mac OS X with Quartz-based Gtk+ (experimental)
|
|
|
|
# make macosx
|
2008-02-01 21:36:15 +03:00
|
|
|
# For Solaris 2.x (8 tested so far):
|
|
|
|
# make solaris
|
|
|
|
# For libgtop if you have version 1.1.x installed:
|
|
|
|
# make gtop
|
|
|
|
# For libgtop if you have version 1.0.x installed in /usr/include & /usr/lib,
|
|
|
|
# uncomment GTOP lines below:
|
|
|
|
# make gtop1.0
|
|
|
|
# or, eg. if libgtop 1.0 is installed in /opt/gnome/include & /opt/gnome/lib
|
|
|
|
# make gtop1.0 GTOP_PREFIX=/opt/gnome
|
|
|
|
#
|
|
|
|
# Then:
|
|
|
|
# make install
|
|
|
|
# To override default install locations /usr/local/bin and /usr/local/include
|
|
|
|
# to, for example, /usr/bin and /usr/include:
|
|
|
|
# make install INSTALLDIR=/usr/bin INCLUDEDIR=/usr/include
|
|
|
|
#
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
# If you want to override the default behaviour for the above simple "make"
|
|
|
|
# steps, then uncomment and edit the appropriate lines below.
|
|
|
|
#
|
|
|
|
# Default
|
|
|
|
#--------
|
|
|
|
BINMODE = 755
|
|
|
|
|
|
|
|
# FreeBSD 2.X
|
|
|
|
#------------
|
|
|
|
#SYS_LIBS = -lkvm
|
|
|
|
#EXTRAOBJS =
|
|
|
|
#BINMODE = 4111
|
|
|
|
|
|
|
|
|
|
|
|
# FreeBSD 3.X or later
|
|
|
|
#---------------------
|
|
|
|
#SYS_LIBS = -lkvm -ldevstat
|
|
|
|
#EXTRAOBJS =
|
|
|
|
#BINMODE = 4111
|
|
|
|
|
|
|
|
# NetBSD 1.5 - 1.6.X
|
|
|
|
#------------------
|
|
|
|
#SYS_LIBS=-lkvm
|
|
|
|
#EXTRAOBJS =
|
|
|
|
#MANDIR = $(INSTALLROOT)/man/man1
|
|
|
|
|
|
|
|
# NetBSD
|
|
|
|
#------------------
|
|
|
|
#SYS_LIBS=-lkvm -lpthread
|
|
|
|
#EXTRAOBJS =
|
|
|
|
#MANDIR = $(INSTALLROOT)/man/man1
|
|
|
|
|
|
|
|
# OpenBSD
|
|
|
|
#------------------
|
|
|
|
#SYS_LIBS=-lkvm -lpthread
|
|
|
|
#EXTRAOBJS =
|
|
|
|
#BINMODE=2755
|
|
|
|
|
|
|
|
# Solaris 2.x
|
|
|
|
#------------
|
|
|
|
#SYS_LIBS = -lkstat -lkvm -ldevinfo
|
|
|
|
#EXTRAOBJS = md5c.o
|
|
|
|
#BINMODE=2755
|
|
|
|
#LOCALEDIR = /usr/local/share/locale
|
|
|
|
|
|
|
|
# "make gtop1.0" defaults. If you don't have gnome or libgtop 1.1.x
|
|
|
|
# installed, uncomment and edit these if necessary for a libgtop install.
|
|
|
|
# Or, see below about specifying them on the command line. These are not
|
|
|
|
# used if you "make gnome-gtop" or "make gtop".
|
|
|
|
#-----------------------------------
|
|
|
|
#GTOP_PREFIX = /usr
|
|
|
|
#GTOP_INCLUDE = -I$(GTOP_PREFIX)/include
|
|
|
|
#GTOP_LIBS = -L$(GTOP_PREFIX)/lib -lgtop -lgtop_common -lgtop_sysdeps -lXau
|
|
|
|
#GTOP_LIBS_D = -L$(GTOP_PREFIX)/lib -lgtop -lgtop_common -lgtop_sysdeps
|
|
|
|
#export GTOP_INCLUDE GTOP_LIBS GTOP_LIBS_D
|
|
|
|
|
2016-06-08 19:44:01 +03:00
|
|
|
VERSION = 2.3.8-pre1
|
2008-02-01 21:36:15 +03:00
|
|
|
|
|
|
|
INSTALLROOT ?= $(DESTDIR)$(PREFIX)
|
|
|
|
|
|
|
|
ifeq ($(INSTALLROOT),)
|
|
|
|
INSTALLROOT = /usr/local
|
|
|
|
endif
|
|
|
|
|
|
|
|
INSTALLDIR = $(INSTALLROOT)/bin
|
|
|
|
SINSTALLDIR ?= $(INSTALLDIR)
|
|
|
|
MANDIR ?= $(INSTALLROOT)/share/man/man1
|
|
|
|
SMANDIR ?= $(MANDIR)
|
|
|
|
MANMODE = 644
|
|
|
|
MANDIRMODE = 755
|
|
|
|
INCLUDEDIR = $(INSTALLROOT)/include
|
|
|
|
INCLUDEMODE = 644
|
|
|
|
INCLUDEDIRMODE = 755
|
2008-10-24 22:34:38 +04:00
|
|
|
INSTALL ?= $(shell which install)
|
2008-02-01 21:36:15 +03:00
|
|
|
PKGCONFIGDIR ?= $(INSTALLROOT)/lib/pkgconfig
|
|
|
|
LOCALEDIR ?= $(INSTALLROOT)/share/locale
|
|
|
|
|
|
|
|
OS_RELEASE=$(shell uname -r)
|
|
|
|
|
|
|
|
export SYS_LIBS EXTRAOBJS BINMODE
|
|
|
|
export INSTALLDIR SINSTALLDIR INCLUDEDIR INCLUDEMODE INCLUDEDIRMODE LOCALEDIR
|
|
|
|
export MANDIR SMANDIR MANDIRMODE MANMODE
|
2014-08-23 20:14:47 +04:00
|
|
|
export OS_RELEASE
|
2008-02-01 21:36:15 +03:00
|
|
|
|
|
|
|
enable_nls=1
|
|
|
|
debug=0
|
|
|
|
export enable_nls
|
|
|
|
export debug
|
|
|
|
|
2015-05-31 17:21:20 +03:00
|
|
|
GKRELLM_PC_EXTRA=
|
|
|
|
|
2008-02-01 21:36:15 +03:00
|
|
|
all gkrellm: gkrellm.pc
|
|
|
|
(cd po && ${MAKE} all)
|
|
|
|
(cd src && ${MAKE} gkrellm)
|
|
|
|
(cd server && ${MAKE} gkrellmd)
|
|
|
|
|
|
|
|
gkrellm.pc: Makefile
|
2016-07-14 21:09:30 +03:00
|
|
|
echo 'prefix=$(INSTALLROOT)' > gkrellm.pc
|
|
|
|
echo 'Name: GKrellM' >> gkrellm.pc
|
|
|
|
echo 'Description: Extensible GTK system monitoring application' >> gkrellm.pc
|
|
|
|
echo 'Version: $(VERSION)' >> gkrellm.pc
|
|
|
|
echo 'Requires: gtk+-2.0 >= 2.4.0' >> gkrellm.pc
|
|
|
|
echo 'Cflags: -I$(INCLUDEDIR)' >> gkrellm.pc
|
|
|
|
echo '$(GKRELLM_PC_EXTRA)' >> gkrellm.pc
|
2008-02-01 21:36:15 +03:00
|
|
|
|
|
|
|
install: install_gkrellm.pc
|
|
|
|
(cd po && ${MAKE} install)
|
|
|
|
(cd src && ${MAKE} install)
|
|
|
|
(cd server && ${MAKE} install)
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
(cd po && ${MAKE} uninstall)
|
|
|
|
(cd src && ${MAKE} uninstall)
|
|
|
|
(cd server && ${MAKE} uninstall)
|
|
|
|
rm -f $(PKGCONFIGDIR)/gkrellm.pc
|
|
|
|
|
2015-05-31 17:21:20 +03:00
|
|
|
install_gkrellm.pc: gkrellm.pc
|
2008-02-01 21:36:15 +03:00
|
|
|
$(INSTALL) -d $(PKGCONFIGDIR)
|
|
|
|
$(INSTALL) -m $(INCLUDEMODE) -c gkrellm.pc $(PKGCONFIGDIR)
|
|
|
|
|
2008-09-28 22:06:24 +04:00
|
|
|
install_darwin install_darwin9 install_macosx: install_gkrellm.pc
|
2008-02-01 21:36:15 +03:00
|
|
|
(cd po && ${MAKE} install)
|
|
|
|
(cd src && ${MAKE} install STRIP="")
|
|
|
|
(cd server && ${MAKE} install STRIP="")
|
|
|
|
|
|
|
|
install_freebsd: install_gkrellm.pc
|
|
|
|
(cd po && ${MAKE} install)
|
|
|
|
(cd src && ${MAKE} install_freebsd)
|
|
|
|
(cd server && ${MAKE} install_freebsd)
|
|
|
|
|
|
|
|
install_netbsd: install_gkrellm.pc
|
|
|
|
(cd po && ${MAKE} install)
|
|
|
|
(cd src && ${MAKE} install_netbsd)
|
|
|
|
(cd server && ${MAKE} install_netbsd)
|
|
|
|
|
|
|
|
install_openbsd: install_gkrellm.pc
|
|
|
|
(cd po && ${MAKE} install)
|
|
|
|
(cd src && ${MAKE} install_openbsd)
|
|
|
|
(cd server && ${MAKE} install_openbsd)
|
|
|
|
|
|
|
|
install_solaris: install_gkrellm.pc
|
|
|
|
(cd po && ${MAKE} install)
|
|
|
|
(cd src && ${MAKE} install_solaris)
|
|
|
|
(cd server && ${MAKE} install_solaris)
|
|
|
|
|
2014-09-27 18:29:25 +04:00
|
|
|
install_windows: windows install_gkrellm.pc
|
2008-10-24 22:34:38 +04:00
|
|
|
(cd po && ${MAKE} install)
|
|
|
|
(cd src && ${MAKE} install_windows)
|
|
|
|
(cd server && ${MAKE} install_windows)
|
2008-02-01 21:36:15 +03:00
|
|
|
|
|
|
|
clean:
|
|
|
|
(cd po && ${MAKE} clean)
|
|
|
|
(cd src && ${MAKE} clean)
|
|
|
|
(cd server && ${MAKE} clean)
|
|
|
|
rm -f gkrellm.pc
|
|
|
|
|
|
|
|
freebsd2: gkrellm.pc
|
|
|
|
(cd po && ${MAKE} all)
|
|
|
|
(cd src && ${MAKE} freebsd2)
|
|
|
|
(cd server && ${MAKE} \
|
|
|
|
EXTRAOBJS= SYS_LIBS="-lkvm -lmd" gkrellmd )
|
|
|
|
|
|
|
|
freebsd3 freebsd4 freebsd5 freebsd: gkrellm.pc
|
|
|
|
(cd po && ${MAKE} all)
|
|
|
|
(cd src && ${MAKE} freebsd)
|
|
|
|
(cd server && ${MAKE} \
|
|
|
|
EXTRAOBJS= SYS_LIBS="-lkvm -ldevstat -lmd" gkrellmd )
|
|
|
|
|
|
|
|
darwin: gkrellm.pc
|
|
|
|
(cd po && ${MAKE} all)
|
2010-09-23 19:31:24 +04:00
|
|
|
(cd src && ${MAKE} darwin)
|
|
|
|
(cd server && ${MAKE} darwin)
|
2008-02-01 21:36:15 +03:00
|
|
|
|
2008-09-28 22:06:24 +04:00
|
|
|
darwin9: gkrellm.pc
|
|
|
|
(cd po && ${MAKE} all)
|
2010-09-23 19:31:24 +04:00
|
|
|
(cd src && ${MAKE} darwin9)
|
|
|
|
(cd server && ${MAKE} darwin9)
|
2008-09-28 22:06:24 +04:00
|
|
|
|
2008-02-10 16:30:48 +03:00
|
|
|
macosx: gkrellm.pc
|
|
|
|
(cd po && ${MAKE} all)
|
|
|
|
(cd src && ${MAKE} macosx)
|
|
|
|
(cd server && ${MAKE} macosx)
|
|
|
|
|
2008-02-01 21:36:15 +03:00
|
|
|
netbsd1: gkrellm.pc
|
|
|
|
(cd po && ${MAKE} all)
|
2010-01-03 20:36:15 +03:00
|
|
|
(cd src && ${MAKE} netbsd1)
|
2008-02-01 21:36:15 +03:00
|
|
|
(cd server && ${MAKE} \
|
|
|
|
EXTRAOBJS= SYS_LIBS="-lkvm" gkrellmd )
|
|
|
|
|
|
|
|
netbsd2: gkrellm.pc
|
|
|
|
(cd po && ${MAKE} all)
|
2010-01-03 20:36:15 +03:00
|
|
|
(cd src && ${MAKE} netbsd2)
|
2008-02-01 21:36:15 +03:00
|
|
|
(cd server && ${MAKE} \
|
|
|
|
EXTRAOBJS= SYS_LIBS="-lkvm -pthread" gkrellmd )
|
|
|
|
|
|
|
|
openbsd: gkrellm.pc
|
|
|
|
(cd po && ${MAKE} all)
|
|
|
|
(cd src && ${MAKE} \
|
|
|
|
PTHREAD_INC=-I${PREFIX}/include EXTRAOBJS= \
|
|
|
|
SYS_LIBS="-lkvm -pthread" gkrellm )
|
|
|
|
(cd server && ${MAKE} \
|
|
|
|
PTHREAD_INC=-I${PREFIX}/include EXTRAOBJS= \
|
|
|
|
SYS_LIBS="-lkvm -pthread" gkrellmd )
|
|
|
|
|
|
|
|
solaris: gkrellm.pc
|
|
|
|
(cd po && ${MAKE} MSGFMT_OPT="-v -o" \
|
|
|
|
LOCALEDIR=/usr/local/share/locale all)
|
|
|
|
ifeq ($(OS_RELEASE),5.8)
|
|
|
|
(cd src && ${MAKE} CC=gcc \
|
|
|
|
CFLAGS="-Wno-implicit-int" \
|
|
|
|
SYS_LIBS="-lkstat -lkvm -ldevinfo -lresolv -lsocket -lX11 -lintl" \
|
|
|
|
LINK_FLAGS="" gkrellm )
|
|
|
|
(cd server && ${MAKE} CC=gcc \
|
|
|
|
CFLAGS="-Wno-implicit-int -DSOLARIS_8" \
|
|
|
|
SYS_LIBS="-lkstat -lkvm -ldevinfo -lsocket -lnsl -lintl" \
|
|
|
|
LINK_FLAGS="" gkrellmd )
|
|
|
|
else
|
|
|
|
(cd src && ${MAKE} CC=gcc \
|
|
|
|
CFLAGS="-Wno-implicit-int" \
|
|
|
|
SYS_LIBS="-lkstat -lkvm -ldevinfo -lresolv -lsocket -lX11" LINK_FLAGS="" gkrellm )
|
|
|
|
(cd server && ${MAKE} CC=gcc \
|
|
|
|
CFLAGS="-Wno-implicit-int" \
|
|
|
|
SYS_LIBS="-lkstat -lkvm -ldevinfo -lsocket -lnsl" LINK_FLAGS="" gkrellmd )
|
|
|
|
endif
|
|
|
|
|
|
|
|
gnome-gtop: gkrellm.pc
|
|
|
|
(cd po && ${MAKE} all)
|
|
|
|
(cd src && ${MAKE} GTOP_PREFIX="\`gnome-config --prefix libgtop\`" \
|
|
|
|
GTOP_INCLUDE="\`gnome-config --cflags libgtop\`" \
|
|
|
|
GTOP_LIBS="\`gnome-config --libs libgtop\`" \
|
|
|
|
SYS_LIBS= gkrellm )
|
|
|
|
(cd server && ${MAKE} GTOP_PREFIX="\`gnome-config --prefix libgtop\`" \
|
|
|
|
GTOP_INCLUDE="\`gnome-config --cflags libgtop\`" \
|
|
|
|
GTOP_LIBS_D="\`gnome-config --libs libgtop\`" \
|
|
|
|
SYS_LIBS= gkrellmd )
|
2016-07-14 21:09:30 +03:00
|
|
|
|
2008-02-01 21:36:15 +03:00
|
|
|
gtop: gkrellm.pc
|
|
|
|
(cd po && ${MAKE} all)
|
|
|
|
(cd src && ${MAKE} GTOP_INCLUDE="\`libgtop-config --cflags\`" \
|
|
|
|
GTOP_LIBS="\`libgtop-config --libs\`" \
|
|
|
|
SYS_LIBS="-lXau" gkrellm )
|
|
|
|
(cd server && ${MAKE} GTOP_INCLUDE="\`libgtop-config --cflags\`" \
|
|
|
|
GTOP_LIBS_D="\`libgtop-config --libs\`" \
|
|
|
|
SYS_LIBS= gkrellmd )
|
|
|
|
|
|
|
|
gtop1.0: gkrellm.pc
|
|
|
|
(cd po && ${MAKE} all)
|
|
|
|
(cd src && ${MAKE} gkrellm )
|
|
|
|
(cd server && ${MAKE} gkrellmd )
|
|
|
|
|
2015-05-31 17:21:20 +03:00
|
|
|
windows: GKRELLM_PC_EXTRA:=Libs: -L$${prefix}/lib -Wl,-Bstatic,-lgkrellm,-Bdynamic
|
|
|
|
windows: gkrellm.pc
|
2008-02-01 23:39:28 +03:00
|
|
|
(cd po && ${MAKE} LOCALEDIR="share/locale" all)
|
|
|
|
(cd src && ${MAKE} LOCALEDIR="share/locale" windows )
|
|
|
|
(cd server && ${MAKE} LOCALEDIR="share/locale" windows)
|
2008-02-01 21:36:15 +03:00
|
|
|
|
|
|
|
msgmerge:
|
|
|
|
(cd po && ${MAKE} messages)
|
|
|
|
(cd po && ${MAKE} merge)
|