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 / symcvt / makefile < prev    next >
Makefile  |  1997-10-15  |  967b  |  49 lines

  1. # Nmake macros for building Windows 32-Bit apps
  2.  
  3. SEHMAP=TRUE
  4. !include <win32.mak>
  5.  
  6. !if "$(CPU)" == "i386"
  7. cflags = $(cflags) -D_CRTAPI1=_cdecl -D_CRTAPI2=_cdecl
  8. !else
  9. cflags = $(cflags) -D_CRTAPI1= -D_CRTAPI2=
  10. !endif
  11.  
  12. all: ..\lib\symcvt.exp ..\bin\symcvt.dll
  13.  
  14.  
  15. cflags = $(cflags) -DWIN32 -DTARGET32 -DHOST32 -DADDR_MIXED -DNT_BUILD -D_CROSS_PLATFORM_
  16.  
  17. .c.obj:
  18.     $(cc) $(cflags) $(cvarsdll) -I..\include -I. $(scall) $(cdebug) $**
  19.  
  20. OBJS = cofftocv.obj \
  21.        cvcommon.obj \
  22.        file.obj     \
  23.        symcvt.obj   \
  24.        symtocv.obj
  25.  
  26. ..\lib\symcvt.exp: $(OBJS) symcvt.def
  27.     @if not exist ..\lib md ..\lib > nul
  28.     $(implib) @<<
  29. -machine:$(CPU)
  30. -def:symcvt.def    
  31. $(OBJS: =
  32. )
  33. -out:..\lib\symcvt.lib
  34. <<NOKEEP
  35.  
  36. ..\bin\symcvt.dll: ..\lib\symcvt.exp $(OBJS)
  37.     @if not exist ..\bin md ..\bin > nul
  38.     $(link) @<<
  39. $(dlllflags)
  40. -base:0x58400000
  41. $(linkdebug)
  42. -out:$@
  43. $(**: =
  44. )
  45. $(conlibsdll: =
  46. )
  47. imagehlp.lib
  48. <<NOKEEP
  49.