--- mstools/samples/deb/makefile 2018/08/09 18:20:39 1.1 +++ mstools/samples/deb/makefile 2018/08/09 18:23:33 1.1.1.3 @@ -1,67 +1,69 @@ +# ------------------------------------------------------------------------- # -# Nmake macros for building the Windows 32-Bit -# Debug Event Browser Application +# Microsoft Developer Support +# Copyright (c) 1992, 1993 Microsoft Corporation # -!include +# ------------------------------------------------------------------------- +# MODULE : MakeFile +# PURPOSE : Nmake macros for building the Windows 32-Bit Debug Event +# Browser Application +# ------------------------------------------------------------------------- + +# Nmake macros for building Windows 32-Bit apps +!include # macro defines -PROJ=DEB -DLL=ToolBar -OBJ1=DEBMain -OBJ2=DEBDebug -OBJ3=DEBMisc -OBJ4=LinkList -OBJS=$(OBJ1).obj $(OBJ2).obj $(OBJ3).obj $(OBJ4).obj - -# This line allows NMAKE to work as well -all: $(PROJ).exe $(DLL).dll $(PROJ).hlp - -# Update the online help file if necessary. -$(PROJ).hlp: $(PROJ).hpj $(PROJ).rtf - @if exist $(PROJ).PH del $(PROJ).PH - if $(CPU)==i386 hc $(PROJ).hpj +OBJS=DEBMain.Obj DEBDebug.Obj DEBMisc.Obj LinkList.Obj + +# target list +all: DEB.Exe ToolBar.Dll DEB.Hlp + +# Update the onlink help file if necessary. +DEB.Hlp: DEB.Hpj DEB.Rtf + @if exist DEB.Ph del DEB.Ph + $(hc) -n DEB.Hpj # Update the object files if necessary -$(OBJ1).obj: $(OBJ1).c $(OBJ1).h $(OBJ4).h $(DLL).h $(PROJ).h - $(cc) $(cflags) $(cvars) $(OBJ1).c +DEBMain.Obj: DEBMain.C DEBMain.H DEBDebug.H DEBMisc.H LinkList.H DEB.H + $(cc) $(cdebug) $(cflags) $(cvarsdll) DEBMain.C -$(OBJ2).obj: $(OBJ2).c $(OBJ2).h $(OBJ1).h $(PROJ).h - $(cc) $(cflags) $(cvars) $(OBJ2).c +DEBDebug.Obj: DEBDebug.C DEBDebug.H DEBMisc.H LinkList.H DEB.H + $(cc) $(cdebug) $(cflags) $(cvarsdll) DEBDebug.C -$(OBJ3).obj: $(OBJ3).c $(OBJ3).h $(OBJ1).h $(PROJ).h - $(cc) $(cflags) $(cvars) $(OBJ3).c +DEBMisc.Obj: DEBMisc.C DEBMisc.H LinkList.H ToolBar.H DEB.H + $(cc) $(cdebug) $(cflags) $(cvarsdll) DEBMisc.C -$(OBJ4).obj: $(OBJ4).c $(OBJ4).h - $(cc) $(cflags) $(cvars) $(OBJ4).c +LinkList.Obj: LinkList.C LinkList.H + $(cc) $(cdebug) $(cflags) $(cvarsdll) LinkList.C -$(DLL).obj: $(DLL).c $(DLL).h - $(cc) $(cflags) $(cvars) $(DLL).c +ToolBar.Obj: ToolBar.C ToolBar.H + $(cc) $(cdebug) $(cflags) $(cvarsdll) ToolBar.C # Update the resource if necessary -$(PROJ).res: $(PROJ).rc $(PROJ).dlg $(PROJ).h - rc -r -fo $(PROJ).res $(PROJ).rc - cvtres -$(CPU) $(PROJ).res -o res.res +DEB.Res: DEB.Rc DEB.Dlg DEB.H + $(rc) $(rcvars) -r -fo DEB.Res DEB.Rc + $(cvtres) -$(CPU) DEB.Res -o DEB.Rbj # Update the import library -$(DLL).lib: $(DLL).obj $(DLL).def - lib -machine:$(CPU) \ - -def:$(DLL).def \ - -out:$(DLL).lib +ToolBar.Lib: ToolBar.Obj ToolBar.Def + $(implib)\ + -machine:$(CPU)\ + -def:ToolBar.Def\ + -out:ToolBar.Lib # Update the dynamic link library -$(DLL).dll: $(DLL).obj $(DLL).def - $(link) \ - -base:0x1C000000 \ - -dll \ - -entry:LibMain \ - -out:$(DLL).dll \ - $(DLL).exp $(DLL).obj $(guilibs) - -# Update the OBJ1cutable file if necessary. -# If so, add the resource back in. -$(PROJ).exe: $(OBJS) $(PROJ).res $(PROJ).def $(DLL).lib - $(cvtobj) $(cvtdebug) *.obj - $(link) $(guiflags) \ - -out:$(PROJ).exe \ - $(OBJS) $(DLL).lib res.res \ - $(guilibs) +ToolBar.Dll: ToolBar.Obj ToolBar.Lib + $(link) $(ldebug) $(guilflags)\ + -base:0x1C000000\ + -dll\ + -entry:_DllMainCRTStartup$(DLLENTRY)\ + -out:ToolBar.Dll\ + ToolBar.Obj ToolBar.Exp\ + $(guilibsdll) + +# Update the Executable file if necessary. +DEB.Exe: $(OBJS) DEB.Res DEB.Def ToolBar.Lib + $(link) $(ldebug) $(guilflags)\ + -out:DEB.Exe\ + $(OBJS) ToolBar.Lib DEB.Rbj\ + $(guilibsdll)