# Makefile -- makefile for tosh_fan
#
# Copyright (c) 1998, Kenneth W. Sodemann (stufflehead@bigfoot.com)
# 
# $Log: Makefile,v $
# Revision 1.3  1998/07/25 22:23:42  kwsodema
# Made specific targets for each .o file so the proper stuff
# gets rebuilt when there are header file changes.
#
# Revision 1.2  1998/07/22 19:19:50  kwsodema
# Added more object files.
#
# Revision 1.1  1998/07/21 02:57:40  kwsodema
# Initial revision
#
#
# 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, 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.
#

VERSION=0.1

CC = gcc
CFLAGS = -Wall -O3 -m486
LDFLAGS = -s
OBJS = tosh_fan.o fan_util.o msgs.o parse.o

msgs.o: msgs.c msgs.h common.h
	$(CC) $(CFLAGS) -c msgs.c

fan_util.o: fan_util.c common.h
	$(CC) $(CFLAGS) -c fan_util.c

parse.o: parse.c parse.h msgs.h
	$(CC) $(CFLAGS) -c parse.c

tosh_fan.o: tosh_fan.c common.h msgs.h fan_util.h parse.h
	$(CC) $(CFLAGS) -c tosh_fan.c

tosh_fan: $(OBJS)
	$(CC) $(LDFLAGS) -o $@ $(OBJS)

.PHONY : clean
clean:
	rm -f $(OBJS) tosh_fan core
