#
# Makefile
#
# ----------------------------------------------------------------------
# sf Firewall Software -- a TCP/IP packet filter for Linux
# Copyright (C) 1996 Robert Muchsel and Roland Schmid
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# Please address all correspondence concerning the software to 
# firewall-bugs@switch.ch.
# ----------------------------------------------------------------------
#
#


ifndef CFLAGS
CFLAGS =  -O2 -fomit-frame-pointer -Wall -Wstrict-prototypes -pipe
endif

COFLAGS = -kv
CPPFLAGS = $(DEBUG) -D__KERNEL__ -DMODULE -I$(LINUX)/include/linux -I$(LINUX)/include -I$(LINUX)

SRCS = \
	logview.c

PROGRAMS = \
	logview

all: $(PROGRAMS)

logview: logview.c
	$(CC) $(CFLAGS) -o logview logview.c
	strip logview

clean:
	rm -f core core.* *.o *.a tmp_make *~
	for i in *.c;do rm -f `basename $$i .c`.s;done
	rm -f logview

install:
	rm -f /usr/local/bin/logview 
	install -m 0700 -o root -g root logview /usr/local/bin

