Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
06227deb08 | ||
|
|
53ca874f25 |
51
Makefile
51
Makefile
@@ -1,29 +1,38 @@
|
||||
CFLAGS += -Wall -I/usr/X11R6/include/
|
||||
BINDIR=/usr/local/bin
|
||||
MANDIR=/usr/local/man/man1
|
||||
LDFLAGS=-L/usr/X11R6/lib -lX11 -lXt -lXaw -lXmu
|
||||
PROG= xmem
|
||||
VERSION= 1.26
|
||||
LDFLAGS+= -L/usr/X11R6/lib -lX11 -lXt -lXaw -lXmu
|
||||
CFLAGS+= -Wall -I/usr/X11R6/include/
|
||||
OBJECTS= xmem.o get_mem.o MemStripChart.o
|
||||
|
||||
xmem: xmem.o get_mem.o MemStripChart.o
|
||||
$(CC) -o xmem xmem.o get_mem.o MemStripChart.o $(LDFLAGS)
|
||||
xmem: $(OBJECTS)
|
||||
$(CC) -o xmem $(OBJECTS) $(LDFLAGS)
|
||||
|
||||
xmem.o: xmem.c
|
||||
$(CC) $(CFLAGS) -c xmem.c
|
||||
%.o: %c
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
get_mem.o: get_mem.c
|
||||
$(CC) $(CFLAGS) -c get_mem.c
|
||||
clean:
|
||||
-rm -rf $(OBJECTS) $(PROG)
|
||||
|
||||
MemStripChart.o: MemStripChart.c
|
||||
$(CC) $(CFLAGS) -c MemStripChart.c
|
||||
dist:
|
||||
mkdir -p ${PROG}-${VERSION}
|
||||
cp *.h *.c Makefile xmem.1 xmem.bit copyright XMem.ad ${PROG}-${VERSION}
|
||||
tar cfvz ${PROG}-${VERSION}.tar.gz ${PROG}-${VERSION}
|
||||
rm -rf ${PROG}-${VERSION}
|
||||
|
||||
clean:
|
||||
-rm xmem *.o *~
|
||||
dist-clean:
|
||||
-rm ${PROG}-${VERSION}.tar.gz
|
||||
|
||||
install:
|
||||
install -d -m 755 {PREFIX}/bin/
|
||||
install -c -S -s -o root -g bin -m 755 xmem ${PREFIX}/bin/xmem
|
||||
install -d -m 755 ${PREFIX}/man/man1/
|
||||
install -c -o root -g bin -m 644 xmem.1 ${PREFIX}/man/man1/xmem.1
|
||||
install -d -m 755 ${PREFIX}/lib/X11/app-defaults/
|
||||
install -c -o root -g bin -m 644 XMem.ad ${PREFIX}/lib/X11/app-defaults/XMem
|
||||
install -d -m 755 ${PREFIX}/share/${PROG}/
|
||||
install -c -o root -g bin -m 644 xmem.bit ${PREFIX}/share/${PROG}/xmem.bit
|
||||
install -c -o root -g bin -m 644 copyright ${PREFIX}/share/${PROG}/copyright
|
||||
|
||||
all: xmem
|
||||
|
||||
install: all
|
||||
/usr/bin/install -c -m 0555 xmem $(DESTDIR)$(BINDIR)
|
||||
/usr/bin/install -c -m 0444 xmem.0 $(DESTDIR)$(MANDIR)
|
||||
/usr/bin/install -c -m 0644 XMem.ad $(DESTDIR)/usr/local/lib/X11/app-defaults/XMem
|
||||
/usr/bin/install -d -m 0755 $(DESTDIR)/usr/local/share/xmem/
|
||||
/usr/bin/install -c -m 0644 xmem.bit $(DESTDIR)/usr/local/share/xmem/
|
||||
/usr/bin/install -c -m 0644 copyright $(DESTDIR)/usr/local/share/xmem/
|
||||
.include <bsd.prog.mk>
|
||||
|
||||
12
xmem.1
12
xmem.1
@@ -1,4 +1,4 @@
|
||||
.TH XMEM 1x "Release 5, X Version 11" "memory display utility"
|
||||
.TH XMEM 1 "Release 5, X Version 11" "memory display utility"
|
||||
.SH NAME
|
||||
xmem \- memory/swap usage display utility for X
|
||||
.SH SYNOPSIS
|
||||
@@ -55,15 +55,15 @@ second. The default is 10.
|
||||
(Xresource: *mem.update)
|
||||
.TP
|
||||
.B \-codecolor color
|
||||
Color for used code and stack memory. The default is red.
|
||||
Color for used code and stack memory. The default is blue.
|
||||
(Xresource: *mem.codecolor)
|
||||
.TP
|
||||
.B \-cachedcolor color
|
||||
Color for cached memory. The default is yellow.
|
||||
Color for cached memory. The default is orange.
|
||||
(Xresource: *mem.cachedcolor)
|
||||
.TP
|
||||
.B \-buffercolor color
|
||||
Color for buffer memory. The default is blue.
|
||||
Color for buffer memory. See BUGS.
|
||||
(Xresource: *mem.buffercolor)
|
||||
.TP
|
||||
.B \-freecolor color
|
||||
@@ -109,7 +109,7 @@ stored in the RESOURCE_MANAGER property.
|
||||
.SH SEE ALSO
|
||||
X(1), xrdb(1), mem(4), Athena StripChart Widget.
|
||||
.SH BUGS
|
||||
The buffer-memory is always 0.
|
||||
The buffer-memory is always 0. There is no distinction on BSDs.
|
||||
.SH COPYRIGHT
|
||||
Copyright 1988, Massachusetts Institute of Technology.
|
||||
.br
|
||||
@@ -121,4 +121,4 @@ Della Fera (MIT-Athena), and Chris Peterson (MIT-LCS).
|
||||
.P
|
||||
Updated 2007/04 by Michelle Konzack <linux4michelle@freenet.de>
|
||||
.P
|
||||
Update by Christian Barthel <bch@onfire.org>, 2017/01, OpenBSD support.
|
||||
Update by Christian Barthel <bch@onfire.org>, 2017/01, OpenBSD support.
|
||||
|
||||
Reference in New Issue
Block a user