Source code of Windows XP (NT5)
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.

79 lines
1.9 KiB

  1. NAME = dpwsockx
  2. DEFNAME = dpwsock
  3. RESNAME = dpwsock
  4. EXT = dll
  5. GLOBAL_RECOMPILE = $(DXROOT)\dplay\dplay\recompdp.log
  6. IS_32 = 1
  7. GOALS = $(PBIN)\$(NAME).$(EXT) $(PBIN)\wsock.reg \
  8. $(PBIN)\$(NAME).sym
  9. LIBS =kernel32.lib user32.lib wsock32.lib dplayx.lib libc.lib
  10. OBJS = wsock2.obj leverage.obj newdpf.obj helpcli.obj dpsp.obj winsock.obj dllmain.obj \
  11. dputils.obj memalloc.obj handler.obj fpm.obj bilink.obj
  12. COPT =-YX -DDEBUG -Zi -Zp -Fd$(NAME).PDB -D_DEBUG
  13. AOPT =-DDEBUG
  14. LOPT =-debug:full -debugtype:cv -pdb:$(NAME).pdb
  15. ROPT =-DDEBUG
  16. #LOGO = 1 # this causes compiler output to be shown
  17. !if ("$(DEBUG)" == "debug") || ("$(DEBUG)" == "ntdebug")
  18. COPT =-YX -Ox -DDEBUG -Zi -Fd$(NAME).PDB -DSTART_STR="\"DPWSOCK :\"" -DPROF_SECT="\"DirectPlay\""
  19. AOPT =-DDEBUG
  20. LOPT =-debug:full -debugtype:cv -pdb:$(NAME).pdb
  21. ROPT =-DDEBUG
  22. !else
  23. COPT =-YX -Ox
  24. AOPT =
  25. LOPT =-debug:none -incremental:no
  26. ROPT =
  27. !endif
  28. CFLAGS =$(COPT) -MT -D_X86_ $(CDEBUG) -Fo$@ -Gd -DNEW_DPF -I.. -I..\..\dplaysvr -I$(DXROOT)\dplay\common $(CFLAGS)
  29. AFLAGS =$(AOPT) -Zp4
  30. LFLAGS =$(LOPT)
  31. RCFLAGS =$(ROPT)
  32. !ifdef DPLAY_ICECAP
  33. !message *** building icecap ***
  34. CFLAGS= $(CFLAGS) -Gh -Zi
  35. LIBS= $(LIBS) icap.lib
  36. !endif
  37. !include ..\..\..\proj.mk
  38. # need to define a build rule for files in common directory
  39. {..\..\common}.c{}.obj:
  40. @$(CC) @<<
  41. $(CFLAGS) -Fo$(@B).obj ..\..\common\$(@B).c
  42. <<
  43. dputils.obj: $(DXROOT)\dplay\common\dputils.c
  44. newdpf.obj: $(DXROOT)\dplay\common\newdpf.c
  45. memalloc.obj: $(DXROOT)\dplay\common\memalloc.c
  46. $(NAME).lib $(NAME).$(EXT): \
  47. $(OBJS) $(RESNAME).res ..\$(DEFNAME).def ..\default.mk
  48. @$(LINK) $(LFLAGS) @<<
  49. -out:$(NAME).$(EXT)
  50. -map:$(NAME).map
  51. -dll
  52. -base:0x70020000
  53. -machine:i386
  54. -subsystem:windows,4.0
  55. -implib:$(NAME).lib
  56. -def:..\$(DEFNAME).def
  57. -warn:2
  58. $(LIBS)
  59. $(RESNAME).res
  60. $(OBJS)
  61. <<
  62. mapsym $(NAME).map
  63. $(PBIN)\wsock.reg : ..\wsock.reg
  64. copy ..\wsock.reg $(PBIN)\wsock.reg