CC = gcc           # which compiler to use
CFLAGS = -O2 -Igd1.2      # options, e.g. for optimisation or ANSI compilation
LIBS = -lm -Lgd1.2 -lgd   # extra libraries needed: Solaris 2 needs LIBS = -lnsl;
                   # SCO Unix needs LIBS = -lsocket
all: prostat

prostat: alias.o hash.o init.o output.o sscanf.o utilities.o prostat.o analhead.h   analhead2.h
	$(CC) alias.o hash.o init.o output.o sscanf.o utilities.o prostat.o -o prostat $(LIBS)

clean:
	rm -f prostat *.o a.out core

force:
	touch $(SOURCES)
	make $(PROGRAM) 'CFLAGS=$(CFLAGS)' 'LIBS=$(LIBS)' CC=$(CC)

lint:
	lint $(SOURCES) $(LIBS) | $(PAGER)

