
# ---------------------------------------------------------------------
#
#  Makefile for MoviePlay program
#
#  Builds either movplay1 or movplay2 sample applications.
#  Use "make movplay1" or "make movplay2" to build.
#
#
#   Copyright (c) 1992, 1993 Microsoft Corporation.  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.
#
# ---------------------------------------------------------------------

GOAL : MOVPLAY1.EXE MOVPLAY2.EXE

MOVPLAY1.OBJ : MOVPLAY1.C MOVPLAY.H
 cl -c -AS -DDEBUG -DSTRICT -G2 -Zipel -W3 -WX -Od movplay1.c
MOVPLAY2.OBJ : MOVPLAY2.C MOVPLAY.H
 cl -c -AS -DDEBUG -DSTRICT -G2 -Zipel -W3 -WX -Od movplay2.c

MOVPLAY.RES : MOVPLAY.RC MOVPLAY.H
 rc -r movplay.rc 

# the main build
MOVPLAY1.EXE : MOVPLAY1.OBJ MOVPLAY.RES MOVPLAY.DEF
 link /nod /CO/LI /a:16 movplay1, movplay1.exe, nul, \
      commdlg mmsystem libw slibcew, movplay.def;
 rc movplay.res movplay1.exe 
 copy movplay1.exe ..\..\bin

MOVPLAY2.EXE : MOVPLAY2.OBJ MOVPLAY.RES MOVPLAY.DEF
 link /nod /CO/LI /a:16 movplay2, movplay2.exe, nul, \
      commdlg mmsystem libw slibcew, movplay.def;
 rc movplay.res movplay2.exe 
 copy movplay2.exe ..\..\bin

clean:
	-del *.exe
        -del *.res
        -del *.obj
        -del *.map
        -del *.sym
