-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathMakefile
46 lines (40 loc) · 2.94 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
all:
@echo
@echo [!] Please specify target
@echo
build:
gcc -Wall printer.c -o emulatedprinter
build_simple:
gcc -Wall printer_minimal.c -o read
clean:
rm -f printjobs/*.pcl
rm -f printjobs/*.pdf
rm -f printjobs/*.txt
# Stops currently running printer
# Throws error if no printer is running
stop:
rmmod g_printer
rmmod usb_f_printer
# Printer models
startHPCXI895:
modprobe g_printer idVendor=0x03F0 idProduct=0x0004 bcdDevice=0x0100 iManufacturer="" iProduct="" iSerialNumber="" iPNPstring="MFG:HEWLETT-PACKARD;MDL:DESKJET 895C;CMD:MLC,PCL,PML;CLASS:PRINTER;DESCRIPTION:Hewlett-Packard DeskJet 895C;VSTATUS:$HB0$FC0,ff,DN,IDLE,CUT;"
startBrotherHL2030:
modprobe g_printer idVendor=0x04F9 idProduct=0x0027 bcdDevice=0x0100 iManufacturer="" iProduct="" iSerialNumber="" iPNPstring="MFG:Brother;CMD:PJL,HBP;MDL:HL-2030 series;CLS:PRINTER;"
startHP1220:
modprobe g_printer idVendor=0x03F0 idProduct=0x0412 bcdDevice=0x0100 iManufacturer="" iProduct="" iSerialNumber="" iPNPstring="MFG:Hewlett-Packard;CMD:PJL,MLC,PCL,PCLXL,POSTSCRIPT;MDL:HP LaserJet 1220;CLS:PRINTER;DES:Hewlett-Packard LaserJet 1220;"
startXeroxDocuPrintCM215:
modprobe g_printer idVendor=0x0550 idProduct=0x0165 bcdDevice=0x0100 iManufacturer="" iProduct="" iSerialNumber="" iPNPstring="MFG:FUJI XEROX;CMD:HBPL;MDL:DocuPrint CM215 b;CLS:PRINTER; "
startXeroxPhaser4400:
modprobe g_printer idVendor=0x0924 idProduct=0x3CE8 bcdDevice=0x0100 iManufacturer="" iProduct="" iSerialNumber="" iPNPstring="MFG:Xerox;CMD:Adobe PostScript 3, PCL, PJL;MDL:Phaser 4400B;CLS:Printer;DES:Xerox Phaser 4400 Laser Printer, Page Printer, PostScript 3, Letter/A4 Size; "
startSamsungML6060:
modprobe g_printer idVendor=0x04E8 idProduct=0x3008 bcdDevice=0x0100 iManufacturer="" iProduct="" iSerialNumber="" iPNPstring="MFG:Samsung;CMD:PCL5E,PCL6;MDL:ML-6060;CLS:PRINTER;CMT:EmulatedPrinter; "
startRicohAficio1224C:
modprobe g_printer idVendor=0x05CA idProduct=0x0403 bcdDevice=0x0100 iManufacturer="" iProduct="" iSerialNumber="" iPNPstring="MFG:RICOH;MDL:Aficio 1224C;CMD:POSTSCRIPT; "
startKyoceraFS1020D:
modprobe g_printer idVendor=0x0482 idProduct=0x0015 bcdDevice=0x0100 iManufacturer="" iProduct="" iSerialNumber="" iPNPstring="MFG:Kyocera;MDL:Kyocera FS-1030D;CMD:POSTSCRIPT,PJL,PCL; "
startRicohAficioSP35010SF:
modprobe g_printer idVendor=0x05CA idProduct=0x0437 bcdDevice=0x0100 iManufacturer="" iProduct="" iSerialNumber="" iPNPstring="MFG:RICOH;MDL:Aficio SP 3510SF;CMD:POSTSCRIPT; "
startSonyUPDR80MD:
modprobe g_printer idVendor=0x054C idProduct=0x3C3 bcdDevice=0x0108 iManufacturer="SONY" iProduct="UP-DR80MD" iSerialNumber="00000000" iPNPstring="MFG:SONY;MDL:UP-DR80MD;DES:Sony UP-DR80MD;CMD:SPJL-DS,SPDL-DS;CLS:PRINTER; "
startEpsonStylusPhotoRX610:
modprobe g_printer idVendor=0x04B8 idProduct=0x083C bcdDevice=0x0100 iManufacturer="" iProduct="" iSerialNumber="" iPNPstring="MFG:EPSON;CMD:ESCPL2,BDC,D4,D4PX,ESCPR2;MDL:Stylus Photo RX610;CLS:PRINTER;DES:Epson Stylus Photo RX610;VSTATUS:$HB0$FC0,ff,DN,IDLE,CUT;"