#
# Makefile for memstat for Debian GNU/Linux
# Copyright 1998, by Bernd Eckenfels <ecki@debian.org>
# This file is under the GPL.
#
CFLAGS = -g -Wall -O2
prefix = $(DESTDIR)/
exec_prefix = $(prefix)/usr

INSTALL = install
INSTALL_PROGRAM = $(INSTALL) -p -s -m  755
INSTALL_FILE    = $(INSTALL) -p    -m  644
INSTALL_DIR     = $(INSTALL) -p -d -m  755

memstat: memstat.c

clean:
	rm -f memstat.o memstat DEADJOE *~ */*~

install: memstat
	$(INSTALL_PROGRAM) memstat $(exec_prefix)/bin/memstat
	$(INSTALL_FILE) memstat.conf $(prefix)/etc

