# Make

### Rules for Creations
SHELL=/bin/sh
.SUFFIXES: 
.SUFFIXES: .c .f .Z

.Z:
	uncompress -v $@

.f: 
	f77 $< -o $@
	strip $@

.c: 
	cc $< -o $@ 
	strip $@


BINDIR = ../`uname -m`
PROGS  = ajzero b2v1_bvj b2v1j bvg_bvj bvj_b2v1 cinte cintg encol \
	 fparam gen_par lynga notab param pipe_read test_LCUT

all: $(PROGS)

install: $(PROGS)
	d=../`uname -m`; \
	if [ ! -d $$d ] ; then mkdir $$d ; else echo exists $$d ; fi ; \
	mv $(PROGS) $$d

clean:
	rm -f $(PROGS)

fparam : fparam.c routine.c
	cc -o fparam fparam.c routine.c
	strip

lynga : lynga.c
	cc -o lynga lynga.c -lm
	strip

maj : maj.c maj.h
	cc -o maj maj.c -lcurses -ltermcap
	strip maj 

diaphot : diaphot.c diaphot.h
	cc -o diaphot diaphot.c -lcurses -ltermcap
	strip diaphot

param : param.c routine.c
	cc -o param param.c routine.c
	strip

test_LCUT : test_env.c
	cc -o test_LCUT test_env.c
	strip test_LCUT

