# raddic: a curses program for finding kanji radicals

# Copyright (C) 1996 Ben Kasmin Bullock 

# raddic 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, or (at your option) any later
# version.

# raddic 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 raddic; see the file COPYING.  If not, write to the Free
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
#  02111-1307, USA.



raddic:		raddic.o
	cc -g -o raddic raddic.o -lncurses 

raddic.o:	raddic.c kanjis
	cc -g -c raddic.c

kanjis:		kanji_sort	kanjidic
	./kanji_sort < kanjidic > /dev/null

kanji_sort:	kanji_sort.l
	flex -8 kanji_sort.l;cc -o kanji_sort lex.yy.c -lfl

clean:
	rm -f *.o a.out core *~ raddic kanjis kanji_sort tojohn lex.yy.c

tojohn:		raddic.c 	kanji_sort.l	README	makefile.john
	shar raddic.c kanji_sort.l README makefile.john > temp
	uuencode raddic < temp > tojohn
	$(RM) temp
