# $Id: Makefile.cpp,v 1.1 1992/11/06 06:33:49 kadhim Exp $
# Digit calculator example

SHELL	= /bin/sh
CFLAGS	=

# Location of the master cache
DESTDIR = ../../..

SPECS	= c--lint.specs c--lint.fw cminus.fwi report.head

EXTRAS	= derive input

TIDY	= ERRS a.out core *.o *.a ELI pcode
CLEAN	= $(TIDY) *.exe

all:	ELI $(SPECS) $(EXTRAS)
	if test '$(DESTDIR)' = ''; 	then (DUMPCORE=yes ../../../bin/eli -c ELI <derive); 	else (DUMPCORE=yes $(DESTDIR)/bin/eli -c ELI <derive); 	fi

install:
	@for f in $(SPECS) $(EXTRAS) Makefile; do 		echo install -c -m 644 $$f $(DESTDIR)/Tool/examples/fw ; 		rm -f $(DESTDIR)/Tool/examples/fw/$$f; 		cp $$f $(DESTDIR)/Tool/examples/fw ; 		chmod 644 $(DESTDIR)/Tool/examples/fw/$$f; 		done

executable:
	rm -rf $(CLEAN) Makefile.cpp

tidy:
	rm -rf $(TIDY)

clean:
	rm -rf $(CLEAN)

ELI:
	if test '$(DESTDIR)' = ''; 	then ../../../bin/eli -c ../../.. -n ELI -q; 	else $(DESTDIR)/bin/eli -c $(DESTDIR) -n ELI -q; 	fi

