130 lines
2.8 KiB
Makefile
130 lines
2.8 KiB
Makefile
|
#
|
||
|
# Copyright (C) Microsoft Corporation 1990-1993. All Rights reserved.
|
||
|
#
|
||
|
# goal Create executables (default).
|
||
|
# clean Remove all files created by any goal.
|
||
|
#
|
||
|
# DEBUG =YES Create debug version and define "DEBUG" (default).
|
||
|
# =NO Create non-debug version.
|
||
|
# STRICT =YES Define STRICT
|
||
|
# = No strict definition (default).
|
||
|
|
||
|
|
||
|
LRES =.
|
||
|
ROOT =\nt\private\windows\media\avi
|
||
|
|
||
|
NAME =mciwnd
|
||
|
EXT =lib
|
||
|
OBJS =$(LOBJ)\mciwnd.obj $(LOBJ)\trackbar.obj $(LOBJ)\toolbar.obj $(LOBJ)\cutils.obj $(LOBJ)\bmpload.obj $(LOBJ)\muldiv32.obj $(LOBJ)\preview.obj
|
||
|
GOALS =$(PLIB)\$(NAME).$(EXT) $(PINC)\$(NAME).h
|
||
|
|
||
|
!if "$(NTDEBUG)" == ""
|
||
|
DEF =
|
||
|
CDEBUG =
|
||
|
L16DEBUG=
|
||
|
RDEBUG =
|
||
|
ADEBUG =
|
||
|
DEBUG =RETAIL
|
||
|
LOBJ =retail
|
||
|
!else
|
||
|
DEF =-DDEBUG
|
||
|
CDEBUG =-Zid $(DEF)
|
||
|
L16DEBUG=/CO/LI
|
||
|
RDEBUG =-v $(DEF)
|
||
|
ADEBUG =-Zi $(DEF)
|
||
|
DEBUG =DEBUG
|
||
|
LOBJ =debug
|
||
|
!endif
|
||
|
|
||
|
!if "$(STRICT)" == "YES"
|
||
|
TYPES =-DSTRICT
|
||
|
!else
|
||
|
TYPES =
|
||
|
!endif
|
||
|
|
||
|
CFLAGS =-DWIN16 -DWIN31 -DWINVER=0x30A -Asnw -Oxwti $(TYPES) $(CDEBUG) -Fo$(LOBJ)\$(@F)
|
||
|
AFLAGS =-D?MEDIUM -D?QUIET $(ADEBUG)
|
||
|
L16FLAGS=/ONERROR:NOEXE/ALIGN:16$(L16DEBUG)
|
||
|
RCFLAGS =$(RDEBUG)
|
||
|
|
||
|
IS_16 =TRUE
|
||
|
IS_SDK =TRUE
|
||
|
WANT_286 =TRUE
|
||
|
IS_PRIVATE =TRUE # temporaray until shlobj.h is added to sdk
|
||
|
|
||
|
!include $(ROOT)\bin.16\project.mk
|
||
|
|
||
|
|
||
|
$(LOBJ)\mciwnd.obj: $$(@B).c $(NAME).h
|
||
|
@$(CL) @<<
|
||
|
$(CFLAGS) -NT MCIWND $(@B).c
|
||
|
<<
|
||
|
|
||
|
$(LOBJ)\muldiv32.obj: $$(@B).asm
|
||
|
@echo $(@B).asm
|
||
|
@$(ASM) $(AFLAGS) -DSEGNAME=_MCIWND $(@B),$@;
|
||
|
|
||
|
#$(LOBJ)\muldiv32.obj: $$(@B).c $$(@B).h
|
||
|
# @$(CL) @<<
|
||
|
#$(CFLAGS) -NT MCIWND $(@B).c
|
||
|
#<<
|
||
|
|
||
|
$(LOBJ)\trackbar.obj: $$(@B).c $(NAME).h
|
||
|
@$(CL) @<<
|
||
|
$(CFLAGS) -NT MCIWND $(@B).c
|
||
|
<<
|
||
|
|
||
|
$(LOBJ)\toolbar.obj: $$(@B).c $(NAME).h
|
||
|
@$(CL) @<<
|
||
|
$(CFLAGS) -NT MCIWND $(@B).c
|
||
|
<<
|
||
|
|
||
|
$(LOBJ)\cutils.obj: $$(@B).c $(NAME).h
|
||
|
@$(CL) @<<
|
||
|
$(CFLAGS) -NT MCIWND $(@B).c
|
||
|
<<
|
||
|
|
||
|
$(LOBJ)\bmpload.obj: $$(@B).c $(NAME).h $(LOBJ)\toolbar.hex $(LOBJ)\thumb.hex
|
||
|
@$(CL) @<<
|
||
|
$(CFLAGS) -I$(LOBJ) -NT MCIWND $(@B).c
|
||
|
<<
|
||
|
|
||
|
$(LOBJ)\preview.obj: $$(@B).c $(NAME).h
|
||
|
@$(CL) @<<
|
||
|
$(CFLAGS) -NT MCIWND $(@B).c
|
||
|
<<
|
||
|
|
||
|
$(LOBJ)\toolbar.hex: $$(@B).bmp
|
||
|
bin\dos\hex $(@B).bmp >$(LOBJ)\$(@B).hex
|
||
|
|
||
|
$(LOBJ)\thumb.hex: $$(@B).bmp
|
||
|
bin\dos\hex $(@B).bmp >$(LOBJ)\$(@B).hex
|
||
|
|
||
|
movplay: makedirs $(PBIN)\movplay.exe
|
||
|
@echo ***** Finished making $(NAME) *****
|
||
|
|
||
|
$(LOBJ)\movplay.obj: movplay.c movplay.h
|
||
|
@$(CL) @<<
|
||
|
$(CFLAGS) $(@B).c
|
||
|
<<
|
||
|
|
||
|
$(LOBJ)\movplay.res: $(LRES)\$$(@B).rc $(LRES)\$$(@B).rcv \
|
||
|
movplay.h mciwnd.h \
|
||
|
$(PVER)\verinfo.h \
|
||
|
$(PVER)\verinfo.ver
|
||
|
@$(RC) $(RCFLAGS) -z -fo$@ -I$(PVER) -I$(LRES) $(LRES)\$(@B).rc
|
||
|
|
||
|
$(LOBJ)\movplay.exe: $$(@R).obj $$(@R).res $$(@B).def $(LOBJ)\$(NAME).$(EXT)
|
||
|
@$(LINK16) @<<
|
||
|
$(@R).obj,
|
||
|
$(@R).exe $(L16FLAGS),
|
||
|
$(@R).map,
|
||
|
libw slibcew commdlg mmsystem shell mciwnd,
|
||
|
$(@B).def
|
||
|
<<
|
||
|
@$(RC) $(RESFLAGS) $*.res $*.exe
|
||
|
|
||
|
$(PINC)\$(NAME).h: $(NAME).h
|
||
|
@copy $(@F) $@
|
||
|
|