2012-10-27 10:22:12 -04:00
|
|
|
CFLAGS = -Wall
|
2013-06-27 22:45:50 -04:00
|
|
|
LDFLAGS = -lusb-1.0
|
2012-10-27 10:22:12 -04:00
|
|
|
|
2013-06-27 22:45:50 -04:00
|
|
|
CUPS_BACKEND_DIR = /usr/lib/cups/backend
|
2013-07-18 08:46:44 -04:00
|
|
|
DEPS = backend_common.c backend_common.h
|
2012-10-27 10:22:12 -04:00
|
|
|
|
2013-07-18 12:51:05 -04:00
|
|
|
all: gutenprint sonyupdr150
|
2013-07-18 08:46:44 -04:00
|
|
|
|
|
|
|
gutenprint: sony_updr150_print.c $(DEPS)
|
|
|
|
gcc -o $@ $< backend_common.c $(LDFLAGS) $(CFLAGS)
|
2013-06-27 22:45:50 -04:00
|
|
|
|
2013-07-14 20:10:18 -04:00
|
|
|
canon-selphy_print: selphy_print.c $(DEPS)
|
2013-06-27 22:45:50 -04:00
|
|
|
gcc -o $@ $< $(LDFLAGS) $(CFLAGS)
|
|
|
|
|
2013-07-14 20:10:18 -04:00
|
|
|
kodak-6800_print: kodak6800_print.c $(DEPS)
|
2013-06-27 22:45:50 -04:00
|
|
|
gcc -o $@ $< $(LDFLAGS) $(CFLAGS)
|
2012-11-13 16:40:36 -05:00
|
|
|
|
2013-07-14 20:10:18 -04:00
|
|
|
kodak-1400_print: kodak1400_print.c $(DEPS)
|
2013-06-27 22:45:50 -04:00
|
|
|
gcc -o $@ $< $(LDFLAGS) $(CFLAGS)
|
2013-01-19 17:10:21 -05:00
|
|
|
|
2013-07-14 20:10:18 -04:00
|
|
|
shinko-s2145_print: shinko_s2145_print.c $(DEPS)
|
2013-07-06 10:14:06 -04:00
|
|
|
gcc -o $@ $< $(LDFLAGS) $(CFLAGS)
|
|
|
|
|
2013-07-18 12:51:05 -04:00
|
|
|
sonyupdr150:
|
|
|
|
ln -s gutenprint $@
|
2013-07-14 15:55:35 -04:00
|
|
|
|
2013-07-06 11:03:49 -04:00
|
|
|
install:
|
2013-07-18 12:51:05 -04:00
|
|
|
install -o root -m 700 gutenprint $(CUPS_BACKEND_DIR)/gutenprint+usb
|
2012-11-13 16:32:53 -05:00
|
|
|
|
|
|
|
clean:
|
2013-07-18 12:51:05 -04:00
|
|
|
rm -f gutenprint canonselphy kodak6800 kodak1400 shinkos2145 sonyupdr150
|