#* *************************************************************************
#*             Copyright (c) 1993 Special Astrophisical Observatory,
#*                                         all rights reserved
#* .program  :  makefile
#* .system   :  Linux
#* .usage    :
#* .intend   :  makefile for generation all programm
#* .algorithm:
#* .call     :
#* .remarks  :   To "make" you mast log in as user that can modify MIDAS,
#* .input    :
#* .output   :
#* .author   :  Shergin V., Kniazev A., Ugrumov A.
#* $Date: 1995/01/16 09:29:45 $
#* $Revision: 1.1 $
#*********************************************************************** */
#

#include /home/midas/94NOV/local/default.mk
#include /users/midas/94NOV/local/default.mk
include /users/midas/93NOV/local/default.mk

#
#...some definitions for other program
#
#LBIN = ../../bin
#DEBUG=-g
#STRIP=size
#
#...some definitions for midas program
#
M = $(MIDASHOME)/$(MIDVERS)/stdred/exec

LLIB = -L$(LIBDIR) -lmidas

LIBS =  $(LIBDIR)/libgen.a \
	$(LIBDIR)/libmidas.a

OUT =   $(M)/save_key.exe

.DEFAULT:
	co $<

all: $(OUT)

$(M)/save_key.exe: save_key.o $(LIBS)
	su midas -c '\
	$(LDCC) $(DEBUG) save_key.o -o $@ $(LLIB) $(MLIB) $(SLIB) ; \
	$(STRIP) $@ '

write:
	ci -u $(SRC)

read:
	co $(SRC)

clear:
	rm -f *.b *.o .???*
