2012-10-27 10:22:12 -04:00
|
|
|
CFLAGS = -Wall
|
2012-11-13 16:40:36 -05:00
|
|
|
CUPS_BACKENDS = /usr/lib/cups/backend
|
2012-10-27 10:22:12 -04:00
|
|
|
|
2012-11-19 21:53:20 -05:00
|
|
|
all: selphy_print_linux selphy_print
|
2012-10-27 10:22:12 -04:00
|
|
|
|
2012-11-19 21:50:14 -05:00
|
|
|
selphy_print_linux: selphy_print_linux.c selphy_print_common.h
|
|
|
|
gcc -o selphy_print_linux selphy_print_linux.c $(CFLAGS)
|
2012-10-27 10:22:12 -04:00
|
|
|
|
2012-11-19 21:53:20 -05:00
|
|
|
selphy_print: selphy_print.c selphy_print_common.h
|
|
|
|
gcc -o selphy_print selphy_print.c -lusb-1.0 $(CFLAGS)
|
2012-11-13 16:40:36 -05:00
|
|
|
|
|
|
|
install:
|
2012-11-19 21:50:14 -05:00
|
|
|
install -o root -m 700 selphy_print $(CUPS_BACKENDS)/selphy
|
2012-11-13 16:32:53 -05:00
|
|
|
|
|
|
|
clean:
|
2012-11-19 21:50:14 -05:00
|
|
|
rm -f selphy_print selphy_print_linux
|