#
# 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
#

#
# Where all the include files are:
INCS = -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.
#
# CC = gcc
#
# CFLAGS = -O -c -W -Wreturn-type -Wcomment
# CFLAGS = -g -pg -c -W -Wreturn-type -Wcomment
#
# for sun 4 (gunnars@ifi.uib.no). Tested using gcc 1.39.
#
# CFLAGS = -O -c -sun4 -W -Wreturn-type -Wcomment -DUSE_VARARGS
# CFLAGS = -g -c -sun4 -W -Wreturn-type -Wcomment -DUSE_VARARGS
#
# These are the flags for gcc on MINGW
#
CC = gcc
#
# CFLAGS = -g -p -c -O3 -Wall
CFLAGS = -O3 -Wall -c


OBJS = egif_lib.o dgif_lib.o gif_hash.o gif_err.o layer.o
#    quantize.o qprintf.o getarg.o

.c.o:
	$(CC) $(INCS) $(DEVS) $(CFLAGS) $<

libgif.a: $(OBJS)
	rm -f libgif.a
	ar rsv libgif.a *.o

egif_lib.o: egif_lib.c gif_lib.h
dgif_lib.o: dgif_lib.c gif_lib.h
gif_hash.o: gif_hash.c gif_lib.h
gif_err.o : gif_err.c  gif_lib.h
layer.o   : layer.c    gif_lib.h
