# Makefile for giflib

# The name of your C compiler:
CC=

#  You may need to adjust these cc options:
CCOPTIONS=
CFLAGS= $(CDEBUGFLAGS) $(CCOPTIONS)

# Link-time cc options:
LDFLAGS= 


# miscellaneous OS-dependent stuff
# linker
LN= $(CC)
# file deletion command
RM= rm -f
# library (.a) file creation command
AR= ar rc
# second step in .a creation (use "touch" if not needed)
AR2= ranlib


# source files (independently compilable files)
SOURCES= gifcompr.c gifencod.c gifdecod.c

# compression objectfiles
OBJECTS= gifcompr.o gifencod.o gifdecod.o


all: libgifcode.a

libgifcode.a: $(OBJECTS)
	$(RM) libgifcode.a
	$(AR) libgifcode.a  $(OBJECTS)
	$(AR2) libgifcode.a

clean:
	$(RM) *.o libgifcode.a core


gifcompr.o : gifcompr.c
gifencod.o : gifencod.c
gifdecod.o : gifdecod.c
