#
#	Makefile - Stallion driver and utilities makefile.
#
#	Copyright (C) 1994-1996  Greg Ungerer (gerg@stallion.oz.au).
#
#	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., 675 Mass Ave, Cambridge, MA 02139, USA.
#

CFLAGS = -O
DEBUG =
LDFLAGS	=
INCLUDE	=
HEADERS = stallion.h istallion.h cd1400.h cdk.h comstats.h

MCFLAGS = -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -m486
MODULES = stallion istallion


all: compile

compile: stlload stlstty

stlload: stlload.c $(HEADERS)
	$(CC) $(CFLAGS) -o stlload stlload.c

stlstty: stlstty.c $(HEADERS)
	$(CC) $(CFLAGS) -o stlstty stlstty.c

stlstats: stlstats.c $(HEADERS)
	$(CC) $(CFLAGS) -I/usr/include/ncurses -o stlstats stlstats.c -lncurses

stlshow: stlshow.c $(HEADERS)
	$(CC) $(CFLAGS) -o stlshow stlshow.c

cdkmap: cdkmap.c $(HEADERS)
	$(CC) $(CFLAGS) -o cdkmap cdkmap.c

module: $(MODULES)

modules: module

stallion: stallion.c $(HEADERS)
	$(CC) $(MCFLAGS) $(DEBUG) -c -o stallion stallion.c

istallion: istallion.c $(HEADERS)
	$(CC) $(MCFLAGS) $(DEBUG) -c -o istallion istallion.c

depend:

clean:
	@rm -f *.o

clobber: clean
	@rm -f stlload stlstty stlstats stlshow
	@rm -f $(MODULES)

