#//////////////////////////////////////////////////////////////////////////
# Copyright 2001,2004 Ronald S. Burkey <info@sandroid.org>
#
# This file is part of GutenMark. 
#
# GutenMark 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.
#
# GutenMark 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 GutenMark; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# Filename:	Makefile
# Purpose:	Builds the various utility functions used to massage
#		ispell wordlists and other wordlists into the single-word-
#		per-line format (with diacritical marks) needed by 
#		GutenMark.
# Mods:		11/09/01 RSB	Began.
#		11/17/01 RSB	Added "clean" and "all" targets.
#		12/18/01 RSB	Added USGS target.
#		12/22/01 RSB	Added NIMA target.
#		01/21/04 RSB	Added the GutenSplit and GutenSplit.exe 
#				targets.  The "exe" version is intended to
#				be a Win32 program that builds on a Linux
#				system, using a Linux version of MinGW.
#				Since few people are likely to have that
#				installed, failure doesn't cause an abort.
#//////////////////////////////////////////////////////////////////////////

BINS=espa~nol_filter hk2_deutsch names_english words197 string2line \
 gztest norsk utf8 USGS NoDups NIMA GutenSplit GutenSplit.exe

default: $(BINS)

clean:
	-rm $(BINS)

all:	clean default

gztest:	gztest.c
	gcc -g -Wall -o $@ $^ -lz
	
%.exe:	%.c
	-/usr/local/cross-tools/bin/i386-mingw32msvc-gcc -O2 -Wall -o $@ $^
		
%:	%.c
	gcc -g -Wall -o $@ $^
		
	
