#
#	FarSync WAN driver for Linux
#
#	Actually sync driver for X.21, V.35 and V.24 on FarSync T-series cards
#
#	Copyright 2001 FarSite Communications Ltd.
#	www.farsite.co.uk
#
#	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.
#
#	File:   Makefile
#	Author:	R.J.Dunlop	<bob.dunlop@farsite.co.uk>
#
#	Revision History
#	$Log: Makefile,v $
#	Revision 1.2  2009/07/10 08:23:25  kevinc
#	Merging 1.09.04 and async branches
#	
#	Revision 1.1.1.1  2009/05/06 12:45:30  kevinc
#	
#

# Always fix all warning. That way you'll see the important one when it comes
# along.
CFLAGS := -Wall -Wstrict-prototypes -I../includes

# Target if one isn't supplied
all:	farutil fartest fardsl fardsltest farmon

# Farutil with additional "generic HDLC" driver support.
# Only compile on systems with the "generic HDLC" kernel patch installed
# because you need the updated kernel headers.
farhdlc:	farutil.c
	cc -o farhdlc -DGEN_HDLC=1 ${CFLAGS} -I/usr/src/linux/include farutil.c

# Simple loopback test program.
# Actually the main purpose is to provide a working example of using a
# raw packet interface
fartest:	fartest.c
	cc -o fartest ${CFLAGS} fartest.c
farmon:		farmon.c
	cc -o farmon ${CFLAGS} farmon.c
#shdsl utility
fardsl:		fardsl.c
	cc -o fardsl ${CFLAGS} fardsl.c

#shdsl test utility
fardsltest:	fardsltest.c
	cc -o fardsltest ${CFLAGS} fardsltest.c

clean:
	rm -f *.o fartest farutil farhdlc fardsl fardsltest farmon
