#	Makefile.
#	Author:	Dmitri Tikhonv
#	E-mail:	dxt2431@mhz.njit.edu
#
#
#    Copyright (C) 1999 Dmitri Tikhonov 
#
#    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.

tree:	tree.o sort.o insert.o color.o filetest.o option.o help.o version.o\
		classify.o colors.h action.h
	gcc -O2 -o tree tree.o sort.o insert.o color.o filetest.o option.o \
		help.o version.o classify.o

classify.o:	classify.c classify.h
	gcc -O2 -c classify.c

version.o:	version.c version.h
	gcc -O2 -c version.c

help.o:	help.c
	gcc -O2 -c help.c

option.o:	option.c option.h default.h
	gcc -O2 -c option.c

color.o:	color.c colors.h
	gcc -O2 -c color.c

filetest.o:	filetest.c
	gcc -O2 -c filetest.c

insert.o:	insert.c action.h
	gcc -O2 -c insert.c

tree.o:	tree.c
	gcc -O2 -c tree.c

sort.o:	sort.c
	gcc -O2 -c sort.c

clean:	
	rm -vf *.o tree
