#
# Example makefile showing how .m files can be
# compiled and linked with C++ code.
#
# This example for Borland C++ 4.5 make.
# To create magic.exe, run make.
#

CC      = bcc
CCFLAGS = -x- -ml -A -WE mlibbc4w.lib
H       = magic.h
O       = magic.obj magicsum.obj
E       = magic.exe

.cpp.obj:
	$(CC) -c $(CCFLAGS) $<

.m.cpp:
	mat2cpp $< $@ $(H) noecho


$(E): $(O)
        $(CC) $(CCFLAGS) $(O)
