#P=		lp

LIBDIR= ../Lib

LIBOBJECTS=\
		$(LIBDIR)/simpinput.o \
		$(LIBDIR)/simpmain.o \
		$(LIBDIR)/simpfit.o \
		$(LIBDIR)/simpdev.o \
		$(LIBDIR)/simplib0.o

LINT=		lint -uvx 

LIBES=		-lm

#CFLAGS=		-g -O -I${LIBDIR}
CFLAGS = -Wall -ggdb -O -DOLD_TERMIOS -I$(LIBDIR)

biphasic:	biphasic.o $(LIBOBJECTS)
		cc $(CFLAGS) biphasic.o $(LIBOBJECTS) $(LIBES) -o biphasic
		size biphasic

test: biphasic 					#test.data
	biphasic -sn -dl test.data test.out
	mk.plot test.out

biphasic.o: $(LIBDIR)/simpdefs.h

$(LIBOBJECTS): $(LIBDIR)/simpdefs.h
	(cd $(LIBDIR); $(CC) $(CFLAGS) -c $< )

shar:
	shar Makefile biphasic.c test.data test.out prep 

clean:
	rm *.out *.o biphasic
