2013-07-26 16:18:35 -04:00
|
|
|
CFLAGS = -Wall -Wextra -g
|
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-10-04 09:30:52 -04:00
|
|
|
CUPS_DATA_DIR = /usr/share/cups
|
2013-07-18 18:03:40 -04:00
|
|
|
DEPS = backend_common.h
|
2013-10-05 09:55:29 -04:00
|
|
|
SOURCES = backend_sonyupdr150.c backend_kodak6800.c backend_common.c backend_kodak1400.c backend_shinkos2145.c backend_canonselphy.c backend_mitsu70x.c
|
2012-10-27 10:22:12 -04:00
|
|
|
|
2013-10-05 09:55:29 -04:00
|
|
|
all: gutenprint sonyupdr150 kodak6800 kodak1400 shinkos2145 canonselphy mitsu70x
|
2013-07-18 08:46:44 -04:00
|
|
|
|
2013-07-18 18:03:40 -04:00
|
|
|
gutenprint: $(SOURCES) $(DEPS)
|
|
|
|
gcc -o $@ $(SOURCES) $(LDFLAGS) $(CFLAGS)
|
2013-07-06 10:14:06 -04:00
|
|
|
|
2013-07-18 22:10:56 -04:00
|
|
|
sonyupdr150: gutenprint
|
2013-07-26 16:18:35 -04:00
|
|
|
ln -sf gutenprint $@
|
2013-07-14 15:55:35 -04:00
|
|
|
|
2013-07-18 22:10:56 -04:00
|
|
|
kodak6800: gutenprint
|
2013-07-26 16:18:35 -04:00
|
|
|
ln -sf gutenprint $@
|
2013-07-18 18:03:40 -04:00
|
|
|
|
2013-07-18 22:10:56 -04:00
|
|
|
kodak1400: gutenprint
|
2013-07-26 16:18:35 -04:00
|
|
|
ln -sf gutenprint $@
|
2013-07-18 22:10:56 -04:00
|
|
|
|
|
|
|
shinkos2145: gutenprint
|
2013-07-26 16:18:35 -04:00
|
|
|
ln -sf gutenprint $@
|
2013-07-18 22:10:56 -04:00
|
|
|
|
|
|
|
canonselphy: gutenprint
|
2013-07-26 16:18:35 -04:00
|
|
|
ln -sf gutenprint $@
|
2013-07-18 18:03:40 -04:00
|
|
|
|
2013-10-05 09:55:29 -04:00
|
|
|
mitsu70x: gutenprint
|
|
|
|
ln -sf gutenprint $@
|
|
|
|
|
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
|
2013-10-04 09:30:52 -04:00
|
|
|
mkdir -p $(CUPS_DATA_DIR)/usb
|
|
|
|
install -o root -m 644 blacklist $(CUPS_DATA_DIR)/usb/net.sf.gimp-print.usb-quirks
|
2012-11-13 16:32:53 -05:00
|
|
|
|
|
|
|
clean:
|
2013-10-05 09:55:29 -04:00
|
|
|
rm -f gutenprint canonselphy kodak6800 kodak1400 shinkos2145 sonyupdr150 mitsu70x
|