home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / sdktools / image / drwatson / makefile < prev    next >
Encoding:
Makefile  |  1997-10-15  |  1.6 KB  |  66 lines

  1. !include <win32.mak>
  2.  
  3.  
  4.  
  5. !IF "$(CPU)" == "i386"
  6. cflags = $(cflags) -Di386=1
  7. !ELSE
  8. !IF "$(CPU)" == "ALPHA"
  9. cflags = $(cflags)  -DALPHA=1
  10. !ENDIF
  11. !ENDIF
  12.  
  13. !if "$(CPU)" == "i386"
  14. cflags = $(cflags) -D_CRTAPI1=_cdecl -D_CRTAPI2=_cdecl
  15. !else
  16. cflags = $(cflags) -D_CRTAPI1= -D_CRTAPI2=
  17. !endif
  18.  
  19. all: ..\bin\drwtsn32.exe
  20.  
  21. messages.h messages.rc msg00001.bin: messages.mc
  22.     mc -v messages.mc
  23.  
  24. cflags = $(cflags) -DWIN32 -DTARGET32 -DHOST32 -DADDR_MIXED -DNT_BUILD -D_CROSS_PLATFORM_
  25.  
  26. drwatson.res: messages.rc msg00001.bin drwatson.rc
  27.     rc -r -i .\include -fo drwatson.res drwatson.rc
  28.  
  29. .c.obj:
  30.   $(cc) $(cdebug) $(cflags) $(cvars) $(scall) -I..\include -I.\include -I. $*.c
  31.  
  32. OBJECTS= drwatson.res   \
  33.          controls.obj   \
  34.          debug.obj      \
  35.          error.obj      \
  36.          eventlog.obj   \
  37.          getteb.obj     \
  38.          log.obj        \
  39.          module.obj     \
  40.          notify.obj     \
  41.          process.obj    \
  42.          registry.obj   \
  43.          symbols.obj    \
  44.          ui.obj         \
  45.          util.obj       \
  46.          walk.obj      \
  47.          regs.obj      \
  48.          disasm.obj    \
  49.          context.obj   \
  50.          drwtsn32.obj   \
  51.          browse.obj    \
  52.          dump.obj
  53.  
  54. !IF "$(CPU)" == "ALPHA"
  55. OBJECTS=$(OBJECTS) optable.obj
  56. !ENDIF
  57.  
  58. ..\bin\drwtsn32.exe: $(OBJECTS)
  59.   @if not exist ..\bin md ..\bin > nul
  60.   $(link) $(linkdebug) $(conflags) -machine:$(CPU) -out:$@ \
  61.   $** $(guilibs) imagehlp.lib winmm.lib shell32.lib \
  62.   comdlg32.lib advapi32.lib crashlib.lib
  63. !IF ("$(TARGETLANG)" == "LANG_JAPANESE") && ("$(OS)" == "Windows_NT")
  64.   rlman -p 932 -n 17 1 -r $@ drwtsn32.tok $@
  65. !ENDIF
  66.