SRC=	 sisprint.c multiplot.c
SCRIPTS= addline xvector
EXE=	 $(SCRIPTS) sisprint multiplot
CFLAGS= $(OPTFLAGS) -D$(MACHINE) -D$(OS)

FILES= Makefile visualize.1 $(SRC) $(SCRIPTS)

#------------------------------------------------------------
all: $(EXE)

sisprint: sisprint.c
	$(CC) $(CFLAGS) -o sisprint sisprint.c
multiplot: multiplot.c
	$(CC) $(CFLAGS) -o multiplot multiplot.c
# ------------------------------------------------------------
lint:
	cat /dev/null > lint.out
	for s in $(SRC); do lint $$s >> lint.out; done

clean:
	-@ls $(FILES) > KeepList
	-@/bin/rm `ls | fgrep -v -x -f KeepList`

install: $(EXE)
	@if ( test "$(REL)" != "" ) then \
	cp $(EXE) $(REL)/bin; \
	cp visualize.1 $(REL)/man; \
	else echo No release directory; fi
#
