# ----------------------------------------------------------------------
# The SINUS Firewall -- a TCP/IP packet filter for Linux
#
# Written within the SINUS project at the University of Zurich,
# SWITCH, Telekurs Payserv AG, ETH Zurich.
# originally based on the sf Firewall Software (C) 1996 by 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.
#
# SINUS Firewall resources:
# SINUS Homepage: http://www.ifi.unizh.ch/ikm/SINUS/
# Firewall Homepage: http://www.ifi.unizh.ch/ikm/SINUS/firewall.html
# Frequently asked questions: http://www.ifi.unizh.ch/ikm/SINUS/sf_faq.html
# Mailing list for comments, questions, bug reports: firewall@ifi.unizh.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

