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.

65 lines
1.8 KiB

  1. #-------------------------------------------------------------
  2. #
  3. # MINI-DRIVER Make file template for SRV file
  4. #
  5. #-------------------------------------------------------------
  6. #-------------------------------------------------------------
  7. # Enter the DRV file name (without extension) after DRVNAME =
  8. #-------------------------------------------------------------
  9. DRVNAME = E_ESCP2C
  10. #**********************************************************************
  11. # Set up AFLAGS, CFLAGS and LFLAGS
  12. #**********************************************************************
  13. !ifdef DEBUG
  14. CFLAGS=-nologo -u -c -Asnw -PLM -G2sw -W3 -Od -Zipe -DDEBUG
  15. LFLAGS=/ALIGN:16/NOD/map/Co
  16. !else
  17. CFLAGS=-nologo -u -c -Asnw -PLM -Gsw -W3 -Oasceob1 -Zpe
  18. LFLAGS=/ALIGN:16/NOD/map
  19. !endif
  20. AFLAGS=-DIS_16 -nologo -W2 -Zd -c -Cx -DMASM6
  21. #**********************************************************************
  22. # Do not edit below this line
  23. #**********************************************************************
  24. TARGET: $(DRVNAME).DRV
  25. libinit.obj: ..\..\libinit.asm
  26. set ML=$(AFLAGS)
  27. ml -Fo.\libinit.obj ..\..\libinit.asm
  28. minidriv.obj: ..\..\minidriv.c
  29. set CL=$(CFLAGS) $(NOFUNCS)
  30. cl -Fo.\minidriv.obj ..\..\minidriv.c
  31. $(DRVNAME).obj: $(DRVNAME).c
  32. set CL=$(CFLAGS)
  33. cl .\$(DRVNAME).c
  34. $(DRVNAME).srv: libinit.obj minidriv.obj $(DRVNAME).obj $(DRVNAME).df
  35. link $(LFLAGS) @<<
  36. libinit minidriv $(DRVNAME)
  37. $(DRVNAME).exe
  38. $(DRVNAME).map
  39. sdllcew libw
  40. $(DRVNAME).df
  41. <<
  42. mapsym $(DRVNAME)
  43. copy $(DRVNAME).exe *.srv
  44. $(DRVNAME).drv: $(DRVNAME).srv $(DRVNAME).rc $(DRVNAME).rcv $(DRVNAME).gpc
  45. rc -r $(DRVNAME).rc
  46. copy $(DRVNAME).srv *.exe
  47. rc -40 -t $(DRVNAME)
  48. del $(DRVNAME).res
  49. del $(DRVNAME).drv
  50. ren $(DRVNAME).exe *.drv
  51. compress -r $(DRVNAME).drv