CC = gcc
CFLAGS = -I./.. -O6 -fno-strength-reduce -Wall

# If your root area has a name other that root, say it in the next line
#ROOT = guru

# If your root group is other than root tell that in the next line
#RGROUP = root


ifndef ROOT
   ROOT = root
endif

ifndef RGROUP
   RGROUP = root
endif

all:	gifscan

gifscan: gifscan.o gifs.o
	$(CC) $(CFLAGS) gifscan.o gifs.o -o $@ -lvga
	su $(ROOT) -c "chown $(ROOT) $@; chmod 4755 $@"

gifscan.o: gifscan.c  gifs.h
	$(CC) $(CFLAGS) -c gifscan.c 

gifs.o: gifs.c
	$(CC) $(CFLAGS) -c gifs.c 

clean:
	-rm -f *.o *~

