1# 2# This program is free software; you can redistribute it and/or modify 3# it under the terms of the GNU General Public License as published by 4# Free Software Foundation; either version 2 of the License, or 5# (at your option) any later version. 6# 7# This program is distributed in the hope that it will be useful, 8# but WITHOUT ANY WARRANTY; without even the implied warranty of 9# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10# GNU General Public License for more details. 11# 12# You should have received a copy of the GNU General Public License along 13# with this program; if not, write to the Free Software Foundation, Inc., 14# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 15# 16# (C) Copyright Phil Dibowitz 2007 17# 18 19PREFIX?=/usr 20BIN=bin 21BINDIR=$(PREFIX)/$(BIN) 22INSTALL?=/usr/bin/install 23STRIP?=/usr/bin/strip 24MAN?=$(PREFIX)/share/man 25 26CXX?= g++ 27CXXFLAGS?= -g -Wall -O2 28CXXFILES?= consnoop.cpp 29LIBS?= 30CPPFLAGS?= 31 32all: consnoop 33 34consnoop: $(CXXFILES) 35 $(CXX) $(CXXFLAGS) $(CXXFILES) -o consnoop $(CPPFLAGS) 36 37install: consnoop 38 $(INSTALL) -m 0755 consnoop $(BINDIR) 39 40 41clean: 42 /bin/rm -f consnoop 43 44