# Makefile for elseed
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.

all: elseed

#CC=gcc # If you want to compile locally
CC=/usr/local/tivo/bin/gcc # To compule on the tivo w/ gcc cross-compiler
INCLUDES=
LIBS=
CFLAGS=-g -Wall -O2
#LFLAGS=     # Use this if you have the hack/libs already installed
LFLAGS= -static 

elseed: elseed.o osd.o
	$(CC) -o elseed $(LIBS) $(LFLAGS) elseed.o osd.o

elseed.o: elseed.c elseed.h
	$(CC) -c $(INCLUDES) $(CFLAGS) elseed.c
        
osd.o: osd.c osd.h font.h
	$(CC) -c $(INCLUDES) $(CFLAGS) osd.c

clean:
	rm -f elseed core *.o

install:
	strip elseed
