#This makefile should suffice on most Unix systems. For other systems,
#you may well need to rewrite it. 

CC=gcc 
CFLAGS=-O
LIBS=-L./ -lgd -lm

all: libgd.a

libgd.a: gd.o gdfontl.o gdfonts.o gd.h gdfonts.h gdfontl.h
	rm -f libgd.a
	$(AR) -rc libgd.a gd.o gdfontl.o gdfonts.o
	$(RANLIB) libgd.a

clean:
	rm -f *.o *.a gddemo giftogd 

