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.

49 lines
932 B

  1. NAME = test
  2. EXT = exe
  3. IS_32 = 1
  4. GOALS = $(PBIN)\$(NAME).$(EXT)
  5. LIBS =kernel32.lib user32.lib advapi32.lib ddrawex.lib crtdll.lib \
  6. comdlg32.lib gdi32.lib winmm.lib ole32.lib
  7. OBJS = main.obj
  8. !if "$(DEBUG)" == "debug"
  9. COPT =-YX -DDEBUG -Zi -Fd$(NAME).PDB
  10. AOPT =-DDEBUG
  11. LOPT =-debug:full -debugtype:cv -pdb:$(NAME).pdb
  12. ROPT =-DDEBUG
  13. !else
  14. COPT =-YX
  15. AOPT =
  16. LOPT =-debug:none
  17. ROPT =
  18. !endif
  19. DEF = $(NAME).def
  20. RES = $(NAME).res
  21. !if ("$(DEBUG)" == "ntretail") || ("$(DEBUG)" == "ntdebug")
  22. CFLAGS =$(COPT) -Oxa -D_X86_ $(CDEBUG) -Fo$@
  23. !else
  24. CFLAGS =$(COPT) -Oxa -D_X86_ $(CDEBUG) -Fo$@ -I..\..\misc
  25. !endif
  26. AFLAGS =$(AOPT) -Zp4 -DSTD_CALL -DBLD_COFF -coff
  27. LFLAGS =$(LOPT)
  28. RCFLAGS =$(ROPT)
  29. !include ..\..\..\proj.mk
  30. $(NAME).$(EXT): \
  31. $(OBJS) ..\$(NAME).def ..\default.mk $(RES)
  32. @$(LINK) $(LFLAGS) @<<
  33. -out:$(NAME).$(EXT)
  34. -map:$(NAME).map
  35. -machine:i386
  36. -subsystem:windows,4.0
  37. -def:..\$(NAME).def
  38. $(LIBS)
  39. $(RES)
  40. $(OBJS)
  41. <<