home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / winbase / io / winnt / unbufcpy / makefile next >
Makefile  |  1997-10-15  |  442b  |  22 lines

  1. # Nmake macros for building Windows 32-Bit apps
  2.  
  3. TARGETOS=WINNT
  4.  
  5. !include <ntwin32.mak>
  6.  
  7. !if "$(CPU)" == "i386"
  8. cflags = $(cflags) -D_CRTAPI1=_cdecl -D_CRTAPI2=_cdecl
  9. !else
  10. cflags = $(cflags) -D_CRTAPI1= -D_CRTAPI2=
  11. !endif
  12.  
  13. ALLEXES = unbufcp1.exe unbufcp2.exe
  14.  
  15. all: $(ALLEXES)
  16.  
  17. .c.obj:
  18.   $(cc) $(cdebug) $(cflags) $(cvars) $*.c
  19.  
  20. $(ALLEXES): $*.obj
  21.   $(link) $(ldebug) $(conflags) -out:$*.exe $*.obj user32.lib $(conlibs)
  22.