# Makefile for G-Stat

CC     = cc
CFLAGS = -O
LIBS   = 
DEFS   = 
 
# The following should be changed to the final name of the binary
TARGET = gstat
 
HDRS = gstat.h 
SRCS = gstat.c 
OBJS = gstat.o 

$(TARGET): $(OBJS) $(SRCS) $(HDRS)
	$(CC) $(CFLAGS) $(DEFS) $(OBJS) -o $(TARGET) $(LIBS)

gstat.o: gstat.c gstat.h 
	$(CC) $(CFLAGS) -c $(DEFS) gstat.c

clean: $(OBJS)
	rm -f $(OBJS)

lint: 
	lint $(SRCS) > $(TARGET).lint

listing:
	pr -n $(SRCS) | lpr
