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 / perftool / perfdlls / perfgen / makefile < prev    next >
Makefile  |  1996-07-02  |  1KB  |  48 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 - 1995  Microsoft Corporation.  All Rights Reserved.
  7. #
  8. #
  9. # Processor independent makefile
  10.  
  11. # Nmake macros for building Windows 32-Bit apps
  12. !include <win32.mak>
  13.  
  14. PROJ = PERFGEN
  15.  
  16. all: $(PROJ).dll
  17.  
  18. # Define project specific macros
  19. PROJ_OBJS  = perfutil.obj datagen.obj perfgen.obj 
  20. BASE_OBJS  =
  21. EXTRA_LIBS = kernel32.lib advapi32.lib msvcrt.lib
  22. GLOBAL_DEP = datagen.h genctrnm.h perfmsg.h perfutil.h
  23. RC_DEP     = 
  24.  
  25.  
  26. # Inference rule for updating the object files
  27. .c.obj:
  28.   $(cc) $(cdebug) $(cflags) $(cvars) $*.c
  29.  
  30. # Build rule for resource file
  31. $(PROJ).res: genctrs.rc msg00001.bin $(PROJ).rc $(RC_DEP)
  32.     $(rc) $(rcflags) $(rcvars) /fo $(PROJ).res $(PROJ).rc
  33.  
  34. # Build rule for message file
  35. genctrs.h genctrs.rc msg00001.bin: genctrs.mc
  36.     mc -v genctrs.mc
  37.  
  38. # Build rule for DLL
  39. $(PROJ).DLL: $(PROJ).res $(BASE_OBJS) $(PROJ_OBJS) 
  40.     $(link) $(linkdebug) $(dlllflags) \
  41.     $(BASE_OBJS) $(PROJ_OBJS) $(PROJ).res $(dlllibs) $(EXTRA_LIBS) \
  42.     -out:$(PROJ).dll /DEF:perfgen.def /MACHINE:$(CPU)
  43.  
  44.  
  45. # Rules for cleaning out those old files
  46. clean:
  47.     del *.bak *.pdb *.obj *.res *.exp *.map *.sbr *.bsc *.lst *.err
  48.