CC = /usr/local/tivo/bin/gcc CFLAGS = -Wall -O2 -DTIVO -s LFLAGS = -I/usr/local/tivo/include/ -L/usr/local/tivo/lib/ all: bsearch get_space get_space: get_space.c $(CC) $(CFLAGS) -o get_space get_space.c $(LFLAGS) bsearch: bsearch.o memrchr.o $(CC) $(CFLAGS) -o bsearch bsearch.o memrchr.o $(LFLAGS) bsearch.o: bsearch.c $(CC) $(CFLAGS) -c bsearch.c memrchr.o: memrchr.c $(CC) $(CFLAGS) -c memrchr.c clean: rm bsearch bsearch.o memrchr.o get_space