SRTEKLIB= ./rteklib/Rteklib.a

Rpen: Main_vplot.o Init_vplot.o proc_vplot.o dovplot.o $(SRTEKLIB) $(TSEPLIB) ./rteklib/rtekconf.c
	cc -c $(CFLAGS) rteklib/rtekconf.c
	cc $(CFLAGS) -o Rpen Main_vplot.o Init_vplot.o proc_vplot.o dovplot.o rtekconf.o $(SRTEKLIB)\
				$(GENLIB) $(UTILLIB) $(TSEPLIB) $(LIBS)
	rm -f rtekconf.o

$(SRTEKLIB): rteklib/*.c
	cd rteklib; make sep CFLAGS="${CFLAGS}"

