# Copyright (C) 1993 Evan Harris
#
# Permission is granted to freely redistribute and modify this code,
# providing the author(s) get credit for having written it.

# The installation directory.
BIN=	/usr/local/bin

# See the README for a description of these options.
#OPTIONS= -DTESTMODE=G640x480x32K -DNO_32K_CASCADE
OPTIONS=

# These may be changed, if desired.

CC=	gcc
CCOPTS=	-O2 -m486 -Wall

# Editing of the rest of this Makefile shouldn't be necessary.

CFLAGS=	$(CCOPTS) $(OPTIONS) -Ijpeglib
LIBS=	-lvga -Ljpeglib -ljpeg

SEEJPEG=	seejpeg.o jpeg.o image.o display.o cmap.o

seejpeg:	$(SEEJPEG)
		$(CC) $(CFLAGS) -o $@ $(SEEJPEG) $(LDOPTS) $(LIBS)

install:	seejpeg
		install -s -o root -g bin -m 4711 seejpeg $(BIN)

clean:
		rm -f *.o *~ core seejpeg

seejpeg.o:	seejpeg.h
jpeg.o:		seejpeg.h
image.o:	seejpeg.h
display.o:	seejpeg.h
cmap.o:		seejpeg.h
