makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #
  2. # Makefile for Guids.lib
  3. #
  4. # Environment variable Requirements:
  5. #
  6. # INCLUDE=foo // can be set to anything, must be set
  7. # PATH= // must have proper nmake on path
  8. # FEDROOT=<path> // MUST point to base of fed src enlistment
  9. #
  10. # nmake args:
  11. #
  12. # Clean // will delete all files in destination dir
  13. # Full // will Clean, then build all derived files
  14. # Shell // opens os-specific cmd/command shell (helps to debug build)
  15. # RETAIL= // builds a retail build (default is DEBUG)
  16. # // no argument is used for debug builds
  17. #
  18. #
  19. # All derived files (temp files, .res, output of midl, *.obj, *.exe/.dll...
  20. # are placed directly into the appropriate tree under $(FEDROOT)\Objs.
  21. #
  22. # The $(FEDROOT)\Objs tree is created on demand.
  23. # Since no derived files are placed in the source tree, multiple builds
  24. # can be run SIMULTANEOUSLY.
  25. SRCROOT=Guids
  26. MAINTARGROOT=FedGuids
  27. MAINTARGEXT=lib
  28. INCLUDELOCAL=$(FEDSRC)\Guids
  29. !include "..\makefile.inc"
  30. OBJS=$(DESTDIR)\guids.obj
  31. $(DESTDIR)\Guid.obj: $(FEDSRC)\$(SRCROOT)\Guids.cpp
  32. $(CC) $(CARGS) $(FEDSRC)\$(SRCROOT)\$(MAINTARGROOT).cpp
  33. LIBARGS= $(NOLOGO) /out:$(MAINTARGFULLPATH)
  34. #
  35. # Dependecies start here
  36. #
  37. $(MAINTARGFULLPATH): $(DESTDIR) $(OBJS)
  38. lib $(LIBARGS) $(OBJS)