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.

46 lines
959 B

  1. # Use specific 16-bit compiler/linker/masm
  2. PATH=$(PATH_TOOLS16);$(PATH)
  3. !IFNDEF DEBUG
  4. DEBUG=0
  5. !ENDIF
  6. !IFNDEF LANGUAGE
  7. LANGUAGE=usa
  8. !ENDIF
  9. !IF $(DEBUG)
  10. C_DBG_FLAGS= -Zi -Od -DDBG=1
  11. LINK_DBG_FLAGS= /codeview
  12. !ELSE
  13. C_DBG_FLAGS=-DDBG=0
  14. LINK_DBG_FLAGS=
  15. !ENDIF
  16. CC= cl16
  17. CFCOMMON= -W3 -Zel -G2 -AC $(C_DBG_FLAGS)
  18. CINC=-X -I.. -I..\..\..\..\textmode\winnt\c6\inc -I$(O) -I..\..\..\..\inc
  19. CFLAGS= $(CFCOMMON) $(CFOPT)
  20. {..}.c{$(O)}.obj:
  21. $(CC) $(CFLAGS) $(CINC) -c /Fo$(@D)\ $<
  22. {}.c{$(O)}.obj:
  23. $(CC) $(CFLAGS) $(CINC) -c /Fo$(@D)\ $<
  24. LIBS = ..\..\..\..\textmode\winnt\c6\lib\clibce
  25. OBJS = $(O)\makeboot.obj $(O)\strings.obj
  26. $(O)\makeboot.exe: $(OBJS) makefile.inc $(PATH_TOOLS16)\$(CC).exe
  27. link @<<
  28. $(OBJS) /NOI /STACK:0xE000 $(LINK_DBG_FLAGS)
  29. $(O)\makeboot.exe
  30. nul
  31. $(LIBS)
  32. <<
  33. -binplace -O $(ALT_PROJECT_TARGET) $@
  34. $(O)\makeboot.obj: ..\makeboot.c ..\makeboot.h
  35. $(O)\strings.obj: strings.c