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.

50 lines
1.0 KiB

  1. NAME = ffdonuts
  2. EXT = exe
  3. GLOBAL_RECOMPILE = $(DXROOT)\recompdd.log
  4. IS_32 = 1
  5. GOALS = $(PBIN)\$(NAME).$(EXT)
  6. LIBS =kernel32.lib user32.lib advapi32.lib ddraw.lib dsound.lib \
  7. comdlg32.lib gdi32.lib winmm.lib crtdll.lib \
  8. dinput.lib
  9. OBJS = ffdonuts.obj ddutil.obj dsutil.obj input.obj
  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. RES = $(NAME).res
  22. !if ("$(DEBUG)" == "ntretail") || ("$(DEBUG)" == "ntdebug")
  23. CFLAGS =$(COPT) -Oxa -D_X86_ $(CDEBUG) -Fo$@
  24. RCFLAGS =$(ROPT)
  25. !else
  26. CFLAGS =$(COPT) -Oxa -D_X86_ $(CDEBUG) -Fo$@ -I..\..\misc -DUSE_DSOUND
  27. RCFLAGS =$(ROPT) -DUSE_DSOUND
  28. !endif
  29. AFLAGS =$(AOPT) -Zp4 -DSTD_CALL -DBLD_COFF -coff
  30. LFLAGS =$(LOPT)
  31. !include ..\..\..\..\proj.mk
  32. $(NAME).$(EXT): \
  33. $(OBJS) ..\default.mk $(RES)
  34. @$(LINK) $(LFLAGS) @<<
  35. -out:$(NAME).$(EXT)
  36. -map:$(NAME).map
  37. -machine:i386
  38. -subsystem:windows,4.0
  39. $(LIBS)
  40. $(RES)
  41. $(OBJS)
  42. <<