#
# This is the make file for the lib subdirectory of the GIF library
# In order to run it gcc is assumed to be available.
#
#				Gershon Elber, Jun 1989
#

# Your C compiler
CC = cc

# Where all the include files are:
INC = -I.

#
# These are the flags for gcc, in BSD4.3 or Sun O.S. 4.0.3
#
# If your system has all function prototypes for gcc, replace all
# the -Wxxx with -Wall. I can not add -Wimplicit as my system uses old cc
# h files.
#
#FLAGS = -O -c -W -Wreturn-type -Wcomment
#FLAGS = -g -pg -c -W -Wreturn-type -Wcomment

#
# These are the flags for cc on SGI iris4d. O.S. IRIX 3.2
#
#FLAGS = -O -c -DSYSV -DNO_VOID_PTR -DUSE_VARARGS -Olimit 1000 -Wf,-XNh5000 -Wf,-XNd5000 -G 4
FLAGS = -g -p -c -DSYSV -DNO_VOID_PTR -DUSE_VARARGS -Olimit 1000 -Wf,-XNh5000 -Wf,-XNd5000 -G 4

OBJS = dev2gif.o egif_lib.o dgif_lib.o gif_hash.o gif_err.o quantize.o getarg.o

.c.o:
	$(CC) $(INC) $(FLAGS) $<

libgif.a: $(OBJS)
	rm -f libgif.a
	ar rcv libgif.a *.o
	ranlib libgif.a

dev2gif.o: gif_lib.h
egif_lib.o: gif_lib.h gif_hash.h
dgif_lib.o: gif_lib.h gif_hash.h
gif_hash.o: gif_lib.h gif_hash.h
gif_err.o: gif_lib.h
quantize.o: gif_lib.h
getarg.o: getarg.h
