--- mstools/samples/deb/makefile 2018/08/09 18:20:39 1.1 +++ mstools/samples/deb/makefile 2018/08/09 18:21:30 1.1.1.2 @@ -1,7 +1,13 @@ +# ------------------------------------------------------------------------- # -# Nmake macros for building the Windows 32-Bit -# Debug Event Browser Application +# Microsoft Developer Support +# Copyright (c) 1992 Microsoft Corporation # +# ------------------------------------------------------------------------- +# MODULE : MakeFile +# PURPOSE : Nmake macros for building the Windows 32-Bit Debug Event +# Browser Application +# ------------------------------------------------------------------------- !include # macro defines @@ -13,34 +19,33 @@ 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 + hc $(PROJ).hpj # Update the object files if necessary -$(OBJ1).obj: $(OBJ1).c $(OBJ1).h $(OBJ4).h $(DLL).h $(PROJ).h - $(cc) $(cflags) $(cvars) $(OBJ1).c +$(OBJ1).obj: $(OBJ1).c $(OBJ1).h $(OBJ4).h $(PROJ).h + $(cc) $(cdebug) $(cflags) $(cvarsmt) $(OBJ1).c $(OBJ2).obj: $(OBJ2).c $(OBJ2).h $(OBJ1).h $(PROJ).h - $(cc) $(cflags) $(cvars) $(OBJ2).c + $(cc) $(cdebug) $(cflags) $(cvarsmt) $(OBJ2).c -$(OBJ3).obj: $(OBJ3).c $(OBJ3).h $(OBJ1).h $(PROJ).h - $(cc) $(cflags) $(cvars) $(OBJ3).c +$(OBJ3).obj: $(OBJ3).c $(OBJ3).h $(OBJ1).h $(DLL).h $(PROJ).h + $(cc) $(cdebug) $(cflags) $(cvarsmt) $(OBJ3).c $(OBJ4).obj: $(OBJ4).c $(OBJ4).h - $(cc) $(cflags) $(cvars) $(OBJ4).c + $(cc) $(cdebug) $(cflags) $(cvarsmt) $(OBJ4).c $(DLL).obj: $(DLL).c $(DLL).h - $(cc) $(cflags) $(cvars) $(DLL).c + $(cc) $(cdebug) $(cflags) $(cvarsmtdll) $(DLL).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 + cvtres -$(CPU) $(PROJ).res -o $(PROJ).rbj # Update the import library $(DLL).lib: $(DLL).obj $(DLL).def @@ -50,18 +55,18 @@ $(DLL).lib: $(DLL).obj $(DLL).def # 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) + $(link) $(linkdebug) \ + -base:0x1C000000 \ + -dll \ + -entry:DllEntryPoint$(DLLENTRY) \ + -out:$(DLL).dll \ + $(DLL).exp $(DLL).obj $(guilibsdll) -# Update the OBJ1cutable file if necessary. +# Update the Executable 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) + $(link) $(linkdebug) $(guiflags) \ + -out:$(PROJ).exe \ + $(OBJS) $(DLL).lib $(PROJ).rbj \ + $(guilibsmt)