# squidview makefile
# For the curious, see if my code conforms to standards.
# It doesn't on Debian 3.0 or Redhat 9.0 ie no 64-bit
# long long integer in ansi c++. Remove/add some of the
# below directives as you please. I use -Wall -Werror.
#CXXFLAGS = -Wall -ansi -pedantic -Werror
CXXFLAGS =
CXX = c++
PREFIX = /usr/local
BINDIR = $(PREFIX)/bin
DATADIR = $(PREFIX)/share
DOCDIR = $(DATADIR)/doc
squidview: squidview.cpp squidview.h
$(CXX) squidview.cpp $(CXXFLAGS) -lncurses -o squidview
oldgcc: squidview.cpp squidview.h
$(CXX) squidview.cpp $(CXXFLAGS) -fhandle-exceptions -lncurses -o squidview
install:
install -d $(DESTDIR)$(BINDIR)
install squidview $(DESTDIR)$(BINDIR)