diff --git a/Makefile b/Makefile index 06e5085..93b0c97 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,11 @@ all: selphy_print_linux selphy_print_libusb selphy_print_linux: es_print_linux.c es_print_common.h gcc -o selphy_print_linux es_print_linux.c $(CFLAGS) + chmod 500 selphy_print_linux selphy_print_libusb: es_print_libusb.c es_print_common.h gcc -o selphy_print_libusb es_print_libusb.c -lusb-1.0 $(CFLAGS) + chmod 500 selphy_print_libusb + +clean: + rm -f selphy_print* diff --git a/README.TXT b/README.TXT index 9b2313c..39bd2dd 100644 --- a/README.TXT +++ b/README.TXT @@ -28,6 +28,40 @@ ES40, CP790 + *************************************************************************** + Compilation: + + You will need libusb-1.0 to build this tool. + + Fedora/RedHat: + yum install libusb1-devel + Debian/Ubuntu + apt-get install libusb-1.0-0-dev + + And all you need to do after that is type 'make' + + + *************************************************************************** + CUPS backend usage: + + cp selphy_print_libusb /usr/lib/cups/backend/selphy + chown root:root /usr/lib/cups/backend/selphy + chmod 500 /usr/lib/cups/backend/selphy + + You may need to restart CUPS, and you will also need a prerelease + version of gutenprint installed. + + Please note that this will eventually be bundled with gutenprint. + + [[[ TODO: -- finish this ]]] + + *************************************************************************** + Standalone usage: + + selphy_print_libusb filename + selphy_print_libusb - < filename + somecommand | selphy_print_libusb - + *************************************************************************** Selphy ES1: