#
#  METALBASE 5.0
#
#  Released October 1st, 1992 by Huan-Ti [ virtual!root@owlnet.rice.edu ]
#                                        [ t-richj@microsoft.com ]
#
#  Makefile for demonstration program  -- *nix expected
#
#
#  If mbase.h and stdinc.h aren't in /usr/include or /usr/local/include,
#  put them there or add -Idirectory to CFLAGS=.
CFLAGS=-I../include

all : sample bench

bench : bench.o
	cc -o bench bench.o -L../lib -lmb

bench.o : bench.c bench.h
	cc -c $(CFLAGS) bench.c

bench.h : bench.s
	../bin/build -qh bench.s


sample : sample.o
	cc -o sample sample.o -L../lib -lmb -lcurses

sample.o : sample.c sample.h sampl_fm.h
	cc -c $(CFLAGS) sample.c

sample.h : sample.s
	../bin/build -qh sample.s

sampl_fm.h : sample.frm
	../bin/form sample

