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.

51 lines
982 B

  1. !if "$(OS)" == "Windows_NT"
  2. !INCLUDE $(NTMAKEENV)\makefile.def
  3. !else
  4. CC = cl -c -W3 -AS -G2sw -Zip -Oxas $(DEF)
  5. ASM = masm -Mx -Zi
  6. LINK= link /CO/NOE/NOD/LI/MAP/AL:16
  7. NAME= profdisp
  8. DEF =-DDEBUG
  9. RC = rc
  10. OBJ = profdisp.obj
  11. LIBS = libw slibcew msvideo
  12. .c.obj:
  13. $(CC) $*.c
  14. .asm.obj:
  15. $(ASM) $*;
  16. goal: $(NAME).exe
  17. $(NAME).exe: $(OBJ) $(NAME).res $(NAME).def makefile
  18. $(LINK) $(OBJ), $(NAME), $(NAME),$(LIBS), $(NAME).def
  19. rc $(NAME).res
  20. -cvpack -p $(NAME).exe
  21. -mapsym $(NAME).map
  22. $(NAME).res: $(NAME).rc
  23. $(RC) -r $(NAME).rc
  24. clean:
  25. del $(NAME).exe
  26. del *.res
  27. del *.err
  28. del *.obj
  29. del *.map
  30. del *.sym
  31. depend:
  32. mv makefile makefile.old
  33. sed "/^# START Dependencies/,/^# END Dependencies/D" makefile.old > makefile
  34. del makefile.old
  35. echo # START Dependencies >> makefile
  36. includes -l *.c *.asm >> makefile
  37. echo # END Dependencies >> makefile
  38. # START Dependencies
  39. # END Dependencies
  40. !endif