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.

72 lines
1.7 KiB

  1. # WIFEMAN16 makefile
  2. #
  3. # Copyright (c) 1991, Microsoft Corporation
  4. #
  5. # History:
  6. # 26-Jan-1991 Jeff Parsons (jeffpar)
  7. # Created.
  8. #
  9. !include ..\makefile.inc
  10. .SUFFIXES:
  11. .SUFFIXES: .c .asm .h .inc .obj .lst .sys .exe .com .map .sym .def .lib .res .rc
  12. !ifdef INCLUDE
  13. INCS =
  14. !else
  15. INCS = -I..\inc -I..\..\inc
  16. !endif
  17. DEFINES = -DWOW -DBUILDDLL $(MVDMFLAGS) $(DBCS_FLAGS)
  18. AOBJ = -Mx -t $(DEFINES) $(INCS)
  19. CW16 = -Asnw -G2sw -Os -W2 -Zp $(DEFINES)
  20. LINK = /map
  21. !if !$(FREEBUILD)
  22. AOBJ = $(AOBJ) -Zd
  23. CW16 = $(CW16) /Od /Oi /Zd
  24. LINK = $(LINK) /LI
  25. !endif
  26. W16LIBS = ..\lib\snocrtd.lib
  27. all: $(DEST)\wifeman.dll $(DEST)\wifeman.sym
  28. !ifdef ALT_PROJECT_TARGET
  29. -binplace -o $(ALT_PROJECT_TARGET) $(DEST)\wifeman.dll $(DEST)\wifeman.sym
  30. !else
  31. -binplace $(DEST)\wifeman.dll $(DEST)\wifeman.sym
  32. !endif
  33. clean: cleanup all
  34. cleanup:
  35. if exist *.lrf del *.lrf
  36. if exist *.obj del *.obj
  37. if exist *.dll del *.dll
  38. if exist *.map del *.map
  39. if exist *.sym del *.sym
  40. if exist *.lst del *.lst
  41. if exist *.res del *.res
  42. $(DEST)\wifethk.obj: $(*F).asm ..\..\inc\wow.inc ..\..\inc\wowwife.inc
  43. $(DEST)\wifeman.obj: $(*F).c ..\inc\windows.h
  44. $(DEST)\fakewife.obj: $(*F).c ..\inc\windows.h wife.h
  45. $(DEST)\wifeman.lrf: makefile.sub
  46. echo $*.obj $(DEST)\wifethk.obj $(DEST)\fakewife.obj $(DEST)\libentry.obj >$*.lrf
  47. echo $*.dll >>$*.lrf
  48. echo $* $(LINK) >>$*.lrf
  49. echo ..\lib\$(ALT_PROJECT)\libw.lib /nod >>$*.lrf
  50. echo $(*F); >>$*.lrf
  51. $(DEST)\wifeman.dll: $*.obj $(DEST)\wifethk.obj $(DEST)\fakewife.obj $(DEST)\libentry.obj $*.lrf $(*F).def $*.res
  52. $(LINK16) @$*.lrf;
  53. rc16 -t $*.res $@
  54. $(DEST)\wifeman.res: $(*F).rc $(*F).rcv ..\inc\common.ver