

# Makefile for simple persistent counter example.  Relevant files are:
#    counter.e:  contains the persistent counter
#    count.e:    prints the counter and increments it
#    reset.e:    resets the counter to zero
CC=../../bin/eg++

all:		reset count

reset:		reset.o counter.o
		$(CC) -o reset reset.o counter.o

count:		count.o counter.o
		$(CC) -o count count.o counter.o

counter.o:	counter.e
		$(CC) -c counter.e

reset.o:	reset.e
		$(CC) -c reset.e

count.o:	count.e
		$(CC) -c count.e
