
###############################################################################
#
#	Metaware HighC
#
#	makefile for lowlevel UltraSound utility libraries 
#
###############################################################################
#
#	This makefile will build the objects in a sub-directory metaware.
#	The libraries are built in the current directory from those objs.
#	Make sure these subdirs exist before making the particular model.
#
###############################################################################

INCS=C:\highc\inc -I..\incs
#DEBUG = -g

###############################################################################
#            Transformation rules
# Compile all .c files with the Borland C++ compiler
# SOME MODEL .............
###############################################################################
.path.obj = .\metaware

.c.obj:
	hc386 -fsoft $(DEBUG) -c -I$(INCS) -O5 $&.c 
	@mv $&.obj metaware

.autodepend

all: utilmw.lib

###############################################################################
#
# Files
#
###############################################################################
FILE01=	config.obj config16.obj utalloc.obj ualloc.obj fastkb.obj comstuff.obj

###############################################################################
# ANY MODEL .............
###############################################################################

utilmw.lib: $(FILE01)
	cd metaware
	386lib ..\utilmw.lib @..\util.lbc
	cd ..

clean:
	del ult16mw.lib
	cd metaware
	del *.obj
	cd ..

