home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / netds / ras / rasberry / makefile < prev    next >
Makefile  |  1997-10-05  |  2KB  |  58 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. #
  9. # Processor independent makefile
  10.  
  11. # Nmake macros for building Windows 32-Bit apps
  12. !include <ntwin32.mak>
  13.  
  14. PROJ = rasberry
  15.  
  16. all: $(PROJ).exe
  17.  
  18. # Define project specific macros
  19. PROJ_OBJS  = rasberry.obj statdlg.obj phbkdlg.obj dialdlg.obj authdlg.obj rasutil.obj
  20. BASE_OBJS  = winmain.obj init.obj misc.obj about.obj dispatch.obj
  21. EXTRA_LIBS = version.lib rasapi32.lib
  22. GLOBAL_DEP = win16ext.h globals.h
  23. RC_DEP     = globals.h about.dlg statdlg.dlg phbkdlg.obj dialdlg.dlg authdlg.dlg
  24.  
  25. # Dependencies
  26. winmain.obj:  winmain.c  $(GLOBAL_DEP)
  27. init.obj:     init.c     $(GLOBAL_DEP)
  28. misc.obj:     misc.c     $(GLOBAL_DEP)
  29. about.obj:    about.c    $(GLOBAL_DEP)
  30. dispatch.obj: dispatch.c $(GLOBAL_DEP)
  31. statdlg.obj:  statdlg.c  $(GLOBAL_DEP)
  32. phbkdlg.obj:  phbkdlg.c  $(GLOBAL_DEP)
  33. dialdlg.obj:  dialdlg.c  $(GLOBAL_DEP)
  34. authdlg.obj:  authdlg.c  $(GLOBAL_DEP)
  35. rasutil.obj:  rasutil.c  $(GLOBAL_DEP)
  36.  
  37.  
  38.  
  39. # Inference rule for updating the object files
  40. .c.obj:
  41.   $(cc) $(cdebug) $(cflags) $(cvars) $*.c
  42.  
  43. # Build rule for resource file
  44. $(PROJ).res: $(PROJ).rc $(RC_DEP)
  45.     $(rc) $(rcflags) $(rcvars) /fo $(PROJ).res $(PROJ).rc
  46.  
  47. # Build rule for EXE
  48. $(PROJ).EXE: $(BASE_OBJS) $(PROJ_OBJS) $(PROJ).res
  49.     $(link) $(linkdebug) $(guiflags) \
  50.     $(BASE_OBJS) $(PROJ_OBJS) $(PROJ).res $(guilibs) $(EXTRA_LIBS) \
  51.     -out:$(PROJ).exe $(MAPFILE)
  52.  
  53.  
  54.  
  55. # Rules for cleaning out those old files
  56. clean:
  57.     del *.bak *.pdb *.obj *.res *.exp *.map *.sbr *.bsc
  58.