Yet Another Micro Monitor %n yamm %v 2.5.2 %c * %l * %b * %d * %f hplda1.unipv.it:/pub/linux/Local-Soft %t yamm-2.5.2.tar.gz %w usr.bin %% # Copyright 1994 Rickard E. Faith, Kevin E. Martin, and Doug L. Hoffman # All rights reserved. # See the BOGUS.LICENSE file for distribution restrictions. %setup patch -p1 -s << 'EOF_MARKER' && --- yamm-2.5.2/src/Makefile.std.rik Wed Sep 7 10:51:12 1994 +++ yamm-2.5.2/src/Makefile.std Sat Sep 10 15:47:24 1994 @@ -77,8 +77,8 @@ # PSTATS is a list of all the pstat.c.OS PSTATS = pstat.c.HPUX pstat.c.linux -BINDIR = /usr/local/bin -MANDIR = /usr/local/man/man1 +BINDIR = /usr/bin +MANDIR = /usr/man/man1 #------------------------------------------------------------------------------- # HP-UX @@ -125,19 +125,19 @@ #------------------------------------------------------------------------------- # # Uncomment these: -# TARGETSYS = linux +TARGETSYS = linux # Don't use the module -# MODULE = -# SYSDEFINES = -D__KERNEL__ -DSTRFY +MODULE = +SYSDEFINES = -D__KERNEL__ -DSTRFY # Use the module # MODULE = drv_yamm.o # SYSDEFINES = -DMOD -D__KERNEL__ # # With curses: -# DEFINES = -DOWN_WINCH -# LIBS = -lcurses -ltermcap -# NCURSESH = -# NCURSESD = +DEFINES = -DOWN_WINCH +LIBS = -lcurses -ltermcap +NCURSESH = +NCURSESD = # # With ncurses: # DEFINES = -DFGC=COLOR_GREEN -DBGC=COLOR_BLACK -DOWN_WINCH -DNCURSES @@ -162,8 +162,8 @@ # debugging support e.g. -g) # # Maximum optimization -# CCFLAGS = -O2 -fomit-frame-pointer -N $(DEFINES) $(SYSDEFINES) -I$(NCURSESD) -# LDFLAGS = -N -O2 -s +CCFLAGS = -O2 -m486 -fomit-frame-pointer -N $(DEFINES) $(SYSDEFINES) +LDFLAGS = -O2 -m486 -s # LDFLAGS = -N -O2 -s -static # # Code profiling with gprof @@ -181,7 +181,7 @@ # CFLAGS = $(CCFLAGS) -I../include -INCLUDES = define.h extern.h fakestat.h $(NCURSESH) +INCLUDES = ../include/define.h ../include/extern.h ../include/fakestat.h $(NCURSESH) SRC = get_user.c main.c start_time.c user_time.c get_status.c conf.c\ mpreprocess.c curses.c comp_dim.c var.c get_tty.c vm.c comp_sc.c\ EOF_MARKER cd src cp Makefile.std Makefile mv conf/pstat.* . make %doc ../README-2.5.2 ../docs/COPYING ../docs/CREDITS * make install %% * usr/bin/yamm * usr/man/man1/yamm.1