# 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  = Plt_eca.ubv decon_bv Histo splt_irv shelp

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)

Plt_eca.ubv : plt_eca.ubv.c
	cc -O -o Plt_eca.ubv plt_eca.ubv.c -lc -lsm -lm -lsuntool \
	-lsunwindow -lpixrect -lX11

decon_bv : deconvol.f
	f77 -o decon_bv deconvol.f

Histo : histo.c
	cc -O -o Histo histo.c -lc -lsm -lm -lsuntool \
	-lsunwindow -lpixrect -lX11

splt_irv : splt_irv.c
	cc -g -o splt_irv splt_irv.c -lc -lsm -lm -lsuntool \
	-lsunwindow -lpixrect -lX11

shelp : smgo_help.c
	cc -o shelp smgo_help.c -lsuntool -lsunwindow -lpixrect -lX11 
