# makefile for SOUND.LIB and SNDTEST
#
# Run 'make' to make the sound library, then
#     'make sndtest'  to make the demo program

MODEL     = l
CC        = bcc
CFLAGS    = -m$(MODEL)
ASM       = tasm
ASMFLAGS  = -ml
LIBRARIAN = tlib

sound.lib: sound.obj checkit.obj
	# Don't worry about warnings from the following line
	$(LIBRARIAN) sound.lib +sound.obj +checkit.obj # make sure they're in!
	$(LIBRARIAN) sound.lib +-sound.obj +-checkit.obj

sndtest: sndtest.obj
	$(CC) -m$(MODEL) sndtest.obj sound.lib

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

.asm.obj:
	$(ASM) $(ASMFLAGS) $<

sndtest.obj	: sndtest.cpp sound.h 
sound.obj	: sound.cpp sound.h
checkit.obj	: checkit.asm

