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.

74 lines
1.8 KiB

  1. NAME = dpmodemx
  2. DEFNAME = dpserial
  3. RESNAME = dpserial
  4. EXT = dll
  5. GLOBAL_RECOMPILE = $(DXROOT)\dplay\dplay\recompdp.log
  6. IS_32 = 1
  7. GOALS = $(PBIN)\$(NAME).$(EXT) $(PBIN)\dpserial.reg \
  8. $(PBIN)\$(NAME).sym
  9. LIBS =kernel32.lib user32.lib tapi32.lib libc.lib dplayx.lib
  10. OBJS = dllmain.obj dpserial.obj comport.obj serial.obj modem.obj dial.obj dputils.obj newdpf.obj bilink.obj
  11. COPT =-YX -DDEBUG -Zi -Zp -Fd$(NAME).PDB -D_DEBUG
  12. AOPT =-DDEBUG
  13. LOPT =-debug:full -debugtype:cv -pdb:$(NAME).pdb
  14. ROPT =-DDEBUG
  15. # LOGO = 1 # this causes compiler output to be shown
  16. !if ("$(DEBUG)" == "debug") || ("$(DEBUG)" == "ntdebug")
  17. COPT =-YX -Ox -DDEBUG -Zi -Fd$(NAME).PDB -DSTART_STR="\"DPSERIAL :\"" -DPROF_SECT="\"DirectPlay\""
  18. AOPT =-DDEBUG
  19. LOPT =-debug:full -debugtype:cv -pdb:$(NAME).pdb
  20. ROPT =-DDEBUG
  21. !else
  22. COPT =-YX -Ox
  23. AOPT =
  24. LOPT =-debug:none -incremental:no
  25. ROPT =
  26. !endif
  27. CFLAGS =$(COPT) -MT -D_X86_ $(CDEBUG) -Fo$@ -D_MT -D_DLL -DWIN32_LEAN_AND_MEAN -DNEW_DPF -I.. -I$(DXROOT)\dplay\common $(CFLAGS)
  28. # CFLAGS =$(COPT) -DWIN95
  29. AFLAGS =$(AOPT) -Zp4
  30. LFLAGS =$(LOPT)
  31. RCFLAGS =$(ROPT) -i $(DEVROOT)\mfc32\include -DDIRECTX_VERSION
  32. !include ..\..\..\proj.mk
  33. # need to define a build rule for files in common directory
  34. {..\..\common}.c{}.obj:
  35. @$(CC) @<<
  36. $(CFLAGS) -Fo$(@B).obj ..\..\common\$(@B).c
  37. <<
  38. dputils.obj: $(DXROOT)\dplay\common\dputils.c
  39. newdpf.obj: $(DXROOT)\dplay\common\newdpf.c
  40. $(NAME).lib $(NAME).$(EXT): \
  41. $(OBJS) $(RESNAME).res ..\$(DEFNAME).def ..\default.mk
  42. @$(LINK) $(LFLAGS) @<<
  43. -out:$(NAME).$(EXT)
  44. -map:$(NAME).map
  45. -dll
  46. -base:0x70030000
  47. -machine:i386
  48. -subsystem:windows,4.0
  49. -entry:DllMain@12
  50. -implib:$(NAME).lib
  51. -def:..\$(DEFNAME).def
  52. -warn:2
  53. $(LIBS)
  54. $(RESNAME).res
  55. $(OBJS)
  56. <<
  57. mapsym $(NAME).map
  58. $(PBIN)\dpserial.reg : ..\dpserial.reg
  59. copy ..\dpserial.reg $(PBIN)\dpserial.reg