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.

113 lines
3.7 KiB

  1. #-------------------------------------------------------------
  2. #
  3. # MINI-DRIVER Make file template
  4. #
  5. #-------------------------------------------------------------
  6. ROOT=..\..\..\..\..\..
  7. SRCDIR=.
  8. C16ONLY=Y
  9. #-------------------------------------------------------------
  10. # The follwing entries should updated
  11. #-------------------------------------------------------------
  12. #
  13. #-------------------------------------------------------------
  14. # Enter the DRV file name (without extension) after DRVNAME =
  15. #-------------------------------------------------------------
  16. DRVNAME = KPDLMS
  17. DRVDESC = KONICA KPDLMS Printer
  18. #-------------------------------------------------------------
  19. # Enter the names of all of the resident font file names
  20. # (with extensions) after FONTS =
  21. #-------------------------------------------------------------
  22. FONTS = PFM\*.PFM
  23. #-------------------------------------------------------------
  24. # Enter the names of all of the version resource files
  25. # (with extensions) after RCV =
  26. #-------------------------------------------------------------
  27. RCV = KPDLMS.RCV
  28. #-------------------------------------------------------------
  29. # Enter the names of all of the character translation tables
  30. # (with extensions) after CTTS =
  31. #-------------------------------------------------------------
  32. #CTTS = CTT\*.CTT
  33. #-------------------------------------------------------------
  34. # These are the functions implemented in $(DRVNAME).c
  35. # used to replace the ones in minidriv.c
  36. #-------------------------------------------------------------
  37. NOFUNCS = -DNOENABLE -DNODISABLE
  38. #-------------------------------------------------------------
  39. # Extra exported functions
  40. #-------------------------------------------------------------
  41. #EXP1 = fnOEMOutputCmd @301
  42. #EXP2 = fnOEMGetFontCmd @302
  43. #EXP3 = OEMDownloadFontHeader @303
  44. #EXP4 = OEMDownloadChar @304
  45. #EXP5 = OEMSendScalableFontCmd @305
  46. #EXP6 = OEMScaleWidth @306
  47. #**********************************************************************
  48. # Do not edit below this line
  49. #**********************************************************************
  50. !ifdef LOG_CALLS
  51. DEFFILE = $(SRCDIR)\debug.def
  52. !else
  53. DEFFILE = $(SRCDIR)\kpdlms.def
  54. !endif
  55. OBJECTS = dialog faxdlg devmode
  56. OBJECTSOBJ = dialog.obj faxdlg.obj devmode.obj
  57. !include ..\minidriv.mk
  58. dialog.obj: $(SRCDIR)\dialog.c
  59. set CL=$(CFLAGS)
  60. cl $(SRCDIR)\dialog.c
  61. faxdlg.obj: $(SRCDIR)\faxdlg.c
  62. set CL=$(CFLAGS)
  63. cl $(SRCDIR)\faxdlg.c
  64. devmode.obj: $(SRCDIR)\devmode.c
  65. set CL=$(CFLAGS)
  66. cl $(SRCDIR)\devmode.c
  67. #!include $(SRCDIR)\..\default.mk
  68. # in-line copy of ..\default.mk except the minidriv.obj line
  69. #
  70. $(DRVNAME).res: $(RCDIR)\$(DRVNAME).DLG $(SRCDIR)\$(DRVNAME).GPC $(FONTS) $(CTTS) $(RCV)
  71. rc -r -I$(SRCDIR) -Fo.\$(DRVNAME).RES $(RCDIR)\$(DRVNAME).DLG
  72. libinit.obj: $(ROOT)\win\drivers\printers\universa\minidriv\libinit.asm
  73. set $(ASMENV)=$(AFLAGS)
  74. $(ASM) -Fo.\libinit.obj $(ROOT)\win\drivers\printers\universa\minidriv\libinit.asm
  75. minidriv.obj: $(ROOT)\win\drivers\printers\universa\minidriv\minidriv.c $(ROOT)\win\drivers\printers\universa\inc\unidrv.h
  76. set CL=$(CFLAGS) $(NOFUNCS)
  77. cl $(ROOT)\win\drivers\printers\universa\minidriv\minidriv.c
  78. $(DRVNAME).obj: $(SRCDIR)\$(DRVNAME).c
  79. set CL=$(CFLAGS)
  80. cl $(SRCDIR)\$(DRVNAME).c
  81. $(DRVNAME).exe: minidriv.obj libinit.obj $(DRVNAME).obj $(OBJECTSOBJ) $(DEFFILE)
  82. link $(LFLAGS) @<<
  83. minidriv libinit $(DRVNAME) $(OBJECTS)
  84. $(DRVNAME).exe
  85. $(DRVNAME).map
  86. sdllcew libw
  87. $(DEFFILE)
  88. <<
  89. mapsym $(DRVNAME)
  90. $(DRVNAME).drv: $(DRVNAME).res $(DRVNAME).exe
  91. rc $(RCFLAGS) -I. $(DRVNAME).res
  92. copy $(DRVNAME).exe $(DRVNAME).drv