#COPYRIGHT (C) 1999  Paolo Mantegazza (mantegazza@aero.polimi.it)
#
#This library is free software; you can redistribute it and/or
#modify it under the terms of the GNU Lesser General Public
#License as published by the Free Software Foundation; either
#version 2 of the License, or (at your option) any later version.
#
#This library 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
#Lesser General Public License for more details.
#
#You should have received a copy of the GNU Lesser General Public
#License along with this library; if not, write to the Free Software
#Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA.


all: rtai_fifos task check regression regression.o

INCLUDE= -I$(LINUX_HOME)/include -I../include

rtai_fifos: rtai_fifos.c rtai_fifos.h
	gcc ${INCLUDE}  ${CFLAGS} -o $@ $< 

task: task.c
	gcc ${INCLUDE} ${CFLAGS} -o $@ $< 

regression.o: regression.c
	gcc ${INCLUDE}  ${CFLAGS}  -o $@ $<

regression: regression.c
	gcc ${INCLUDE}  -O2 -o $@ $<

install: rtai_fifos
	cp rtai_fifos.h  ../include/rtai_fifos.h
	cp rtai_fifos  ../modules

check: check.c
	gcc ${INCLUDE} -O2 -o $@ $< 

clean:
	rm -f rtai_fifos task check regression regression.o

include ../Rules.make


