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.

60 lines
1.8 KiB

  1. #
  2. # makefile.inc for 16-bit components
  3. #
  4. C16_NAME = $(DEVROOT)\bin\c816\i386\cl -nologo
  5. C16_FLAGS = $(C16_FLAGS) -I$(DEVROOT)\inc16 -I$(DEVROOT)\inc -Fd$(MAKEDIR)\$(_OBJ_DIR)\i386^\
  6. ASM_NAME = $(DEVROOT)\bin\masm611\ml
  7. ASM_FLAGS = -c -W2 $(ASM_FLAGS)
  8. !IF "$(BUILD_ALT_DIR)" == "d"
  9. C16_FLAGS = $(C16_FLAGS) -Zi -DDEBUG
  10. ASM_FLAGS = $(ASM_FLAGS) -Zi -DDEBUG=1
  11. LINK16_FLAGS = $(LINK16_FLAGS) /LI
  12. !ENDIF
  13. {}.asm{$(O)\}.obj:
  14. @type <<$(ECHO_RSP)
  15. $(ASM_NAME) -Fo$(MAKEDIR)\$@ $(MAKEDIR)\$(<F) $(ASM_FLAGS)
  16. <<NOKEEP
  17. @$(ASM_NAME) @<<$(CL_RSP) -Fo$(MAKEDIR)\$@ $(MAKEDIR)\$(<F)
  18. $(ASM_FLAGS)
  19. <<NOKEEP
  20. {}.c{$(O)\}.obj:
  21. @type <<$(ECHO_RSP)
  22. $(C16_NAME) -Fo$(MAKEDIR)\$@ $(MAKEDIR)\$(<F) $(C16_FLAGS)
  23. <<NOKEEP
  24. @$(C16_NAME) @<<$(CL_RSP) -Fo$(MAKEDIR)\$@ $(MAKEDIR)\$(<F)
  25. $(C16_FLAGS: =
  26. )
  27. <<NOKEEP
  28. $(O)\$(TARGETNAME).res: $(TARGETNAME).rc
  29. $(DEVROOT)\bin\c816\i386\rc -r -I $(DEVROOT)\inc16 -I $(ROOT)\h -fo $@ $(TARGETNAME).rc
  30. $(TARGETPATHLIB)\$(TARGET_DIRECTORY)\$(TARGETNAME).lib: $(TARGETNAME).def
  31. @echo skipping creation of $(TARGETNAME).lib
  32. $(TARGETPATHLIB)\$(TARGET_DIRECTORY)\$(TARGETNAME).exp: $(TARGETNAME).def
  33. @echo skipping createion of $(TARGETNAME).exp
  34. $(TARGETPATHLIB)\$(TARGET_DIRECTORY)\$(TARGETNAME).dll: $(OBJECTS) $(LINKLIBS) $(CRTLIBS) $(MACHINE_TARGETLIBS) $(O)\$(TARGETNAME).res
  35. $(DEVROOT)\bin\c816\i386\link @<<
  36. $(OBJECTS) /align:0x1000 /nodefaultlib /NOE/MAP/NOD/AL:16/NOPACKC/ONERROR:NOEXE $(LINK16_FLAGS),
  37. $(TARGET),
  38. $(TARGETPATHLIB)\$(TARGET_DIRECTORY)\$(TARGETNAME).map,
  39. $(TARGETLIBS),
  40. $(TARGETNAME).def
  41. <<
  42. $(DEVROOT)\bin\c816\i386\rc $(TARGETPATHLIB)\$(TARGET_DIRECTORY)\$(TARGETNAME).res $(TARGET)
  43. $(SPLITSYM_CMD)
  44. $(TARGETCOPY_CMD)
  45. $(PDBCOPY_CMD)
  46. $(DBGCOPY_CMD)
  47. $(MAPSYM_CMD)
  48. $(MAPCOPY_CMD)
  49. $(SYMCOPY_CMD)