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.

63 lines
1.3 KiB

  1. NAME = dplaysvr
  2. EXT = exe
  3. IS_32 = 1
  4. WANTASM = 1
  5. GOALS = $(PBIN)\$(NAME).$(EXT) \
  6. $(PBIN)\$(NAME).sym
  7. OBJS = dphelp.obj dplaysvr.obj memalloc.obj newdpf.obj reliable.obj
  8. LIBS =kernel32.lib user32.lib advapi32.lib \
  9. comdlg32.lib gdi32.lib winmm.lib libcmt.lib
  10. !if "$(DEBUG)" == "debug"
  11. COPT =-YX -DDEBUG -Zi -Fd$(NAME).PDB
  12. AOPT =-DDEBUG
  13. LOPT =-debug:full -debugtype:cv -pdb:$(NAME).pdb
  14. ROPT =-DDEBUG
  15. !else
  16. COPT =-YX
  17. AOPT =
  18. LOPT =-debug:none
  19. ROPT =
  20. !endif
  21. DEF = $(NAME).def
  22. RES = $(NAME).res
  23. CFLAGS =$(COPT) -Ox -DNO_DPF_HWND -D_X86_ -DNEW_DPF $(CDEBUG) -Fo$@
  24. AFLAGS =$(AOPT) -Zp4 -DSTD_CALL -DBLD_COFF -coff
  25. LFLAGS =$(LOPT)
  26. RCFLAGS =$(ROPT)
  27. CFLAGS =$(CFLAGS) -I..\..\WSOCK -I$(MANROOT)\dplay\common -DPROF_SECT="\"dplaysvr\"" -DSTART_STR="\"DirectPlay Server: \""
  28. LOGO = 1
  29. !include ..\..\..\proj.mk
  30. # need to define a build rule for files in common directory
  31. {..\..\common}.c{}.obj:
  32. @$(CC) @<<
  33. $(CFLAGS) -Fo$(@B).obj ..\..\common\$(@B).c
  34. <<
  35. newdpf.obj: $(MANROOT)\dplay\common\newdpf.c
  36. memalloc.obj: $(MANROOT)\dplay\common\memalloc.c
  37. $(NAME).$(EXT): \
  38. $(OBJS) ..\$(NAME).def $(NAME).res ..\default.mk
  39. @$(LINK) $(LFLAGS) @<<
  40. -out:$(NAME).$(EXT)
  41. -map:$(NAME).map
  42. -machine:i386
  43. -subsystem:windows,4.0
  44. -def:..\$(NAME).def
  45. $(LIBS)
  46. $(NAME).res
  47. $(OBJS)
  48. <<
  49. mapsym $(NAME).map