home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / winbase / winnt / mpheap / makefile next >
Encoding:
Makefile  |  1996-05-06  |  718 b   |  32 lines

  1.  
  2. TARGETOS=WINNT
  3. SEHMAP=TRUE
  4. !include <win32.mak>
  5.  
  6. !IF "$(TARGETLANG)" == "LANG_JAPANESE"
  7. all: WARN_MSG
  8. !ELSE
  9. all: mpheap.dll tmpheap.exe
  10. !ENDIF
  11.  
  12.  
  13. WARN_MSG:
  14.  @echo "Warning:  MPHEAP sample works only on Windows NT 4.0"
  15.  
  16.  
  17.  
  18. # Inference rule for updating the object files
  19. tmpheap.obj: tmpheap.c
  20.   $(cc) $(cdebug) $(cflags) $(cvars) $*.c
  21.  
  22. mpheap.obj: mpheap.c
  23.   $(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
  24.  
  25. # Build rule for EXE
  26. tmpheap.exe: tmpheap.obj mpheap.lib
  27.     $(link) $(linkdebug) $(conlflags) $(conlibs) $** -out:tmpheap.exe
  28.  
  29. # linker will build the import library as well
  30. mpheap.dll: mpheap.obj
  31.     $(link) $(linkdebug) $(dlllflags) $(conlibsdll) $** -out:mpheap.dll -def:mpheap.def
  32.