############################################################################
#
# MMSys Multimedia Aware Sample Code. Multimedia Systems Group
#
#     (C) Copyright Microsoft Corp. 1991.  All rights reserved.
#
#     You have a royalty-free right to use, modify, reproduce and 
#     distribute the Sample Files (and/or any modified version) in 
#     any way you find useful, provided that you agree that 
#     Microsoft has no warranty obligations or liability for any 
#     Sample Application Files which are modified. 
#	 
#     If you did not get this from the MM Sys BBS, it may not be the
#     most current version.  This sample code in particular will be updated
#     and include more documentation.  The phone number is 206 936-4082.
#
############################################################################

!if "$(DEBUG)" == "NO"
DEF=
LOPT=
COPT=-Oxz
MOPT=
!else
DEF=-DDEBUG
LOPT=/CO
COPT=-Zi -Ows
MOPT=-Zi
!endif

CC   = cl -c -W3 -AM -G2sw -Zp $(COPT) -nologo $(DEF) -I.
MASM = masm -Mx -t -D?QUIET $(MOPT)
LINK = link $(LOPT)/NOE/NOD/LI/MAP/NOP/AL:16
RC   = rc $(DEF)

NAME= mmsys

OBJ1	= mmsys.obj mmioriff.obj
OBJ2    = 
OBJ3    = 
OBJ     = $(OBJ1) $(OBJ2) $(OBJ3)
LIBS    = 

.c.obj:
	$(CC) $*.c

.asm.obj:
	$(MASM) $*.asm;

goal: $(NAME).lib

$(NAME).lib: $(OBJ) makefile
	-del $(NAME).lib
	lib $(NAME).lib +mmsys.obj +mmioriff.obj;
	
clean:
	del $(NAME).lib
	del *.res
	del *.obj
	del *.map
	del *.sym
