
###############################################################################
#
#	Metaware HighC
#
#	makefile for lowlevel UltraSound codec 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 $(DEBUG) -fsoft -c -I$(INCS) -O5 $&.c 
	@mv $&.obj metaware

.autodepend

all: ult16mw.lib

###############################################################################
#
# Files
#
###############################################################################
FILE01= freq16p.obj freq16r.OBJ handle16.OBJ irq16.OBJ open16.OBJ play16.OBJ sample16.OBJ util16.OBJ vars16.OBJ timer16.obj mixer16.obj probe16.obj

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

ult16mw.lib: $(FILE01)
	cd metaware
	386lib ..\ult16mw.lib @..\codec.lbc
	cd ..

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

