##############################
# Builds the example program #
##############################
CC = g++
DEBUG =
AFLAGS =
CFLAGS = $(DEBUG) -pedantic -Wall -fomit-frame-pointer -O2
LDFLAGS = $(DEBUG)
LIBS = -lgpm -lvenus

#############
# RCS files #
#############
RCS = README ste.cc
DISTFILES = Makefile mkdepend $(RCS)

#######################
# Rules to make files #
#######################
.c.o:
	$(CC) $(CFLAGS) -c $<

.cc.o:
	$(CC) $(CFLAGS) -c $<

.S.o:
	$(CC) $(AFLAGS) -c $<

##################
# Files to build #
##################
all: ste

ste: ste.o
	$(CC) $(LDFLAGS) -o ste ste.o $(LIBS)

################################
# Dummy uninstalling procedure #
################################
uninstall:

##############################
# Dummy installing procedure #
##############################
install:

.PHONY:	clean ciall coall dist

########################
# Remove garbage files #
########################
clean:
	rm -f ste *.bak *.o *~

###################
# Store revisions #
###################
ciall:
	ci Makefile $(RCS)

#####################
# Recover revisions #
#####################
coall:
	co $(RCS)

############################
# Package-making procedure #
############################
distdirx = ../$(distdir)/test

dist: $(DISTFILES)
	@for file in $(DISTFILES); do \
	  ln $$file $(distdirx) \
	    || { echo copying $$f instead; cp -p $$file $(distdirx);}; \
	done

# Automatically generated dependencies
ste.o: ste.cc
# Makefile ends here
