#  YAC: Yet Another Caller ID Program - TiVo Listener
#  Copyright (C) 2002 Jensen Harris (jensen@sunflowerhead.com)
#  http://www.sunflowerhead.com
#
#  YAC 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.
#
#  YAC 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 YAC; if not, write to the Free Software Foundation, Inc.,
#  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
#  File: Makefile
#  Version: 0.10
#  Last Modified: 11 August 2002
#

all: xyac

CC=gcc # If you want to compile locally
INCLUDES=-I/usr/X11R6/include
LIBS=
CFLAGS=-g -Wall -O2
LFLAGS=-lxosd

xyac: xyac.o xosd.o
	$(CC) -o xyac $(LIBS) $(LFLAGS) xyac.o xosd.o

xyac.o: xyac.c xyac.h
	$(CC) -c $(INCLUDES) $(CFLAGS) xyac.c

xosd.o: xosd.c
	$(CC) -c $(INCLUDES) $(CFLAGS) xosd.c 

clean:
	rm -f xyac core *.o

install:
	cp xyac /usr/local/bin
