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 / service / makefile < prev    next >
Makefile  |  1997-10-15  |  1KB  |  43 lines

  1. # THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  2. # ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  3. # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  4. # PARTICULAR PURPOSE.
  5. #
  6. # Copyright (C) 1993-1997  Microsoft Corporation.  All Rights Reserved.
  7.  
  8. TARGETOS=WINNT
  9.  
  10. !include <ntwin32.mak>
  11.  
  12. !if "$(CPU)" == "i386"
  13. cflags = $(cflags) -D_CRTAPI1=_cdecl -D_CRTAPI2=_cdecl
  14. !else
  15. cflags = $(cflags) -D_CRTAPI1= -D_CRTAPI2=
  16. !endif
  17.  
  18. all: simple.exe client.exe
  19.  
  20. .c.obj:
  21.     $(cc) $(cdebug) $(cflags) $(cvarsmt) $*.c
  22.  
  23.  
  24. ## Simple dependencies
  25.  
  26. simple.obj: simple.c service.h
  27.  
  28. service.obj: service.c service.h
  29.  
  30. simple_objs = simple.obj service.obj
  31.  
  32. simple_libs = $(conlibsmt) advapi32.lib shell32.lib
  33.  
  34. simple.exe: $(simple_objs)
  35.     $(link) $(linkdebug) $(conflags) -out:simple.exe $(simple_objs) $(simple_libs)
  36.  
  37.  
  38.  
  39. ## Client dependencies
  40.  
  41. client.exe: client.obj
  42.     $(link) $(linkdebug) $(conflags) -out:client.exe client.obj $(conlibsmt)
  43.