# makefile for ranlib
# type "make install" to make library file
# for -g option for compiling, use "make GOPT=-g ..."

SHELL = /bin/sh
DEST = .
LIBS = libran.a
CC = cc

OBJS = src/ranlib.o src/com.o linpack/linpack.o

CFLAGS = $(GOPT) -Wall 

#LINTFLAGS = -u -I$(HEAD)
#LINTLIB = -lm

SRCS =	$(OBJS:.o=.c)

alltests :
	make tstbot
	make tstgmn
	make tstmid
	

clean :
	rm -f src/*.o
	rm -f linpack/*.o
	rm -f test/*.o
	rm -f tstbot tstgmn tstmid

tstbot : test/tstbot.o $(OBJS)
	$(CC) $(CFLAGS) -L.. -I../src -o tstbot test/tstbot.o $(OBJS)
	
tstgmn : test/tstgmn.o $(OBJS)
	cc $(CFLAGS) -L.. -I../src -o tstgmn test/tstgmn.o $(OBJS)
	
tstmid : test/tstmid.o $(OBJS)
	cc $(CFLAGS) -L.. -I../src -o tstmid test/tstmid.o $(OBJS)