#
# Makefiel for klogconsole
#
# Author: Werner Fink <werner@suse.de>
#

CC	= gcc
ifeq ($(RPM_OPT_FLAGS),)
 CFLAGS	= $(RPM_OPT_FLAGS) -Wall
else
 CFLAGS	= -O2 -pipe -Wall
endif
INSTALL	= install

all:	klogconsole

klogconsole:	klogconsole.c
	$(CC) $(CFLAGS) -o $@ $<

clean:
	$(RM) klogconsole

install:	klogconsole klogconsole.man
	$(INSTALL) -m 0700 klogconsole     $(DEST)/usr/sbin/
	$(INSTALL) -c -m 0444 klogconsole.man $(DEST)/usr/share/man/man8/klogconsole.8
