# Least Mean Square (LMS) and Recursive Least Squares (RLS) adaptive FIR filter demo

# Copyright (C) 2001-2002 Andrew Rogers

# 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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */

all:	LMS_Demo RLS_Demo

LMS_Demo: LMSmain.o mplot.o fir.o lms.o
	g++ -L/usr/lib/qt2/lib -lqt2 -o LMS_Demo LMSmain.o fir.o lms.o mplot.o

RLS_Demo: RLSmain.o mplot.o fir.o rls.o
	g++ -L/usr/lib/qt2/lib -lqt2 -o RLS_Demo RLSmain.o fir.o rls.o mplot.o

LMSmain.o: LMSmain.cpp mplot.h
	g++ -c -I/usr/lib/qt2/include LMSmain.cpp

RLSmain.o: RLSmain.cpp mplot.h
	g++ -c -I/usr/lib/qt2/include RLSmain.cpp

fir.o:  fir.cpp fir.h
	g++ -c -I/usr/lib/qt2/include fir.cpp

lms.o:  lms.cpp lms.h
	g++ -c -I/usr/lib/qt2/include lms.cpp

rls.o:  rls.cpp rls.h
	g++ -c -I/usr/lib/qt2/include rls.cpp

mplot.o: mplot.cpp mplot.moc
	g++ -c -I/usr/lib/qt2/include mplot.cpp

mplot.moc: mplot.h
	moc2 mplot.h -o mplot.moc

clean:
	rm RLSmain.o LMSmain.o mplot.moc mplot.o fir.o lms.o rls.o LMS_Demo RLS_Demo
