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.

88 lines
1.9 KiB

  1. NAME = ddraw16
  2. EXT = dll
  3. GLOBAL_RECOMPILE = $(DXROOT)\recompdd.log
  4. IS_16 = 1
  5. GOALS = $(PINC)\ddrawi.h \
  6. $(PINC)\ddrawp.h \
  7. $(PBIN)\$(NAME).$(EXT) \
  8. $(PLIB)\$(NAME).lib
  9. LIBS = libw ldllcew ver toolhelp
  10. OBJS = $(PBIN)\libinit.obj \
  11. $(PBIN)\ddraw16.obj \
  12. $(PBIN)\ddhal.obj \
  13. $(PBIN)\dci.obj \
  14. $(PBIN)\vfd.obj \
  15. $(PBIN)\winwatch.obj \
  16. $(PBIN)\dynares.obj \
  17. $(PBIN)\gdihelp.obj \
  18. $(PBIN)\libmain.obj \
  19. $(PBIN)\dpf.obj \
  20. $(PBIN)\32to16.obj \
  21. $(PBIN)\16to32.obj \
  22. $(PBIN)\w32event.obj \
  23. $(PBIN)\modex.obj \
  24. $(PBIN)\mvgaxx.obj \
  25. $(PBIN)\moninfo.obj \
  26. $(PBIN)\dibpatch.obj
  27. !if "$(DEBUG)" == "debug"
  28. COPT =-Z7i -DDEBUG
  29. AOPT =-DDEBUG
  30. LOPT =
  31. ROPT =-DDEBUG
  32. !else
  33. COPT =
  34. AOPT =
  35. LOPT =
  36. ROPT =
  37. !endif
  38. DEF = $(NAME).def
  39. RES = $(PBIN)\$(NAME).res
  40. CFLAGS =-GD -Alfw -Ox $(COPT) $(INCLUDES) -I.. -I..\main -I..\ddhel -DNEW_DPF
  41. LFLAGS =/LI/ONERROR:NOEXE/NOLOGO/AL:16$(LOPT)
  42. !ifdef FINAL
  43. RCFLAGS=-DFINAL=1
  44. !endif
  45. !ifdef OFFICIAL_BUILD_MACHINE
  46. RCFLAGS=$(RCFLAGS) -DOFFICIAL_BUILD=1
  47. !endif
  48. RCFLAGS =$(RCFLAGS) $(ROPT) -z $(INCLUDES)
  49. AFLAGS =-D?LARGE -Fl -D?QUIET $(AOPT)
  50. NOLOGO = 1
  51. #ASMNOCOFF = 1
  52. !include proj.mk
  53. $(PBIN)\dpf.obj : ..\..\..\misc\dpf.c
  54. @$(CC) @<<
  55. $(CFLAGS) -DSTART_STR="\"DDRAW16: \"" -Fo$@ ..\..\..\misc\dpf.c
  56. <<
  57. $(PBIN)\mvgaxx.obj: mvgaxx.asm
  58. $(DXROOT)\public\tools\masm\masm -D?SMALL -D?QUIET -DIS_16 -t -W2 -Zd -Mx mvgaxx,$(PBIN)\mvgaxx.obj,mvgaxx.lst;
  59. #$(PINC)\ddrawi.h : ..\main\$$(@F)
  60. # @copy %s $@
  61. #
  62. #$(PINC)\ddraw.h : $(DXROOT)\ddraw\main\$$(@F)
  63. # @copy %s $@
  64. $(PBIN)\$(NAME).$(EXT) : $(DEF) $(RES) $(OBJS)
  65. cd $(PBIN)
  66. sed -e s/$(PBIN:\=\\)\\//g < <<>MYFILE
  67. $(OBJS),
  68. $(PBIN)\$(NAME).$(EXT) $(LFLAGS) ,
  69. $(PBIN)\$(NAME).map,
  70. $(LIBS),
  71. ..\..\$(DEF)
  72. <<
  73. $(LINK) @MYFILE
  74. cd $(MAKEDIR)
  75. $(RC) -40 $(RCFLAGS) $(RES) $(PBIN)\$(NAME).$(EXT)
  76. mapsym -o $(PBIN)\$(NAME).sym $(PBIN)\$(NAME).map