################################################################################
# Makefile for the webcounter
################################################################################
## You may need to change CC to your C compiler and any flags
## you may require.
## NOTE: requires an ANSI C compiler
################################################################################
CC=gcc
CFLAGS=-O -I./gd1.2/
LIBS=-L./gd1.2/ -lgd -lm

all: count

gd1.2/libgd.a:
	(cd gd1.2; make CC=$(CC))

count: count.o ./gd1.2/libgd.a
	$(CC) count.o -o count  $(LIBS)

clean:
	rm -f *.o *.a
	@(cd gd1.2; make clean)

clobber: clean
	rm -f count

