Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.2 KiB

  1. #
  2. # MAKEFILE
  3. # Sample WBEM Method Provider
  4. #
  5. # Copyright (c)1998 Microsoft Corporation, All Rights Reserved
  6. #
  7. TARGET = methprov.dll
  8. goal: $(TARGET)
  9. OBJS = $(OBJDIR)\maindll.obj $(OBJDIR)\methprov.obj $(OBJDIR)\classfac.obj
  10. LIBS = msvcrt.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib \
  11. advapi32.lib ole32.lib oleaut32.lib uuid.lib wbemuuid.lib
  12. #
  13. # Compiler and link flags
  14. #
  15. !ifndef NODEBUG
  16. OBJDIR=debug
  17. LINK = -debug:full /DLL -debugtype:cv /NOD
  18. CFLAGS = -c -Od -Z7 -Ze -W3 -G3s -nologo \
  19. -DWIN32 -D_DLL -DWIN32ANSI -DSTRICT -DDEBUG
  20. !else
  21. OBJDIR=retail
  22. LINK = -debug:none /DLL /NOD
  23. CFLAGS = -c -Oat -Ze -W3 -G3s -nologo \
  24. -DWIN32 -D_DLL -DWIN32ANSI -DSTRICT
  25. !endif #NODEBUG
  26. cc = cl $(CFLAGS)
  27. .cpp{$(OBJDIR)}.obj:
  28. if not exist $(OBJDIR) md $(OBJDIR)
  29. $(cc) $< -Fo$(OBJDIR)\$(<B).obj
  30. $(TARGET) : $(OBJS) $(DEFFILE)
  31. link @<<
  32. $(LINK)
  33. -entry:LibMain32
  34. -def:methprov.def
  35. -out:$(OBJDIR)\$(TARGET)
  36. -subsystem:windows,4.0
  37. $(OBJS)
  38. $(LIBS)
  39. <<
  40. ##### Dependencies #####
  41. maindll.obj : maindll.cpp sample.h
  42. classfac.obj : classfac.cpp sample.h
  43. methprov.obj : methprov.cpp sample.h